Error Handling / log console

/
    Description

    The C1ReportViewer control allows you to display built-in log console for debugging purposes.

    The list of properties used in the sample:

    • FileName - a relative path to the file with report. In this sample, the value for this property is set to "C1ReportViewer/C1ReportXML/BarcodeLabels.xml"
    • ReportName - a name of the report to view. For this sample, we are using "Wrong report name".
    • EnableLogs - enables built-in log console. For this sample, we set this property to True in order to display log console.
    • CollapseToolsPanel - specifies whether the tools panel will be collapsed. For this sample, we set this property to True.
    • Height - a height of the control. For this sample, we are using "475px".
    • Width - a width of the control. For this sample, we are using "100%". Note, C1ReportViewer allows you to specify Width/Height in percentages.

    Note that the report name "Wrong report name" does not exist in the report specified by FileName property and appropriate error message is shown inside the log console.

    The log console can contain any other information messages like document generation status, a current report viewer action, and et cetera , all of which you can use for debug purposes

    Documentation