Printing Performance for .NET Deployed COBOL Applications

You can potentially reduce the print close time of a .NET deployed COBOL application that prints long documents by enabling the optimization for network printers via the Switch.System.Drawing.Printing.OptimizePrintPreview configuration switch.

This optimization is described in the PrintPreviewDialog performance section of PrintPreviewDialog control overview (Windows Forms) -

For example, for applications running on the .NET Framework versions 4.6 or later, you can add the following switch to the <AppContextSwitchOverrides> element in the <runtime> section of your application configuration file:

   <AppContextSwitchOverrides value="Switch.System.Drawing.Printing.OptimizePrintPreview=true"/>