Flexible Size

/
Generating document...

The C1ReportViewer control allows you to specify Width/Height properties in percentages for flexible sizing.

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 "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 "Fit width".
  • CollapseToolsPanel - specifies whether the tools panel will be collapsed. For this sample, we are setting this property to True.
  • Height - a height of the control. For this sample, we are using "100%".
  • Width - a width of the control. For this sample, we are using "100%".

In this sample we are changing a parent container size from the client script. The C1ReportViewer layout is adjusted according a parent container size changes.