In desktop applications, the name of the report in the printer queue is taken from the value of the XtraReport.DisplayName property. You can override this in the XtraReport.PrintingSystem.StartPrint
event handler using the PrintDocumentEventArgs.PrintDocument property.
When you print reports using the Web Document Viewer, these settings do not apply because the Web printing is done via PDF. The web browser extracts the print job name from the resource name specified in the URI.
To change the name of the report print job, do the following:
- Set the UseSameTab property to false.
- Create a custom controller action named the same as the desired job.
- Create a URL with the name of the required print job in the
CreateUri
method of theExportedDocumentService
custom service, which is a descendant of the IWebDocumentViewerExportResultUriGenerator service.
- ASP.NET Core Reporting
- Register Services in the Document Viewer
- Print and Export Without a Preview in ASP.NET Core Application
(you will be redirected to DevExpress.com to submit your response)