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, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

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 »

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?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Print dialog 2 times after closing

Post by Sasha - Tracker Dev Team »

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
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 »

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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Print dialog 2 times after closing

Post by Sasha - Tracker Dev Team »

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
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 »

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: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan »

Hello Tom,

I am now going to merge your above post with the previous topic that existed on the subject:
https://forum.pdf-xchange.com/ ... 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 »

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: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan »

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 »

And did you find the problem?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan »

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 »

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: 17824
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Print dialog 2 times after closing

Post by Tracker Supp-Stefan »

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