From: Alan Adams <nospam@gecm.com>
Subject: Re: Capturing a print queue
Date: 1998/12/24 [thread overview]
Message-ID: <36829F1A.608D@gecm.com> (raw)
In-Reply-To: lTBPpAAEn9f2EwtA@nugget.demon.co.uk
Richard wrote:
>
> Hi,
>
> We run a pharmacy system that is unable to produce its standard reports
> in a csv format which to be honest is a pain!
>
> The software prints using the print queues on an alpha and it has
> occurred to me that I could probably install a backend on the print
> queue that could manipulate the output from the software (text) and dump
> it into a file as csv rather than to a printer.
>
Dirty solution:
Make sure the queue is never started.
Using F$GETQUI from DCL you can find out the file name of the temporary
file,
then copy the file, delete the entry from the queue, and do your own
thing with the file.
Same works from compiled code, use SYS$GETQUI.
GETQUI is probably the most complex system service interface in VMS. The
HELP examples are useful in DCL, and it's wirth playing with the DCL
version
before trying the SYS version, which is even worse.
However, step by step, persistence, and patience produce results.
All this assumes a text printer. Postscript or PCL would be a pain.
(Valium might be useful too.)
--
Alan Adams
next prev parent reply other threads:[~1998-12-24 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-22 5:00 Capturing a print queue Richard
1998-12-22 5:00 ` Brian Schenkenberger, VAXman-
1998-12-23 5:00 ` Richard
1998-12-24 5:00 ` Alan Adams [this message]
1998-12-29 5:00 ` Richard
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox