Setting of paper in rdlc report

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.