Hi Ali,
Please try to use the latest version of the Aspose.Pdf, as shared by my colleague in this post. You can also use the following .NET code to render a PDF file to the browser:
// create a byte array that will hold the output pdf
byte[] outBuf = outStream.GetBuffer();
// specify the duration of time before a page,cached on a browser expires
Response.Expires = 0;
// Specify the property to buffer the output page
Response.Buffer = true;
// Erase any buffered HTML output
Response.ClearContent();
//Add a new HTML header and value to the response sent to the client
Response.AddHeader(“content-disposition”, “inline; filename=” + “output.pdf”);
// Specify the HTTP content type for response as Pdf
Response.ContentType = “application/pdf”;
// Write specified information of current HTTP output to Byte array
Response.BinaryWrite(outBuf);
// close the output stream
outStream.Close();
//end the processing of the current page to ensure that no other HTML content is sent
Response.End();
If it still doesn’t resolve your issue, then please share Report1.Xml file with us, so we could test the issue at our end. We’ll update you with the resolution accordingly.
We’re sorry for the inconvenience.
Regards,