What is in your function?  Any calls that could reset the Use?  (By the way, a Use statement takes effect regardless of line, contrary to what others have said, until another Use intervenes.)  It isn't apparent what is going wrong from what you've said.  Try saving your IO* variables and taking a look at them to make sure they are what you expect.

Marianne

Kevin Toppenberg wrote:

Hey all,

I am writing a custom program to create a report.  And
yes I know that templates would do this better, but I
don't have time to figure that system out right now.

So I have my function that prints out everthing to the
screen just the way I want it (using standard
'writes',and no USE's anywhere).  Next, I want to be
able to send it to a printer device.

So I 'do ^%ZIS'.  Then I check for POP, and if
positive, I abort.  I then 'use IO', and then I call
my function described above.  I assume that all the
'writes' should now go to the output channel, namely
the printer (IO).  When I return from the function, I
'use IO(0)' to restore the home device, and call
^%ZISC.

But still, my output goes to the screen, and my
printer output is empty.

What am I doing wrong?

Thanks

Kevin
 

__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to