comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Issuing a print command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Issuing a print command [message #23338] Tue, 16 January 2001 06:51
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Ian Dean (ian.d.dean@baesystems.com) writes:

> I have an array of text that I want hard copy output of. At the moment,
> the user can select a pull-down menu "Save" and the dialog_pickfile
> opens a file to write to. The user can then use other utilities to
> print/view this file.
> However, the user has asked for a "Print" pull-down menu option that
> will send the text to the currently setup printer.
> To achieve this, I write the text to a temporary file, close the file,
> then issue DEVICE,/PRINT_FILE = 'fname.typ'. This only works partially.
> The output is no longer correctly formatted.

I'm not surprised by this, although I've never tried it.
IDL is a graphics-centric product and I wouldn't have
expected it to do text output very well.

In the past, when I have needed PostScript "reports"
(which in this case was some kind of graphic with a lot
of supporting text), I have been forced to use XYOUTS
to actually write the text into a PostScript file.
The output is always suburb, of course, but the pain
is in the enormous up-front amount of work you have
to do to get the page laid out properly.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Previous Topic: Re: reading wav files
Next Topic: Re: LinkImage question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 10:30:34 PDT 2025

Total time taken to generate the page: 1.76015 seconds