Quantcast
Viewing all articles
Browse latest Browse all 3636

Does anyone know how to discard printer information from a report?

Hello all,

 

We've got several reports in which printer info is saved in the report.

We would like to remove that info programmatically from the report.

Does anyone how to do that and to save this modified info to the report?

I would be pleased to be given a code example.

 

I guess it should be something like the fragment below, but saving this to the report doesn't seem to be doable.

 

printOptions.SavedDriverName = printOptions.DriverName = "DISPLAY";

printOptions.SavedPortName = printOptions.PortName = string.Empty;

printOptions.SavedPrinterName = printOptions.PrinterName = string.Empty;

printOptions.PaperSize = CrPaperSizeEnum.crPaperSizeDefault;

printOptions.PaperOrientation = CrPaperOrientationEnum.crPaperOrientationDefault;

printOptions.PaperSource = CrPaperSourceEnum.crPaperSourceAuto;

report.ReportClientDocument.PrintOutputController.ModifyPrintOptions(printOptions);

report.ReportClientDocument.PrintOutputController.ModifyPrinterName(string.Empty);

report.ReportClientDocument.PrintOutputController.ModifyPageMargins(0, 0, 0, 0);

report.ReportClientDocument.PrintOutputController.ModifyPaperOrientation(CrPaperOrientationEnum.crPaperOrientationDefault);

 

Thanks,

Henk Spaan.


Viewing all articles
Browse latest Browse all 3636

Trending Articles