Hi,
I ran into a strange problem. You should be able to duplicate it by following what I described below:
I was trying a sample program called "View" for VB. I enabled File toolbar after starting the app. Then using the file open button, I opened a multi-page pdf file. I then clicked print button. A dialog box opened with various parameter settings. Next I clicked Current page and then Print button. The page printed and the control returned to the main screen. However, it was locked up. The only way you can end it is to kill it via the task manager.
Was I doing something wrong? Or is it a bug?
Your help will be greatly appreciated!
Program locks up after printing
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 1
- Joined: Fri Sep 03, 2010 10:04 am
Re: Program locks up after printing
Yes it´s a bug
please visit topic "Using ActiveX Control as capsuled Control"
mfg
Besold

please visit topic "Using ActiveX Control as capsuled Control"
mfg
Besold
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
-
- User
- Posts: 37
- Joined: Mon Aug 23, 2010 6:41 am
Re: Program locks up after printing
Thank you Stefan and Besogerh for your speedy replies.
I did find a solution. What you can do is to drop a timer on the form, which checks to see if the form is disabled. If it is, then it enables it. By default the timer is off. Under the CoPDFXCview1_OnEvent, match nType = PXCVA_EventTypes.PXCVA_OnNamedNotify. And next if Name = "Global::EndModal", then turn the timer on. This event fires after the print action is done. The timer then keeps the program live.
Problem solved, at least one workaround you can try.
I did find a solution. What you can do is to drop a timer on the form, which checks to see if the form is disabled. If it is, then it enables it. By default the timer is off. Under the CoPDFXCview1_OnEvent, match nType = PXCVA_EventTypes.PXCVA_OnNamedNotify. And next if Name = "Global::EndModal", then turn the timer on. This event fires after the print action is done. The timer then keeps the program live.
Problem solved, at least one workaround you can try.
-
- Site Admin
- Posts: 7371
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Program locks up after printing
thanks gpxi for posting the work around.
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
- User
- Posts: 37
- Joined: Mon Aug 23, 2010 6:41 am
Re: Program locks up after printing
I am glad that I found a way out and share it on the forum.
Interesting thing I noticed is that the bug only shows up in the initial run of the print function. The subsequent printing does not affect the program. I put a msgbox message prompt in the timer to show whenever the error is "corrected". Running the sample exe I observed that behavior of the control. Hopefully your dev team could use this piece of info if not already figured out a correction.
Please let us know if a new build without the bug is available. Thanks!
Interesting thing I noticed is that the bug only shows up in the initial run of the print function. The subsequent printing does not affect the program. I put a msgbox message prompt in the timer to show whenever the error is "corrected". Running the sample exe I observed that behavior of the control. Hopefully your dev team could use this piece of info if not already figured out a correction.
Please let us know if a new build without the bug is available. Thanks!
-
- Site Admin
- Posts: 7371
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Program locks up after printing
Hi gpxi,
this was fixed in build 55 which should be available for download Friday, unless any unexpected complications arise between now and then...
regards.
this was fixed in build 55 which should be available for download Friday, unless any unexpected complications arise between now and then...
regards.
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Program locks up after printing
Hi,
This will be fixed in build 2.0055 released later this week :
This will be fixed in build 2.0055 released later this week :
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
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com
-
- User
- Posts: 37
- Joined: Mon Aug 23, 2010 6:41 am
Re: Program locks up after printing
Thanks! Your guys rock!
-
- Site Admin
- Posts: 5223
- Joined: Tue Jun 29, 2004 10:34 am
Re: Program locks up after printing

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
Tracker Support
http://www.tracker-software.com
Best regards
Tracker Support
http://www.tracker-software.com