Error while trying integerating PDFViewer in .NET

Technical support for Spire.PDFViewer

Moderator: iceblue support

Re: Error while trying integerating PDFViewer in .NET

Postby darmenakis » Thu Sep 08, 2016 7:18 pm

Betsy.jiang wrote:Dear darmenakis,

I suppose that you didn't use the property IsPostBack. Please use it and check the result.
Here is sample code for your reference.
Code: Select all
            //this is the thing must do in ASP.NET
            if (!IsPostBack)
            {
                byte[] data = File.ReadAllBytes(@"D:\download\Pv-204.pdf");
                MemoryStream pdfStream = new MemoryStream(data);
                PdfViewer1.LoadFromStream(pdfStream);
            }

If there is still issue, please provide us the sample file and code you were using to help us do an investigation.

Sincerely,
Betsy
E-iceblue support team


Dear Betsy

That is exactly the same code i use and i face the above mentioned problem.
I would like to notice that the problem occurs for pdf files with more than 5 pages. The first 5 pages are displayed normally but the rest not.
Do you have the same problem if you run a test code or it happens only to me?
Thanks again for help
darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Re: Error while trying integerating PDFViewer in .NET

Postby Betsy.jiang » Fri Sep 09, 2016 3:15 am

Dear darmenakis,

Thanks for your reply.
Here is a demo which can work on my side, please check and then tell us the result.
http://www.e-iceblue.com/downloads/attachment/7864.zip

Thanks,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1320
Joined: Tue Sep 06, 2016 8:30 am

Re: Error while trying integerating PDFViewer in .NET

Postby Betsy.jiang » Tue Sep 13, 2016 7:51 am

Dear darmenakis,

Did you test the demo?Did it can work on your side ?
Looking forward to your reply.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1320
Joined: Tue Sep 06, 2016 8:30 am

Re: Error while trying integerating PDFViewer in .NET

Postby darmenakis » Thu Oct 06, 2016 8:40 pm

Betsy.jiang wrote:Dear darmenakis,

Did you test the demo?Did it can work on your side ?
Looking forward to your reply.

Sincerely,
Betsy
E-iceblue support team


Dear Betsy

I did worked and also on my Code.
Thanks for help and please forgive me my delay
darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Re: Error while trying integerating PDFViewer in .NET

Postby Betsy.jiang » Fri Oct 07, 2016 1:08 am

Dear darmenakis,

Thanks for your feedback.
Please feel free to contact us if there is any question or needs. We are here for help.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1320
Joined: Tue Sep 06, 2016 8:30 am

Previous

Return to Spire.PDFViewer

Who is online

Users browsing this forum: No registered users and 0 guests