on 06-07-2013 9:14 PM
Hi,
When I print my report the name on the document it "Crystal Reports - " & .SummaryInfo.ReportTitle
How I can edit it ? I would like to remove "Crystal Reports - ".
Because when the user print with PDFPrinter, he just want the real name
Exemple
"Crystal Reports - Invoice_4567"
He want just
"Invoice_4567"
Thank you
Francois.
A quick search finds this SAP Note:
1386475 - How to set printer name and print job title at runtime using Report Application Server SDK for Visual Studio .NET:
Use CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions class to set the printer name and print job title.
Visual Basic .NET sample code:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.ReportAppServer.ClientDoc
Imports CrystalDecisions.ReportAppServer.Controllers
Dim crReportDocument As New ReportDocument
Dim boReportClientDocument As ISCDReportClientDocument
Dim boPrintOutputController As PrintOutputController
Dim boPrintReportOptions As New PrintReportOptions
' load the report
crReportDocument.Load("C:\CrystalReports\Report1.rpt")
boReportClientDocument = crReportDocument.ReportClientDocument
boPrintOutputController = boReportClientDocument.PrintOutputController
' set printer name
boPrintReportOptions.PrinterName = "Canon LBP-740"
' set print job title
boPrintReportOptions.JobTitle = "Crystal Report"
' print the report
boPrintOutputController.PrintReport(boPrintReportOptions)
crReportDocument.Close()
crReportDocument.Dispose()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.