简体   繁体   中英

.rdlc report on reportviewer not rendering the controls correctly

I have this report which I am recreating from access and it is not like a regular report with tables it actually uses a lot textboxes and rectangles, I figured if I kept the width of the report to 8.1 and length to 8.9 then i set all the margins to 0.1 so it print one page so that all good but when I place a textbox on the designer to where I want it to be then I run the report and see that they are placed else where soo why is it not rendering correctly is my question? is there an easier way to create an .rdlc report in Asp.net webform that I am unaware of?

Visual Studio 2008 Report Viewer 9.0 .Net 3.5

在此处输入图片说明

Shows up like this in the report viewer:

在此处输入图片说明

From your screenshots it seems that every control is smaller than its content. Resize your textboxes or change font size; you can also modify Padding property to free some space. After this operation try setting CanGrow property to False for every control that don't need to grow vertically (ie multiline TextBox ).

Also note that ASP.NET ReportViewer is not very good in displaying complicated reports; try export your report in PDF using the built-in functionality: if the result is better use LocalReport.Render Method to render it directly in PDF.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM