Print PDF file in background

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Print PDF file in background

#1 Post by Piotr D »

Hi,
How can I print PDF file in background (without displaying its content)?

Regards
Piotr

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Print PDF file in background

#2 Post by Wolfgang Ciriack »

Use the Microsoft Print to PDF printer:

Code: Select all

 DCPRINT ON NAME "Microsoft Print to PDF" ;
         TOFILE OUTFILE (<MyfileWithPath.pdf>) ;
 	 TO oPrinter ;
  	 SIZE .... ;
  	 FORMSIZE XBPPRN_FORM_A4 ;
	 TITLE ...
_______________________
Best Regards
Wolfgang

Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Print PDF file in background

#3 Post by Piotr D »

Wolfgang,
I am concerned with printing PDF files already existing on disk.
Piotr

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Print PDF file in background

#4 Post by Wolfgang Ciriack »

So you can try (from german newsgroup):

Code: Select all

lSuccess := ShellExecute( 0, ;
                             "print", ;  
                             cPath + cFILE, ;
                             cPara, ;
                             cHome, ;
                             SW_HIDE)
_______________________
Best Regards
Wolfgang

Piotr D
Posts: 131
Joined: Mon Jul 28, 2014 1:26 am
Location: Poznań, Poland

Re: Print PDF file in background

#5 Post by Piotr D »

Wolfgang,
thanks for the idea, i'll try. But isn't "print" just for printing txt files?

Piotr

Post Reply