Free Support Forum - aspose.com

Page XXX of XXX Issue

Hi

We have made a reporting services report tha works well word format for page numbers but when we export it giving AWMHTML format from .net code using reportviewer export method it show Page XXX of XXX instead of page numbers in MHTML format. Any idea what is causing this issue and how it can be resolved?

Here is the sample code below which is generating the report.

string format = string.Empty;

if (Format == "2")

{

format = "AWDOC";

Response.ContentType = "application/vnd.word";

Response.AddHeader("Content-disposition", "attachment;filename=" + FileName + ".doc");

}

else if (Format == "1")

{

format = "Pdf";

Response.ContentType = "application/pdf";

Response.AddHeader("Content-disposition", "attachment;filename=" + FileName + ".pdf");

}

else if (Format == "3")

{

format = "AWMHTML";

Response.ContentType = "text/html";

Response.AddHeader("Content-disposition", "attachment;filename=" + FileName + ".MHTML");

}

deviceInfo =

"" +

"True" +

"";

byte[] bytes = rViewer.ServerReport.Render(format, deviceInfo, out mimeType, out encoding, out extension, out streamids, out warnings);

Response.Clear();

Response.OutputStream.Write(bytes, 0, bytes.Length);

Response.OutputStream.Flush();

Response.OutputStream.Close();

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Could you please attach your rdl report and rdl.data file here for testing. We will check the issue and provide you more information.

Best regards.

Thanks for reply. Please find the attached project and reports also resultant html report is attached too. Please let me know if any further information required.

Muzaffar Ali

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. Your request has been logged in our defect database. The developer, who is responsible for Aspose.Words for Reporting Services will answer you shortly.

Best regards.

Can you please let me know when it will be responded if my license number or something like that is required please let me know i can send to you.

Thanks
Muzaffar Ali