We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Closing PdfLoadedDocument does not remove view from PdfViewerControl

Thread ID:

Created:

Updated:

Platform:

Replies:

118691 Mar 31,2015 10:57 PM UTC Apr 1,2015 12:25 PM UTC WPF 2
loading
Tags: PdfViewer
Chuck Berg
Asked On March 31, 2015 10:57 PM UTC

After calling PdfLoadedDocument.Close(true) I've tried several things to close its view in a PdfViewerControl but nothing works.  What do I need to do?

Chuck Berg
Replied On April 1, 2015 12:54 AM UTC

My code now looks like this...

private void CloseLoadedDocument()

{

     if (this.pdfLoadedDocument != null)

     {

         this.pdfLoadedDocument.Close(true);

         this.pdfLoadedDocument = null;

         this.DocumentViewControl.Unload();

         this.DocumentViewControl.UpdateLayout();

     }

}

but the display still doesn't clear until I call this.DocumentViewControl.Load(newDocument);


Sathish Sivakumar [Syncfusion]
Replied On April 1, 2015 12:25 PM UTC

Hi Chuck,

We are not able to reproduce the issue “Closing PdfLoadedDocument does not remove view from PdfViewerControl” from the code snippet you have provided. We have attached the Sample with which we tried to reproduce this issue. Please modify this sample or provide us a simple sample with which this issue could be reproduced.

http://www.syncfusion.com/downloads/support/forum/118691/Sample-131548560.zip

Regards,

Sathish S.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;