Duplex printing not working consistently
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Duplex printing not working consistently
I use the following code to print PDF in duplex mode. It works OK for our in-house printer which is "HP LaserJet M3035 MFP". However it does not work for printer "HP Color LaserJet M855" at our client's site. Here is the code:
Dim iActiveDocID As Integer
AxCoPDFXCview1.OpenDocument(strFileName, "", iActiveDocID, 0)
AxCoPDFXCview1.GetActiveDocument(iActiveDocID)
AxCoPDFXCview1.SetProperty("Print.Duplex", 1, 0)
AxCoPDFXCview1.PrintDocument(iActiveDocID, PDFXCviewAxLib.PXCVA_Flags.PXCVA_NoUI)
PDF-XChange Viewer ActiveX SDK version: 2.5.317
Visual Studio Version: 2012
Thanks for any advice.
Peter
Dim iActiveDocID As Integer
AxCoPDFXCview1.OpenDocument(strFileName, "", iActiveDocID, 0)
AxCoPDFXCview1.GetActiveDocument(iActiveDocID)
AxCoPDFXCview1.SetProperty("Print.Duplex", 1, 0)
AxCoPDFXCview1.PrintDocument(iActiveDocID, PDFXCviewAxLib.PXCVA_Flags.PXCVA_NoUI)
PDF-XChange Viewer ActiveX SDK version: 2.5.317
Visual Studio Version: 2012
Thanks for any advice.
Peter
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2352
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Duplex printing not working consistently
Hi Peter.
I'm afraid that it is hard to say what is wrong in case with HP Color LaserJet M855 printer because we have not such device for testing...
Some additional questions:
1. this printer supports the duplex printing definitely?
2. what is paper size/orientation in current printer's settings?
3. please check if duplex feature is installed and present exactly. For example for my HP LaserJet P2055dn:
HTH.
I'm afraid that it is hard to say what is wrong in case with HP Color LaserJet M855 printer because we have not such device for testing...
Some additional questions:
1. this printer supports the duplex printing definitely?
2. what is paper size/orientation in current printer's settings?
3. please check if duplex feature is installed and present exactly. For example for my HP LaserJet P2055dn:
HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Re: Duplex printing not working consistently
Thanks for the reply.
The printer is definitely configured for duplex printing. We always use the normal printing paper size (letter 8.5 x 11). The printer is shared so I cannot set it to duplex at the printer. That is why we want to buy your components so we can control it from application. If a document needs to be printed in duplex, application will set it and send it to the printer. The code I posted in my initial post is working with our own printer. Did you look over my code? Did I miss anything?
Thanks!
Peter
The printer is definitely configured for duplex printing. We always use the normal printing paper size (letter 8.5 x 11). The printer is shared so I cannot set it to duplex at the printer. That is why we want to buy your components so we can control it from application. If a document needs to be printed in duplex, application will set it and send it to the printer. The code I posted in my initial post is working with our own printer. Did you look over my code? Did I miss anything?
Thanks!
Peter
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2352
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Duplex printing not working consistently
Hi Peter.
Your code looks good. Currently we have no idea why its not working with "HP Color LaserJet M855"..
Can you try our PDF-XChange Viewer application on client's side (you may easily launch the existing PDFXCview.exe) to print with duplex option enabled? Just like regular end-user, by setting this option for that printer on Print dialog..
Its good to know if this problem is reproducible with our EU-application too or its only problem with our SDK..
Thanks, and
Best
Regards.
Your code looks good. Currently we have no idea why its not working with "HP Color LaserJet M855"..
Can you try our PDF-XChange Viewer application on client's side (you may easily launch the existing PDFXCview.exe) to print with duplex option enabled? Just like regular end-user, by setting this option for that printer on Print dialog..
Its good to know if this problem is reproducible with our EU-application too or its only problem with our SDK..
Thanks, and
Best
Regards.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Re: Duplex printing not working consistently
That is very good idea. Why did I not think of that. I will try it and let you know.
Thanks for your help!
Peter
Thanks for your help!
Peter
- Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
- Location: London, UK
- Contact:
Re: Duplex printing not working consistently
Keep us posted!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Re: Duplex printing not working consistently
I was switched to another project until today.
I almost immediately found out what's wrong using PDFXCView.exe as debug tool. It is the printer driver. For some reason, PDFXCView.exe and ActiveX component in my own app cannot see the duplex settings in the existing driver. However, other programs like Excel and Words can print duplex without any problem. On PDFXCView.exe print settings, duplex is grayed out. I guess the duplex setting is just getting ignored in my own app.
So I downloaded a HP universal printer driver and setup another logic printer pointing to the same physical printer. Now both PDFXCview.exe and my own program can print duplex.
I really like your ActiveX components. It is capable and easy to code.
Thanks for your help!
I almost immediately found out what's wrong using PDFXCView.exe as debug tool. It is the printer driver. For some reason, PDFXCView.exe and ActiveX component in my own app cannot see the duplex settings in the existing driver. However, other programs like Excel and Words can print duplex without any problem. On PDFXCView.exe print settings, duplex is grayed out. I guess the duplex setting is just getting ignored in my own app.
So I downloaded a HP universal printer driver and setup another logic printer pointing to the same physical printer. Now both PDFXCview.exe and my own program can print duplex.
I really like your ActiveX components. It is capable and easy to code.
Thanks for your help!
- Paul - Tracker Supp
- Site Admin
- Posts: 6837
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
- Contact:
Re: Duplex printing not working consistently
Best regards
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
-
- User
- Posts: 2
- Joined: Wed Sep 14, 2016 8:17 am
Re: Duplex printing not working consistently
I am also having trouble and tried aforementione method but i did not fix.[color=#000000]Pet[/color][/url][url=http://www.traguspiercing.xyz/][color=#000000]er5555[/color] wrote:I use the following code to print PDF in duplex mode. It works OK for our in-house printer which is "HP LaserJet M3035 MFP". However it does not work for printer "HP Color LaserJet M855" at our client's site. Here is the code:
Dim iActiveDocID As Integer
AxCoPDFXCview1.OpenDocument(strFileName, "", iActiveDocID, 0)
AxCoPDFXCview1.GetActiveDocument(iActiveDocID)
AxCoPDFXCview1.SetProperty("Print.Duplex", 1, 0)
AxCoPDFXCview1.PrintDocument(iActiveDocID, PDFXCviewAxLib.PXCVA_Flags.PXCVA_NoUI)
PDF-XChange Viewer ActiveX SDK version: 2.5.317
Visual Studio Version: 2012
Thanks for any advice.
Peter
Last edited by jon albert on Thu Sep 15, 2016 9:31 am, edited 1 time in total.
- Vasyl-Tracker Dev Team
- Site Admin
- Posts: 2352
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Duplex printing not working consistently
Hi Jon.
Can you check if the changing the 'Duplex' field on Viewer's Print dialogue working or not too with your printer?
Thanks.
Can you check if the changing the 'Duplex' field on Viewer's Print dialogue working or not too with your printer?
Thanks.
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.