Exported image filename customization from devexpress ReportPrintTool

1k views Asked by At

I am using Devexpress XtraReport suite in my application which works fine for dynamic reporting requirement except one customization as below:

User is given report preview using ReportPrintTool with dynamic data. Now, when user tries to export print preview as Image file with 'ExportMode=Different Files' output file names are generated based on report name(i.e. reportName+pageIndex.png) which i need to define based on some dynamic value or say based on a column value provided to report as data source.

Can anybody please guide me how can I achieve this customization?

1

There are 1 answers

2
Niranjan Singh On

Reference from: XtraReport default file name in SaveDialog box

Try to set the XtraReport.ExportOptions.PrintPreview.DefaultFileName option (PrintPreviewOptions.DefaultFileName Property).

PrintControl.PrintingSystem.ExportOptions.PrintPreview.DefaultFileName = "column value that you provide"

To know that how to use it, Follow the below reference links:
default name of report during saving - Here some file name standard related issue also descripbed
How modify predefined file name on exporting report
XtraReports - Custom filename when exporting via the reports toolbar