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 #18222 is a reply to message #18221] Thu, 09 December 1999 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Bernard Puc wrote:
> 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?

Ah the good old days when I drove MSDOS. How about this:

cmd = ''
case !version.os_family of
'Windows' : cmd = string(filename, format='("copy ", a, " prn:")')
'unix' : cmd = string(filename, format='("lpr ", a)')
else : message, 'I don't know how to print on this platform', /continue
endcase
if (cmd ne '') then spawn, cmd

> How about a better method for either?

I'll have to think about that.

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
[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: Thu Oct 09 23:42:58 PDT 2025

Total time taken to generate the page: 1.68384 seconds