Toolbar Customization

/
    Description

    The C1ReportViewer toolbar panel can be customized from server-side or client-side code. In this sample, the toolbar is customized from code-behind - we remove the first "print" button and all buttons located after the "next page" button.

    The list of properties used in the sample:

    • FileName - a relative path to the file with report. In this sample, we set the value of this property  to "~/C1ReportViewer/C1ReportXML/BarcodeLabels.xml"
    • ReportName - a name of the report to view. For this sample, we are using "Product Labels (EAN-13, Label 5096".
    • Zoom - a page zoom value. Accepts named zoom values like "actual size", "fit page", "fit width", "fit height" or value in percentages, e.g. "50%", "70%". For this sample, we are using "75%".
    • 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%".
    Documentation