Blank page printed after BatchConvertEx

If you are a C/C++/C developer and have any questions about using our products from your application here is the place to post them.

Blank page printed after BatchConvertEx

Postby lovison@algolsh.it on Tue Oct 14 2003

Hi,
I have Amyuni Document Converter 2.10e Developer Edition.
With this C++ code :

/* Set PDF Printer as Default */
EnablePrinter(hPDFPrinter,COMPANY,CODE);
BatchConvertEx(hPDFPrinter,"prova.doc");

/* Restore Previous default Printer */
EnablePrinter(hPDFPrinter,COMPANY,CODE);
PrintPDFDocument("prova.pdf","",1,1,1);

, I obtain correct pdf on paper with Windows 2000 / XP / 2003,
but on some PCs with Win 98 I have a blank paper, on correct
printer, but a blank paper...

Do you have any suggestion??
lovison@algolsh.it
 
Posts: 30
Joined: Fri Apr 04 2003

Postby Joan on Tue Oct 14 2003

Hello,

I am not sure I got what you mean by: "on some PCs with Win 98 I have a blank paper, on correct printer, but a blank paper... "

Do you mean that an extra empty page is added when printing the pdf document to the printer?
Or en extra empty page is added to the pdf file on screen?

In most cases the empty page is added because the page size of the pdf file is different from the paper size of the printer.

Hope this helps.
Joan
Amyuni Team
 
Posts: 2799
Joined: Wed Sep 11 2002

Postby lovison@algolsh.it on Tue Oct 14 2003

Joan wrote:Do you mean that an extra empty page is added when printing the pdf document to the printer?
Or en extra empty page is added to the pdf file on screen?


Sorry for my poor english...
On screen the pdf file is correct with only one page with text, but when I print this file with PrintPDFDocument(...),
I obtain only one blank page.
If I print this file with ShellExecute("print"...), I obtain correct page as on screen....
lovison@algolsh.it
 
Posts: 30
Joined: Fri Apr 04 2003

Postby Joan on Tue Oct 14 2003

Please send your pdf file along with some explanation to support@amyuni.com so we can check it futher.
Joan
Amyuni Team
 
Posts: 2799
Joined: Wed Sep 11 2002

Blank page printed after BatchConvertEx

Postby lovison@algolsh.it on Thu Oct 23 2003

Hi,
I have found the problem!
The "bad" PCs had installed Word 97 and Word 2000: I removed Word 97 and voilà the PrintPDFDocument prints correct page.
Thanks.
lovison@algolsh.it
 
Posts: 30
Joined: Fri Apr 04 2003


Return to C/C++/C# Community

Who is online

Users browsing this forum: No registered users and 1 guest