Microsoft Print To PDF, auto filename

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
clp1000
Posts: 14
Joined: Wed Jan 04, 2023 2:18 am

Microsoft Print To PDF, auto filename

#1 Post 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

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Microsoft Print To PDF, auto filename

#2 Post by skiman »

Hi,

Yes, just use the FILE parameter of dcprinter. (TOFILE OUTFILE .... )
Best regards,

Chris.
www.aboservice.be

clp1000
Posts: 14
Joined: Wed Jan 04, 2023 2:18 am

Re: Microsoft Print To PDF, auto filename

#3 Post by clp1000 »

Thanks, but we're using Alsaka Software, we don't have DCprinter ( I don't think )

skiman
Posts: 1195
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Microsoft Print To PDF, auto filename

#4 Post by skiman »

Hi,

From the docs: :setPrintFile( [<cFileName>] ) --> cOldFileName | NIL
Best regards,

Chris.
www.aboservice.be

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Microsoft Print To PDF, auto filename

#5 Post by rdonnay »

If you are using XbpPrinter class, the documentation should tell you what you need to know.
The eXpress train is coming - and it has more cars.

clp1000
Posts: 14
Joined: Wed Jan 04, 2023 2:18 am

Re: Microsoft Print To PDF, auto filename

#6 Post by clp1000 »

Briliant, so simple
Thanks all

Post Reply