Documentname not present in the Print Manager
Hello,
While printing a Report with ReportBuilder 7.02 the documentname which was
set by the Printer- and PrinterSetup property of the report is not present
in the Print Manager.
The following statements are used the fill the documentname:
FDocumentName := GetDocumentName;
FReport.PrinterSetup.DocumentName := FDocumentName;
FReport.Printer.DocumentName := FDocumentName;
GetDocumentName is a internal function which concatenate some strings to get
a unique documentname.
In the designmode of the report the documentname is filled.
The question is: what can I do so that the documentname is mentioned in the
Print Manager?
Regards,
Hanjo Willems
While printing a Report with ReportBuilder 7.02 the documentname which was
set by the Printer- and PrinterSetup property of the report is not present
in the Print Manager.
The following statements are used the fill the documentname:
FDocumentName := GetDocumentName;
FReport.PrinterSetup.DocumentName := FDocumentName;
FReport.Printer.DocumentName := FDocumentName;
GetDocumentName is a internal function which concatenate some strings to get
a unique documentname.
In the designmode of the report the documentname is filled.
The question is: what can I do so that the documentname is mentioned in the
Print Manager?
Regards,
Hanjo Willems
This discussion has been closed.
Comments
The Report.PrinterSetup.DocumentName property is used to specify the
document name that appears in the windows print queue. Set this property
prior to calling Report.Print.
example:
myReport.PrinterSetup.DocumentName := 'Test Doc Name';
myReport.Print;
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
The property Report.PrinterSetup.DocumentName is set before calling
Report.PrintToDevices. Is this the reason why the documentname doesn't
appears in the windows print queue?
Regards,
Hanjo Willems
The code that I showed in the prior post will work because it is calling
Report.Print. When using PrintToDevices the developer is responsible for
managing much more of the details. You have to write the code to create the
PrinterDevice and configure it. For an example see ppProd.pas, the method
PrintToPrinter.
I think you need to assign the Report.PrinterSetup properties to the
PrinterDevice.Printer.PrinterSetup....
myPrinterDevice.Printer.PrinterSetup := myReport.PrinterSetup;
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com