when dtType = 1, show the report title in the top, when dtType = 2, data is repeated in the table, when dtType = 3, data is totals, show it.
what im trying to achieve is, in first page, show report title, show data (dtType=2, could be many rows) in table, then show totals, page break. then next page, similar content. there could be many pages.
now the problem is, in the table i have condition show data if dtType = 2, even i had two set of the data above, it will still have one report title, all data(with dtType =2) in one table, and one report total.
not sure how to put a page break after row (dtType = 3) and repeat the page layout (title, data with many rows, total, then next page).
Tanya Li
Member
27 Points
15 Posts
A question about repeat & page break in .net Reportviewer
Apr 02, 2012 06:29 PM|LINK
hi all,
im using reportviewer to generate PDF file, data is input from xml file.
in the xml, data is structured like
<row> <dt1>report title </dt1> <dt2>date </dt2> <dtType>1 </dtType> </row> <row> <dt1>data data</dt1> <dt2>data data</dt2> <dtType>2 </dtType> </row> <row> <dt1>data data</dt1> <dt2>data data</dt2> <dtType>2 </dtType> </row> <row> <dt1>report totals </dt1> <dt2>totals </dt2> <dtType>3 </dtType> </row>and in the .rdlc file, i created a table,
when dtType = 1, show the report title in the top, when dtType = 2, data is repeated in the table, when dtType = 3, data is totals, show it.
what im trying to achieve is, in first page, show report title, show data (dtType=2, could be many rows) in table, then show totals, page break. then next page, similar content. there could be many pages.
now the problem is, in the table i have condition show data if dtType = 2, even i had two set of the data above, it will still have one report title, all data(with dtType =2) in one table, and one report total.
not sure how to put a page break after row (dtType = 3) and repeat the page layout (title, data with many rows, total, then next page).
anyone any ideas? thanks in advance !
digitalpacma...
Member
183 Points
148 Posts
Re: A question about repeat & page break in .net Reportviewer
Apr 02, 2012 08:06 PM|LINK
I don't understand how this is related to WebApi?