Re: Printing problems under Object Graphics ... [message #12323] |
Mon, 13 July 1998 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Darran Edmundson (dEdmundson@Bigfoot.com) writes:
> I tried printing under object graphics today for the first time -
> without success. My view renders beautifully to an IDLgrWindow
> object but when drawing to a printer destination, the created file
> size is 0. Obviously I am once again doing something foolish but
> I can't spot the error:
>
> p = obj_new('IDLgrPrint')
> p->draw, myview ; where myview is a valid IDLgrView
> result=dialog_printersetup(p) ; choose printer settings
> p->newdocument ; spool the output
> obj_destroy, p
>
> I am choosing an EPS file for output in the printer dialog. This is
> IDL5.1 running under Linux RedHat 5.
The only thing I would change here is to choose the printer
settings BEFORE you draw the view:
p = obj_new('IDLgrPrint')
result=dialog_printersetup(p) ; choose printer settings
p->draw, myview ; where myview is a valid IDLgrView
p->newdocument ; spool the output
obj_destroy, p
But even then you may have some problems. I have been completely
unsuccessful getting object graphics to print to a file on my
Windows NT machine. Several weeks ago I was having discussions
about this with RSI technical support, but I have been distracted
with IDL courses and holidays since and have not followed up.
I'll make a note to get back in touch with them today and see
if I can't learn more about this.
I have tried installing various printer drivers that supposedly
allow output to files, although I don't actually have these
printers on my system. I am wondering if this isn't somehow
the problem. I have heard that people following my previous
advice in this newsgroup HAVE been able to create EPS files
successfully. Go figure. :-(
It does appear that the file is being written to. (That is,
there is a long delay that I take to be the graphics going
*somewhere*.) But the resulting file is always empty. I am
certainly executing the NEWDOCUMENT method, which is suppose
to close the file and make it ready for printing.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|