chapman@lll-lcc.UUCP (Carol Chapman) (08/15/89)
I'm using X11R3 and would like to let the user click on a command button and get a screen dump to a Tektronix color printer. My program runs on SUNs and I create a rasterfile which holds a header, colormap and data. The final command to send to the printer is: cat raster_file | lpr -v -Ptcpr All works well if the data in the rasterfile corresponds to a simple core widget such as a colorbar, but it will not work if I try to capture a *composite* widget such as the large vpaned widget that contains all my stuff. I'm using XtWindow to get the window corresponding to the vpaned widget. I've tried using XGetImage and passing it that window, and I've also tried calling XCreatePixmap to make a pixmap corresponding to the window and then sending that to XGetImage. No luck. My program doesn't bomb, but the printer chokes and sends its log file messages that say "Job aborted status 1". Any ideas? thanks, carol chapman -- ------------------------------------------------------------------------------- Livermore Lab (chapman@lll-crg.llnl.gov or chapman@lll-lcc.llnl.gov) P.O. Box 808, L-153 Tel. (415) 423-7876 Livermore, CA 94550 "Never own anything that you have to FEED or PAINT."