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

Home » Public Forums » archive » Re: Printing on Win platforms
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: Printing on Win platforms [message #18221] Thu, 09 December 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Bernard Puc (bpuc@va.aetc.com) writes:

> I predominantly work with IDL on unix systems. But now I have a
> routine that needs to be able to print text on a win95/98 platform as
> well. On unix, I would create a temporary file with the text to be
> printed and then do SPAWN, 'lpr '+tempfilename to print the file. Is
> there an equivalent method for win?
>
> How about a better method for either?
>
> (Dave, do you cover this in your updated book?)

No I don't cover it, but I like to use a little piece of
freeware named PrintFile for these purposes. It is easily
configured to print PostScript or text files. It is written
by Peter Lerup and can be found here:

http://hem1.passagen.se/ptlerup

To print a text file from within IDL on my Windows NT
machine, I can type this:

IDL>Spawn, 'Start C:\"Program Files"\printfile\prfile32.exe testfile.txt'

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
Read Message
Previous Topic: Re: Q: Xmanager explanation?
Next Topic: Printing on Win platforms

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

Current Time: Wed Oct 08 17:38:37 PDT 2025

Total time taken to generate the page: 0.00455 seconds