Last post Apr 03, 2010 02:31 AM by Eng.EslamAtef
Feb 07, 2010 05:40 PM|aminowest|LINK
I'm working in an ASP.net web application. I'm trying to export a crystal report file (.rpt file) to pdf viewerthe following code:
CrystalDecisions.CrystalReports.Engine.ReportDocument doc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
doc.Load("C:\\Users\\amino\\Documents\\Visual Studio 2005\\WebSites\\WebSite1\\Report.rpt");
CrystalReportViewer1.ReportSource = doc;
CrystalReportViewer1.Visible = true;
MemoryStream oStream; // using System.IO
oStream = (MemoryStream)doc.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
//oStream = (MemoryStream)doc.ExportToStream(CrystalDecisions.Shared.ExportFormatType.WordForWindows);
Response.Buffer = true;
//Response.Write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />");
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.Charset = "UTF-8";
Response.ContentType = "application/pdf";
When the pdf viewer opens, numbers should be displayed in arabic because in the rpt file numbers are displayed in arabic format. What happens is when pdf viewer opens, I have the arabic numbers displayed in english!!!
can anyone help me to solve this problem? I can't find any solution for it on the internet.
Feb 08, 2010 12:22 AM|amanbhullar|LINK
check the link
Feb 08, 2010 02:20 AM|aminowest|LINK
Thank you amanbhullar for your reply.
I already saw this topic before and tried it but it was not working :( . Beside that this topic using Active Report as reporting tool not crystal reports.
Apr 03, 2010 02:31 AM|Eng.EslamAtef|LINK
I have the same problem too so did you solve it or still becuase i ididn't solve it until now ??????? :s