Print dialog 2 times after closing

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Print dialog 2 times after closing

Post by Tom Princen » Thu Dec 08, 2016 2:55 pm

When i use this code:
AX_TRACKERPDF>>GetActiveDocument(liFILEID)
AX_TRACKERPDF>>PrintDocument(liFILEID)

And I close the print dialog it appears for the second time. How do I solve this?

User avatar
Sasha - Tracker Dev Team
User
Posts: 4188
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Print dialog 2 times after closing

Post by Sasha - Tracker Dev Team » Thu Dec 08, 2016 6:10 pm

Hello Tom,

Please provide us a working sample that illustrates your problem. Also, please provide the information about the SDK versionthat you are using. Don't forget NOT to post a valid license key with your sample project.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Re: Print dialog 2 times after closing

Post by Tom Princen » Thu Dec 08, 2016 9:15 pm

if you use the PrintDocument function from the active x viewer
a printdialog window opens. If you close this window without printing the print dialog reappears.

I am using version 2.5 build 318.1

User avatar
Sasha - Tracker Dev Team
User
Posts: 4188
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Print dialog 2 times after closing

Post by Sasha - Tracker Dev Team » Fri Dec 09, 2016 7:24 am

Hello Tom,

Please post in the correspondent topic thread. This is the Editor Core SDK thread and you are referring to the old Viewer Active X.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Print dialog 2 times after closing

Post by Tom Princen » Fri Dec 09, 2016 7:39 am

if you use the PrintDocument function from the active x viewer
a printdialog window opens. If you close this window without printing the print dialog reappears.

I am using version 2.5 build 318.1

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13422
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan » Fri Dec 09, 2016 11:10 am

Hello Tom,

I am now going to merge your above post with the previous topic that existed on the subject:
http://www.tracker-software.com/forum3/ ... 36&t=27683

Cheers,
Stefan

Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Re: Print dialog 2 times after closing

Post by Tom Princen » Fri Dec 09, 2016 11:13 am

i needed to post it in the correct forum. thats why i created a new post.
Anyway could you look into it?

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13422
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan » Fri Dec 09, 2016 11:14 am

Hi Tom,

I already moved the other topic in the correct forum. To keep things clear I am just merging this (as it's one discussion) in the same place :)

Cheers,
Stefan

Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Re: Print dialog 2 times after closing

Post by Tom Princen » Mon Dec 12, 2016 2:25 pm

And did you find the problem?

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13422
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan » Mon Dec 12, 2016 2:34 pm

Hi Tom,

Sasha asked for a sample project that illustrates the problem. I can not see attachments here in the topic - so have you e.g. sent those as e-mail attachments?

Regards,
Stefan

Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Re: Print dialog 2 times after closing

Post by Tom Princen » Tue Dec 13, 2016 8:31 am

i send the code that is causing the problem:

>>Printdialog(0)

this opens the print dialog screen. And if you close this screen with the X on top right. It closes the window but the same print window reappears.

so you do not have this problem?

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13422
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan » Tue Dec 13, 2016 5:15 pm

Hello Tom,

No we do not have such problems, that is why we are asking you for a whole sample project and not just a line of code.
Most likely you do call the print routine twice without it being obvious, and that's why we need to see a compilable project before we can assist further.

Regards,
Stefan

Post Reply