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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Closing PdfLoadedDocument does not remove view from PdfViewerControl

Thread ID:





118691 Mar 31,2015 10:57 PM UTC Apr 1,2015 12:25 PM UTC WPF 2
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 = null;





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.



Sathish S.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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