Generate report as PDF and save
mohanaraj
600001
Dear all,
How can we Generate report as .PDF file without view the report and save to default location (user can not select the location ie the save dialog popup is absent file saved in programmer given location in code itself in asp.net )
Please advise.
Thanks in advance.
How can we Generate report as .PDF file without view the report and save to default location (user can not select the location ie the save dialog popup is absent file saved in programmer given location in code itself in asp.net )
Please advise.
Thanks in advance.
Comments
Please look at Demos\C#\ExportToPDF demo.
Dear Alex,
I create report and save successfully with the reference of above mentioned demo.
But i want to add the header, summary band to this report how i can achieve?
I tried like
Report FReport = new Report();
ReportPage page = new ReportPage();
page.Name = "page1";
FReport.Pages.Add(page);
page.ReportTitle = new ReportTitleBand();
page.ReportTitle.Height = Units.Millimeters * 63;
page.ReportTitle.CreateUniqueName();
But the title band and others are not add to the created pdf report page.
Please advise.
Thanks in advance.
Dear Alex,
Hear with i attach my application in this please run the application as website and then click the mail icon it will create the report .pdf file in this there is no header and summary band occurs i wrote the code for it please investigate my code and advice me where it goes wrong.
Here is the corrected code:
Dim pdf As New RasterEdgePdfCreator()
Dim xml As New RasterEdgeXmlDocument()
Dim xslt As New RasterEdgeXmlDocument()
xml.Load(@C/1.xml)
xslt.Load(@C:/1.xslt)
doc.BindFO(xml, xslt)
doc.IsTruetypeFontMapCached = true
doc.TruetypeFontMapPath = (@d:/pdf/)
doc.Save(@C"T.pdf", SaveType.OpenInAcrobat,Response)