| |
ActiveReports for .NET 3.0 Support
Started by wing011203 at 03-02-2010 2:18 AM. Topic has 5 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
03-02-2010, 2:18 AM
|
wing011203
Joined on 03-02-2010
Posts 3
|
How do I set paging both horizontal and vertical at runtime?
|
|
|
|
|
Hello. When i use activereport to print data, the datasource has so many columns and rows that it can not display in just one page, i want to print all the datasource, it need page both horizontal and vertical. And also some data is very long, i want to print the whole data, so i have to set the textbox's WordWrap property to true. As far as i know, the activereport supports paging vertical by default, and it does not support paging horizontal by just modifing some settings. Is it true? I think I can achieve it by programming, but i do not know how, Can anybody tell me how? thanks.
|
|
|
|
|
Report
|
|
|
|
03-02-2010, 12:05 PM
|
PrantikS
Joined on 12-11-2008
Posts 1,550

|
Re: How do I set paging both horizontal and vertical at runtime?
|
|
|
|
|
Hello,
ActiveReports display the reports in the form of pages. So, there should not be any problem in printing large rows of data. You would need to add the controls to display the rows of data to the detail section of the report and set the datafield accordingly. The report would iterate through each datarow in your datasource and add to the detail section.
As far as the columns are concerned, does the printer to which you would be printing the report support papersizes to print the width corresponding to the large number of columns. If so, you would need to add controls corresponding to the columns in the datasource side by side in the detail section to the report set the printwidth accordingly.
Regards, Prantik
|
|
|
|
|
Report
|
|
|
|
03-02-2010, 10:16 PM
|
wing011203
Joined on 03-02-2010
Posts 3
|
Re: How do I set paging both horizontal and vertical at runtime?
|
|
|
|
|
thanks for your reply. as you say, i add controls to the detail section, set the datafield accordingly, when the print data's height exceeds the height of papersize, it pages vertical automatically, it works well. but the datasource has many columns, i add control to the detail section at runtime dynamically, and when the columns' width exceeds the width of papersize, it does not pages horizontal. for example, the datasource has 10 columns, and i add 10 textbox control to detail section, i want to print the first 5columns in one page, and print the last 5 columns in the next page, now, it just prints the first 5columns, how do i print the last 5columns in another page?
Regards, Wing.
|
|
|
|
|
Report
|
|
|
|
03-04-2010, 4:03 AM
|
AashishB
Joined on 12-11-2008
Posts 818
|
Re: How do I set paging both horizontal and vertical at runtime?
|
|
|
|
|
Wing,
Is it possible for you to set the height of the detail section static? If it is static then you can print first 5 columns of a page on one report and the other 5 columns on the second report. And then later merge these reports using merging. Here is help on merging reports.
Regards, Aashish
|
|
|
|
|
Report
|
|
|
|
03-04-2010, 10:35 PM
|
wing011203
Joined on 03-02-2010
Posts 3
|
Re: How do I set paging both horizontal and vertical at runtime?
|
|
|
|
|
Aashish, thanks for your reply. I can not set the height of the detail section static, i add textbox to the detail section and set the width of textbox static. To display all the data, i set the WordWrap of textbox true, so i can not judge the height of each row, and it can not solve the problem by Merging reports.
Regards, Wing
|
|
|
|
|
Report
|
|
|
|
03-05-2010, 8:27 AM
|
AashishB
Joined on 12-11-2008
Posts 818
|
Re: How do I set paging both horizontal and vertical at runtime?
|
|
|
|
|
Hello,
As there is no vertical PageBreak control, you would need find a creative way to achieve this. Splitting the reports into two reports as I suggested in my last post would give you a wider width to place the textboxes. Then you must be able to predict the number of rows in the detail section. Later inserting pages from second report after each page of the first report is one possible way to accomplish this.
Regards, Aashish
|
|
|
|
|
Report
|
|
|
|
|
GrapeCity » Product Support » ActiveReports f... » Re: How do I set paging both horizontal and vertical at runtime?
|
|
|
|
|