Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Duplex not working |
Post Reply ![]() |
Author | |
bernr ![]() Beginner ![]() Joined: 13 Aug 09 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 19 Aug 09 at 5:58PM |
Hello
I can not seem to get duplex working.
I have tried setting duplex on the printer, I get only single pages.
I tried creating a custom printer and changing the settings using the following code
procedure TPDFViewerMainForm.PrintWithDialog(asPrintJobTitle: string = 'ExitCare Print Job');
var iPrintOptions: integer; iPrintFrom: integer; iPrintTo: integer; SPrinterName:String; begin PrintDialog.MaxPage := iTotalPages; PrintDialog.MinPage := 1; printDialog.FromPage := 1; printDialog.ToPage := iTotalPages; if PrintDialog.Execute then
begin iPrintOptions := PDFFile.PrintOptions(0, 0, 'ExitCare Print Job'); if PrintDialog.PrintRange = prAllpages then begin iPrintFrom := 1; iPrintTo := iTotalPages; end else begin iPrintFrom := printDialog.FromPage; iPrintTo := printDialog.ToPage; end; SPrinterName:=PDFFIle.NewCustomPrinter(Printer.Printers[Printer.PrinterIndex]); PDFFIle.SetupCustomPrinter(SPrinterName,7,3); PDFFile.PrintDocument(SPrinterName, iPrintFrom, iPrintTo, iPrintOptions);
end; end; Still only get single pages. Nothing I have tried seems to print in duplex mode. I have tested the same PDF in both Adobe Reader and Gnostice and they print in duplex fine.
I am testing using the 7.16 beta, but this also happend in 7.15.
Thanks
Bern
|
|
![]() |
|
bernr ![]() Beginner ![]() Joined: 13 Aug 09 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
After some more testing, the only way I can get QuickPDF to print duplex is if I use the PrintDocumentToPrinterObject function.
|
|
![]() |
|
hbarclay ![]() Team Player ![]() Joined: 29 Oct 05 Location: United States Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() |
PrintDocument with duplex works fine for me in 7.14 (and older) version. I'll get & try 7.15 later, but I'll be very surprised if it worked in 7.14 and not 7.15. What version of Delphi are you using? |
|
![]() |
|
hbarclay ![]() Team Player ![]() Joined: 29 Oct 05 Location: United States Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() |
Just tried it in 7.15 and it works fine for me.
Not sure if this may be what is confusing or not but with the code above it does not matter what you select in the printer dialog. Duplexing is set by SetupCustomPrinter(SPrinterName,7,3); If you leave off or comment out SetupCustomPrinter(SPrinterName,7,3); it prints simplex regardless of selecting duplex in the printer dialog. With the code the way you have above it will duplex every time. |
|
![]() |
|
bernr ![]() Beginner ![]() Joined: 13 Aug 09 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
Well all I know is it does not work for me, and i have tried on multiple printers.
Doesn't really matter at this point, due to a lack of response on both here and from their support, management here as decided to go with a different PDF solution. |
|
![]() |
|
Rowan ![]() Moderator Group ![]() ![]() Joined: 10 Jan 09 Status: Offline Points: 398 |
![]() ![]() ![]() ![]() ![]() |
Hi Bern,
I have followed up with you privately to see if there's anything that we can do to help you with this problem if you're still interested. Cheers, - Rowan.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store