Rdlc reports are stored in XML file format. You can open the rdlc report file and read the report and synthesize it from the data source using reportviewer, that is to say, rdlc defines a format, so it cannot passCodeFor the first type, unless you directly modify the XML.
You can define the report size when designing a report. We recommend that you add the required paper type (the server attribute in the printer) to the system ), this is also the size of the specified report (in rdlc report design, click the place outside the paper in the design window and modify the pagesize of the attribute.
To call the rdlc file, you can use reportviewer to display and set the file:
This . Reportviewer1.refreshreport ();
// Set the print Layout mode to display the size of the physical page.
This . Reportviewer1.setdisplaymode (Microsoft. Reporting. winforms. displaymode. printlayout );
// The zoom mode is the percentage, which is displayed as 100%
This . Reportviewer1.zoommode = Microsoft. Reporting. winforms. zoommode. percent;
This . Reportviewer1.zoompercent = 100 ;
ProgramThe following figure is displayed at runtime without any operation on the window: