Hi!
How can I clean the content of pdfViewer? I want load other document but the content of viewer doesn't change, it's the same that
the first document.
If I change the size of iframe and the document, only changes the size.
In other post I have seen that the response:
"If you want to load other file, just call method pdfDocumentViewer1.LoadFromFile ("yourfilepath"); if you want to close the opened file, call method pdfDocumentViewer1.CloseDocument()."
But I don't see the method closeDocument to try to use it.
My code
DocumentoDeSharepointBL sharepointDocBO = new DocumentoDeSharepointBL(this.CRMService);
urlDocumento = sharepointDocBO.getRutaAbsolutaAdjunto(urlDocumento);
System.IO.Stream sharepointDoc = sharepointDocBO.GetDocumentoSharePoint(urlDocumento);
byte[] documento = CommonUtils.ToByteArray(sharepointDoc);
MemoryStream fs = new MemoryStream();
fs.Write(documento, 0, documento.Length);
this.PdfViewer1.CacheInterval = 1200;
this.PdfViewer1.CacheTime = 1000;
this.PdfViewer1.LoadFromStream(fs);
Thanks!