Page 1 of 1

Print dialog 2 times after closing

Posted: Thu Dec 08, 2016 2:55 pm
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?

Re: Print dialog 2 times after closing

Posted: Thu Dec 08, 2016 6:10 pm
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

Re: Print dialog 2 times after closing

Posted: Thu Dec 08, 2016 9:15 pm
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

Re: Print dialog 2 times after closing

Posted: Fri Dec 09, 2016 7:24 am
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

Print dialog 2 times after closing

Posted: Fri Dec 09, 2016 7:39 am
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

Re: Print dialog 2 times after closing

Posted: Fri Dec 09, 2016 11:10 am
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

Re: Print dialog 2 times after closing

Posted: Fri Dec 09, 2016 11:13 am
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?

Re: Print dialog 2 times after closing

Posted: Fri Dec 09, 2016 11:14 am
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

Re: Print dialog 2 times after closing

Posted: Mon Dec 12, 2016 2:25 pm
by Tom Princen
And did you find the problem?

Re: Print dialog 2 times after closing

Posted: Mon Dec 12, 2016 2:34 pm
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

Re: Print dialog 2 times after closing

Posted: Tue Dec 13, 2016 8:31 am
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?

Re: Print dialog 2 times after closing

Posted: Tue Dec 13, 2016 5:15 pm
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