SAP Knowledge Base Article - Public

1586999 - How to display a report print job name in the windows print queue

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

  • CRVS2010
  • CR 2008

Resolution

  • 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-SDK , .NET SDK / COM SDK , How To

Product

Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2 ; SAP Crystal Reports, developer version for Microsoft Visual Studio