Symptom
- When a report is sent to the printer, the report shows up as "Crystal Reports - my_report.rpt"
- How to display just the name of the report in the windows print queue?
Environment
- Crystal Reports, Developer for Visual Studio (All versions)
Resolution
In Crystal Reports Designer:
- Click on File
- Report Summary
- Fill in the name you wish to call the Printjob in Windows Spooler.
Note: the above only work using RAS (Report Application Server)
Using CystalReportsViewer1 print button or using PrintOutputController (P2P) they both label the print job with:
- “SAP Crystal Reports”
- “SAP Crystal Reports -" + %title%.pdf
Use the Crystal Reports InProc RAS SDK
- Code:
rpt.Load(path);
ISCDReportClientDocument rcd = rpt.ReportClientDocument;PrintReportOptions prnOpts = new PrintReportOptions();
prnOpts.JobTitle = "This Is my report file name”;
prnOpts.PrinterName = "HPFilePrinter";
prnOpts.PaperSize = CrPaperSizeEnum.crPaperSizeDefault;
rcd.PrintOutputController.PrintReport(prnOpts);
rpt.Close();
Keywords
CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 crystal reports for visual studio 2010 , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To