Skip to content

Web Document Viewer - How to change the name of a print job in printer queue

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/reporting-asp-net-core-set-print-job-name-in-printer-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for ASP.NET Core - Change Print Job Name in Printer Queue

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 the ExportedDocumentService custom service, which is a descendant of the IWebDocumentViewerExportResultUriGenerator service.

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)