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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Duplex not working
  FAQ FAQ  Forum Search   Register Register  Login Login

Duplex not working

 Post Reply Post Reply
Author
Message
bernr View Drop Down
Beginner
Beginner


Joined: 13 Aug 09
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote bernr Quote  Post ReplyReply Direct Link To This Post Topic: Duplex not working
    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
Back to Top
bernr View Drop Down
Beginner
Beginner


Joined: 13 Aug 09
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote bernr Quote  Post ReplyReply Direct Link To This Post Posted: 25 Aug 09 at 3:30PM
After some more testing, the only way I can get QuickPDF to print duplex is if I use the PrintDocumentToPrinterObject function.
Back to Top
hbarclay View Drop Down
Team Player
Team Player


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote hbarclay Quote  Post ReplyReply Direct Link To This Post Posted: 26 Aug 09 at 10:14PM
Originally posted by bernr bernr wrote:

After some more testing, the only way I can get QuickPDF to print duplex is if I use the PrintDocumentToPrinterObject function.


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?

Back to Top
hbarclay View Drop Down
Team Player
Team Player


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote hbarclay Quote  Post ReplyReply Direct Link To This Post Posted: 26 Aug 09 at 11:24PM
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.


Back to Top
bernr View Drop Down
Beginner
Beginner


Joined: 13 Aug 09
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote bernr Quote  Post ReplyReply Direct Link To This Post Posted: 26 Aug 09 at 11:30PM
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.
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Posted: 27 Aug 09 at 7:25AM
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store