cancel
Showing results for 
Search instead for 
Did you mean: 

ReportTitle property

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

ido_millet
Active Contributor
0 Kudos

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()

Answers (0)