XtraReport Export Excel and Print with Page Header
Hy, I have an XtraReport and I want to export to an Excel File
after that I need to print it , but I loose all the page formats (Header ,
Footer , Repeat on each Page ... )
string reportPath = "c:\\Test.xls";
// Create a report instance.
XtraReport1 report = new XtraReport1();
reportDS c = new reportDS();
c.Init();
// genereaza report
report.DataSource = new reportDS[] { c };
// Get its XLS export options.
XlsExportOptions xlsOptions = report.ExportOptions.Xls;
// Set XLS-specific export options.
xlsOptions.ShowGridLines = true;
xlsOptions.TextExportMode = TextExportMode.Value;
// Export the report to XLS.
report.ExportToXls(reportPath);
// Show the result.
StartProcess(reportPath);
Can you tell me if it's possible what I want to do ?
And if not , can you suggest me another method ?
No comments:
Post a Comment