AnsweredAssumed Answered

vrf data from file to printer

Question asked by michael.asbery on Oct 19, 1999
At 11:40 AM 10/20/1999 +0200, soeren.soerensen@philips.com wrote:
>Hello dear All,
>I have written a kind of testreport to a file.
>At the end of the oder I like to get an hardcopy (on one of the network
>printer)
>of the file. How can I realize it.

I have an Idea that should work if your test reports are basically ASCII files:

Use the Execute Program (PC) object and give it the following dos command:

type filename.txt > lpt1

(Under NT I believe you have to use c:command.com type filename.txt > lpt1)

or unix(with the execute Program (Unix) object)

cat filename.txt | lp

This method relies on your network printer being installed on your system
as device lpt1 or under unix the printout will go to the default lp device.

If your reports are more complicated (ie ms word/excel reports) you should
be able to use an activex control to invoke the print method within those
applications. ( I haven't done this but others probably have.)


hope this helps

Mike Asbery
***********************************************************
Michael N. Asbery, NRL Code 5733.20, (202)404-3014, DSN 357
michael.asbery@nrl.navy.mil fax (202)404-7661          
***********************************************************

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.hp.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.hp.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.hp.com".
---------------------------------------------------------------------

Outcomes