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

Home » Public Forums » archive » Printing from WIN32
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Printing from WIN32 [message #24746] Thu, 12 April 2001 13:09
Aaron Birenboim is currently offline  Aaron Birenboim
Messages: 24
Registered: October 2000
Junior Member
I have a project where a previous programmer has
produced some plots and text reports with an IDL gui.

I need to add printing for WIN32.

How might I go about this under WIN32?

Here's my guess...

Add a button on the plot creation window.
(This is interractive. When the plot looks good,
I want the user to hit a PRINT button)
Then set_plot,'PRINTER'
and re-generate the current plot to this device,
then DEVICE,/CLOSE
set_plot,'WIN32'
will print out the plot, and return to GUI mode.

Thats pretty much how I'd do it from UNIX.

For the text output, I'll have to re-write
the function(s) that send text to some sort
of scrolling text widget, and have them write
the text to a file... then at the end, print the file,
somehow check that it has been printed, then delete it.

If I were on UNIX, I think I could write to a pipe
to lpr for simple ASCII printing... is there a similar,
easy way to do this from WIN32.
(Also on UNIX, there is usually a flag to lpr to delete
the file when done printing.. something like that
on windows would help)

Or.. is there an easier way to do this in
Windows? Might the text widget have a print method?

thanks in advance,
--
Aaron Birenboim
Albuquerque, NM
aaron@boim.com
http://boim.com/~aaron
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Postscript font usage
Next Topic: Displaying error bars

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

Current Time: Wed Oct 08 11:29:54 PDT 2025

Total time taken to generate the page: 0.00532 seconds