Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Wed Sep 10, 2014 4:38 am

hi,
i tried a lot of ways. i tried put it = nothing but it wont load other pdf after that

louis
 
Posts: 14
Joined: Mon Sep 08, 2014 10:29 am

Wed Sep 10, 2014 6:37 am

Dear louis,

Thanks for your inquiry.

Please send us your code snippet to help us resolve your problem.

Best regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Thu Sep 11, 2014 3:07 am

Dim ds As New DataSet
Dim adp As New SqlDataAdapter(StrSql, Con)
adp.Fill(ds)
Dim strFileNm As IO.MemoryStream
Dim arrPDF As Byte()
arrPDF = ds.Tables(0).Rows(0)("ATTCH_DOC")
strFileNm = New IO.MemoryStream(arrPDF)
pdfDocumentViewer1.LoadFromStream(strFileNm)


clear button
pdfdocumentviewer1 = nothing

unable to clear the pdfdocumentviewer1

louis
 
Posts: 14
Joined: Mon Sep 08, 2014 10:29 am

Thu Sep 11, 2014 3:53 am

Dear louis,

Thanks for your reply.

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().

Best regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Fri Sep 12, 2014 10:10 am

Dear louis,

Has your problem been resolved?
If not, please send more information to help us resolve it.

Best Regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Mon Oct 13, 2014 1:52 am

Yes, the problem has been resolve for this.

louis
 
Posts: 14
Joined: Mon Sep 08, 2014 10:29 am

Mon Oct 13, 2014 7:04 am

Dear louis,

Please feel free to contact us if you have any problems.

Best regards,
Burning
E-iceblue Support Team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Return to Spire.PDFViewer

cron