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

Wed Jun 15, 2016 9:13 am

Hello,

Thank you for your further feedback.
You need to reference Spire.Pdf.Asp.dll, Spire.License.dll, and Spire.PdfViewer.Asp.dll from same floder( ASP.NET4.0, according to target framework), also Spire.Pdf.dll and Spire.Doc.dll from same floder( NET4.0).

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Thu Jun 16, 2016 1:33 pm

caroline.zhang wrote:Hello,

Thank you for your further feedback.
You need to reference Spire.Pdf.Asp.dll, Spire.License.dll, and Spire.PdfViewer.Asp.dll from same floder( ASP.NET4.0, according to target framework), also Spire.Pdf.dll and Spire.Doc.dll from same floder( NET4.0).

Sincerely,
Caroline
E-iceblue support team


Thanks again for your immediate response.
Hope this one be my last question: Do i have the opporunity to load file in pdfViewer directly from server instead of cache. Is there any piece of code i could add in LoadFromFile function?
Thanks in advance once again

darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Fri Jun 17, 2016 4:03 am

Hi,

Thanks for your inquiry.
Our Spire.PDFViewer for ASP.net supports to load stream directly from server. Please try to load your PDF stream.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Fri Jun 17, 2016 6:31 am

Hi,

My testing code,
Code: Select all
byte[] data = File.ReadAllBytes("C:/sample.pdf");
MemoryStream pdfStream = new MemoryStream(data);
PdfViewer1.LoadFromStream(pdfStream);


Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Fri Jun 17, 2016 7:48 am

caroline.zhang wrote:Hi,

My testing code,
Code: Select all
byte[] data = File.ReadAllBytes("C:/sample.pdf");
MemoryStream pdfStream = new MemoryStream(data);
PdfViewer1.LoadFromStream(pdfStream);


Sincerely,
Caroline
E-iceblue support team


Thanks again. Code works fine but for a large pdf file (lets say 40 pages), pdfViewer shows only a few of them (No more than five).
Rest of them are blank. This might be a viewer issue
Thanks again for help

darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Fri Jun 17, 2016 8:41 am

Hi,

Thank you for your further feedback.
Could you please provide us this pdf file can replicate your issue for investigation? Thanks for the assistance.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Fri Jun 17, 2016 8:51 am

caroline.zhang wrote:Hi,

Thank you for your further feedback.
Could you please provide us this pdf file can replicate your issue for investigation? Thanks for the assistance.

Sincerely,
Caroline
E-iceblue support team



Dear Caroline, i tested with different pdf files, so i suppose it is not a matter of specific pdf file. Problem appears for pdf files with above 40 pages.
As for the code i try to load it as stream using the code you provided above.

Sincerely,
Dimitris

darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Fri Jun 17, 2016 9:18 am

Hi Dimitris,

Thanks for your prompt response.
It is indeed so. I have reproduced your issue and forwarded it to our dev team. Sorry for the inconvenience caused by the issue, and we will inform you when it is resolved.

Sincerely,
Caroline
E-iceblue support team
User avatar

caroline.zhang
 
Posts: 291
Joined: Mon Mar 07, 2016 9:22 am

Tue Sep 06, 2016 10:54 am

caroline.zhang wrote:Hi Dimitris,

Thanks for your prompt response.
It is indeed so. I have reproduced your issue and forwarded it to our dev team. Sorry for the inconvenience caused by the issue, and we will inform you when it is resolved.

Sincerely,
Caroline
E-iceblue support team


Dear Caroline
I saw some new versions on dll Files, about pdf Viewer. However using these new files didn't fix the problem.
Thanks!

darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Wed Sep 07, 2016 2:58 am

Dear darmenakis,

Thanks for your inquiry.
Sorry to hear that, your issue has been fixed, but it is testing. Could you please tell us following information to help us do a comprehensive testing ?
1)which version of IE you were using, e.g. IE9
2)which browser you were using, e.g. Firefox
3)the new version of PDFviewer you mentioned, e.g. Spire.PdfViewer.Asp.dll V2.10.17

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Sep 07, 2016 8:48 am

Betsy.jiang wrote:Dear darmenakis,

Thanks for your inquiry.
Sorry to hear that, your issue has been fixed, but it is testing. Could you please tell us following information to help us do a comprehensive testing ?
1)which version of IE you were using, e.g. IE9
2)which browser you were using, e.g. Firefox
3)the new version of PDFviewer you mentioned, e.g. Spire.PdfViewer.Asp.dll V2.10.17

Thanks,
Betsy
E-iceblue support team


Thanks for your response

I use both Firefox and Google for testing purposes but the problem remains the same.
As for the version of Spire.PdfViewer.Asp.dll is 2.10.17.4340 (The one that is included in the new HotFix Version) the one that was published on 23/08/2016

darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Wed Sep 07, 2016 9:44 am

Dear darmenakis,

Thanks for your fast reply.
Which IE version on your computer, IE8 ? And please attach a screenshot for showing your issue.
We will investigate it and then update to you.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Sep 07, 2016 10:04 am

Betsy.jiang wrote:Dear darmenakis,

Thanks for your fast reply.
Which IE version on your computer, IE8 ? And please attach a screenshot for showing your issue.
We will investigate it and then update to you.

Thanks,
Betsy
E-iceblue support team


I use IE11.
Sorry but i cannot attach some screenshot. The problem appears when i try to display a pdf file on pdfViewer which is larger than 10 pages. The first 5 pages are displayed, but the rest of them cannot be loaded and i only see a cyrcle process Bar.

Thanks and sorry about the inconvinience

darmenakis
 
Posts: 17
Joined: Sat Jun 04, 2016 5:56 am

Thu Sep 08, 2016 1:46 am

Dear darmenakis,

Thanks for your information.
I knew your issue, sorry that new version doesn't fix it. Our Dev team will investigate it further. We will update to you once there is any progress. Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Sep 08, 2016 3:56 am

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
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDFViewer