Re: Printing a text file. [message #28418 is a reply to message #28330] |
Tue, 04 December 2001 18:28  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
John Copley wrote:
>
> I am looking for ways to print an ascii text file from within an IDL
> application. I need to be able to do this for unix, windows and macos.
> Unix is not a problem: I spawn a command such as "lpr -Plp0 filename".
> With Windows the best I have been able to come up with is to spawn a
> command such as "c:\windows\notepad.exe /p filename" which is not very
> elegant (and nor is the printout). I haven't yet investigated
> possibilities for macos.
>
> Also does anyone know of a way to attach the date and time to
> printouts of IDL source code? I get very confused when I have multiple
> printouts and do not know which is the latest version.
>
> Your comments are appreciated.
> John Copley
Hi John,
I have an IDL Macro that prints the chroma-coded IDL source code of
the active edit window under Windows IDLDE. It calls a freeware utility
to do the actual printing.
I'll email the two files and instructions direct to you, and anyone
else
who puts their paw up.
Andrew
------------------------------------------------------------ ---------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group `-<-'
Surveillance Systems Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Edinburgh electrons
South Australia 5108
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ ---------
|
|
|