Page 1 of 1
Microsoft Print To PDF, auto filename
Posted: Fri Mar 24, 2023 5:58 am
by clp1000
Hello
Is it possible to send a filename to the "Microsoft print to PDF" driver, to bypass the user entering the filename each time ?
Thanks
Chris
Re: Microsoft Print To PDF, auto filename
Posted: Fri Mar 24, 2023 6:34 am
by skiman
Hi,
Yes, just use the FILE parameter of dcprinter. (TOFILE OUTFILE .... )
Re: Microsoft Print To PDF, auto filename
Posted: Fri Mar 24, 2023 8:36 am
by clp1000
Thanks, but we're using Alsaka Software, we don't have DCprinter ( I don't think )
Re: Microsoft Print To PDF, auto filename
Posted: Fri Mar 24, 2023 9:20 am
by skiman
Hi,
From the docs: :setPrintFile( [<cFileName>] ) --> cOldFileName | NIL
Re: Microsoft Print To PDF, auto filename
Posted: Fri Mar 24, 2023 9:20 am
by rdonnay
If you are using XbpPrinter class, the documentation should tell you what you need to know.
Re: Microsoft Print To PDF, auto filename
Posted: Mon Mar 27, 2023 3:06 am
by clp1000
Briliant, so simple
Thanks all