English 中文(简体)
VS ReportViewer RDLC - how to prevent a table from pushing down other items?
原标题:

I have a narrow table on a report with 6 columns. The table has to hold 1 - 4 rows, depending on the data. I designed the report so that there is enough white space to accommodate 4 rows. I want to use the space on the right side of the table. When I place text fields there, they get pushed down by the table as it expands to show additional rows. Is there a way to lock these text fields into place?

alt text
(source: heeroz.com)

最佳回答

I finally figured this out. A rectangle works as a container for data regions. If I place the table into a rectangle, it will only grow within the boundaries of the rectangle, without pushing other report items around. In order for this to work, though, the table must be a child control of the rectangle. This is achieved by dropping a new table into an existing text box, or by dropping an existing table some place outside of the rectangle, then moving it back inside. If you just draw a rectangle around the table, it will not become a child. This can be verified by right-clicking on the table. If it only says "select body" and not "select rectanglexx" as well, it is not a child of the rectangle. Alternatively, it is possible to place other items (text boxes, etc into a rectangle that is on one side of a table. The top edge of the rectangle must be above the bottom edge of the table. Then any controls in the rectangle will be unaffected by the growth of the table, but other items below the table will.

问题回答

暂无回答




相关问题
Open PDF Programmatically in One Page View

I have a 2005 Reporting Services report that I display as a PDF through the report viewer control. I would like to know how I can have the PDF be viewed in the "one page at a time mode". Right now it ...

ASP.NET ReportViewer Google Chrome CPU usage

We have found an interesting issue between ASP.NET 3.5 and ReportViewer with Google Chrome. Our set of pages work fine until a ReportViewer control displays a report. Google Chrome then eats up 50% ...

Where to install ReportServer

I have 2 servers (IIS & SQL). A web site on the IIS server uses the ReportViewer web control. Should ReportServer be installed on the IIS box or the SQL box. (IIS is in the DMZ) TIA J

Creating a PDF of a Dynamics CRM 4.0 report programmatically

We are currently in the midst of upgrading our CRM 3.0 installation to CRM 4.0. One of the things we were doing from our external web site is pulling a PDF of a report using the ReportViewer control ...

热门标签