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