Skip to main content

How can I fix an error that no printers are installed when trying to generate a PDF report in Coffalyser.Net? - Help Centre / MLPA & Coffalyser.Net / Coffalyser.Net Data Analysis Software / Error Messages - MRC Holland Support

How can I fix an error that no printers are installed when trying to generate a PDF report in Coffalyser.Net?

Coffalyser.Net requires the presence of a properly installed and available printer. Make sure that a printer is installed and that the default printer is working. If no printer is available, it is possible to install a software-based PDF printer to work around this issue.

Background

Coffalyser.Net uses a third-party library to help generate PDF reports. This library requires the presence of a printer in order to retrieve certain settings – even if you have no intention to print. If no printer is available, or if the default printer is not installed properly or not accessible, the following error message will be displayed:

No printers are installed.

This error message will be accompanied by the following raw exception message:

MRC.Coffalyser.Shared.Exceptions.GeneralException: SuperGridViewComparativeAnalysisItems_CellMousedoubleClick(object, GridCellMouseEventArgs) failed ---> MRC.Coffalyser.Shared.Exceptions.GeneralException: LaunchComparativeAnalysisSampleExplorer() failed ---> System.Drawing.Printing.InvalidPrinterException: No printers are installed.
   at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
   at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal()
   at System.Drawing.Printing.PrinterSettings.GetHdevmode()
   at System.Drawing.Printing.PageSettings.get_PrinterResolution()
   at MRC.Coffalyser.Client.Controls.Complex.Chart..ctor()
   at MRC.Coffalyser.Client.Forms.Projects.FormProjectExperimentComparativeAnalysisSampleExplorer.InitializeComponent()
   at MRC.Coffalyser.Client.Forms.Projects.FormProjectExperimentComparativeAnalysisSampleExplorer..ctor()
   at MRC.Coffalyser.Client.Forms.Projects.FormProjectExperiment.LaunchComparativeAnalysisSampleExplorer(ProjectExperimentSample projectExperimentSample)
   --- End of inner exception stack trace ---
   at MRC.Coffalyser.Client.Forms.Projects.FormProjectExperiment.LaunchComparativeAnalysisSampleExplorer(ProjectExperimentSample projectExperimentSample)
   at MRC.Coffalyser.Client.Forms.Projects.FormProjectExperiment.SuperGridViewComparativeAnalysisItems_CellMousedoubleClick(Object sender, GridCellMouseEventArgs args)
   --- End of inner exception stack trace ---

The italicized message may be displayed in the language of your operating system.

Helpful Unhelpful
Comments or suggestions? Send us your feedback.

Disclaimer

The information provided in this material is correct for the majority of our products. For certain applications, the instructions for use may differ. In the event of conflicting information, the relevant instructions for use take precedence.