Re: - How do I rename print-to-file filename at runtime?



Hi,

simple 1
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

Queue
Hmm, I remember a thread about an api wrapperclass on UT to control the windows print queues.

HTH
Tom


-------- Original Message --------
Subject: - How do I rename print-to-file filename at runtime? (25-Apr-2005 17:27)
From: Dan <dan.g@xxxxxxxxxxxx>
To: microsoft.public.fox.programmer.exchange

> I am trying to convert a bunch of different format files (.jpg/.pdf/.doc)
> to
> ..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
> desirable.
>
>
>


.



Relevant Pages

  • Re: Problem Printing using IWebBrowser2 from IWAM Account on Server 2003
    ... logon session of the ASP process account? ... LoadUserProfile first before calling the SetDefaultPrinter? ... | Subject: Re: Problem Printing using IWebBrowser2 from IWAM Account on ... |> component or just the code that your construct the WEBbrowser control, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Inkjet printer best results. RIP software ?
    ... printing technologies so I apologize if my questions seem rather basic. ... no control over the resolution used for printing. ... placing each pixel on the printed photo instead of just defaulting to the ... How can I control the final resolution and force the printer to use all ...
    (comp.periphs.printers)
  • Inkjet printer best results. RIP software ?
    ... printing technologies so I apologize if my questions seem rather basic. ... no control over the resolution used for printing. ... placing each pixel on the printed photo instead of just defaulting to the ... How can I control the final resolution and force the printer to use all ...
    (comp.sys.mac.printing)
  • Re: Fit print on page?
    ... Are web page designers just not allowing for printing on normal ... control / IE toolbar add-on) from ... this download page will install the ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: RTF2 Control - Printing a Report throwing Property is Read-Onl
    ... Stephen Lebans ... > dialogs while printing along with the errors. ... > and being displayed in the control itself. ... Due to the nature of the formatting routine, ...
    (microsoft.public.access.reports)