LEADTOOLS Support
Document
Document SDK Questions
Loading large PDF LT .Net 2.0 and v.15.0 cannot update toolstripstatuslabel after focus changes to a
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, October 30, 2008 6:06:17 AM(UTC)
Groups: Registered
Posts: 10
Any ideas about this problem would be helpful.
We are using (I believe) the latest LT v.15 patches
Leadtools.dll version: 15.0.1.9
Leadtools.Codecs.dll version: 15.0.1.17
The issue:
When I try to load a large PDF in the RasterImageViewer and then click away to another application, when I come back to the RasterImageViewer application the status strip will no longer update. I am handling the Codecs.LoadImage event to update progress status in a toolstripstatus label. This works fine with large tiff files (I opened a 350 page tiff, clicked on other applications and the
toolstripstatus label continued to update without difficuly, but loading a very large pdf (57 pages of vector graphics that has to rasterize) the status label will update fine until I click on another application to make it active, once I do that the label will no longer update. I have tried to force a refresh of the label, a refresh of the whole form containing the label, minimizing and restoring the application, etc. Has anyone else seen this issue, and does anyone have a workaround idea?
#2
Posted
:
Thursday, October 30, 2008 10:21:16 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 764
Try Adding Application.DoEvents in the progress event. This should allow .NET to refresh the controls on your form.
If that does not solve the problem, please send a small sample project (NOT your entire application) that isolates this problem so I can try to reproduce it here.
NOTE: If you are attaching a project or file to the forums...
1.) Zip the file(s) up.
2.) Make sure it is less than 5 MB. If it is larger, please send an email to
support@leadtools.com and we'll send you FTP instructions.
3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs.
4.) Do not click the preview button, the attachment will not show up when you post it.
If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to
support@leadtools.com and make sure that you include a link to this forum post.
#3
Posted
:
Friday, October 31, 2008 2:22:42 AM(UTC)
Groups: Registered
Posts: 10
Thanks for the reply. This fixed it. I have ended up using this in other places, for whatever reason it never occurred to try Application.DoEvents() here.
#4
Posted
:
Friday, October 31, 2008 3:03:12 AM(UTC)
Groups: Registered
Posts: 10
I spoke too soon. It does "fix" the issue that the status strip is not refreshing...the downside is that now my wait cursor that I was displaying is no longer displaying and the user can interact with the application. I do not want the user to interact with the application while the image is loading. I will try to put together a sample app that reproduces the issue.
LEADTOOLS Support
Document
Document SDK Questions
Loading large PDF LT .Net 2.0 and v.15.0 cannot update toolstripstatuslabel after focus changes to a
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.