Re: - How do I rename print-to-file filename at runtime?
- From: "tomknauf" <tomknauf@xxxxxxx>
- Date: Tue, 26 Apr 2005 10:06:21 +0000
install copys of this printer with different filenames and switch from printer 1 to 2 ...
simple 2 (dirty)
Install a little program as service (purebasic is fine for things like that) that every 1.0 seconds tries to rename the file.
Wait 1.5 seconds between printouts
Hmm, I remember a thread about an api wrapperclass on UT to control the windows print queues.
-------- Original Message --------
Subject: - How do I rename print-to-file filename at runtime? (25-Apr-2005 17:27)
From: Dan <dan.g@xxxxxxxxxxxx>
> I am trying to convert a bunch of different format files (.jpg/.pdf/.doc)
> ..pcl (print-to-file) in a batch procedure. I've used shellexecute to open
> the files (with an associated application) and then send them to a printer
> that is set up to print to a particular file name (myprint.pcl). In
> particular, The printer is configured to a particular file name local port
> (c:\print_files\myprint.pcl) so that, if anything is sent to this printer,
> the output is redirected to this particular file (not the printer itself).
> The problem with this is that myprint.pcl is overwritten every time a new
> file is being sent for printing. How can I get this resolved i.e. how can I
> rename the default file name (myprint.pcl to say my_batch_file_name.pcl) at
> runtime before printing to it?
> Ideally, I would be looking for an API that would allow me to control this
> parameter (read-write) at runtime and, of course, a sample would be highly
- Prev by Date: Re: Word automation
- Next by Date: Re: query too Complex
- Previous by thread: Re: - How do I rename print-to-file filename at runtime?
- Next by thread: Re: - How do I rename print-to-file filename at runtime?