| |
ActiveReports for .NET 2.0 Support
Started by blaggard at 12-08-2005 12:05 PM. Topic has 26 replies.
 
 
 
|
|
Sort Posts:
|
|
|
|
12-08-2005, 12:05 PM
|
blaggard
Joined on 10-02-2003
Posts 211
|
Need help with Columns and a SubReport
|
|
|
|
|
Hi, I have an rpx that is a subreport of another rpx. On the subreport rpx, i have 2 datafields in the detail section and i have set the report to have 2 columns. I added a subreport control to the parent rpx file and set the subreport controls source to the subreport rpx. I set the subreport control to cangrow=false. When i preview the parent report, the contents of the subreport does not continue on the 2nd column, it just gets cropped off the bottm of the first column. How can i get this to work, if at all? Thanks in advance.
|
|
|
|
|
Report
|
|
|
|
12-09-2005, 1:15 PM
|
brandon
Joined on 06-24-2003
Posts 3,671
|
Re: Need help with Columns and a SubReport
|
|
|
|
|
You'll need to set the subreport's page height to the height of the subreport control on the main report. This, coupled with zero margins for the subreport, will cause the next detail section to render in the next column. Use the subreport's ReportStart event to set this.Document.Printer.PrinterName = ""; and the other page settings.
brandon. webmaster. -DD
|
|
|
|
|
Report
|
|
|
|
12-14-2005, 6:06 AM
|
blaggard
Joined on 10-02-2003
Posts 211
|
Re: Need help with Columns and a SubReport
|
|
|
|
|
|
I set the following script in the subreport:
public void ActiveReport_ReportStart(){
rpt.Document.Printer.PrinterName = "";
rpt.PageSettings.Gutter = 0.0f;
rpt.PageSettings.Margins.Bottom = 0.0f;
rpt.PageSettings.Margins.Left = 0.0f;
rpt.PageSettings.Margins.Right = 0.0f;
rpt.PageSettings.Margins.Top = 0.0f;
rpt.PageSettings.PaperHeight = 3.0f;
rpt.PageSettings.PaperWidth = 6f;
}
but it appeared to have no effect.
can you give me any help with this?
|
|
|
|
|
Report
|
|
|
|
12-19-2005, 1:33 PM
|
brandon
Joined on 06-24-2003
Posts 3,671
|
Re: Need help with Columns and a SubReport
|
|
|
|
|
If you post what you have so far, we'll take a look at it. I'm told it may not even be possible.
brandon. webmaster. -DD
|
|
|
|
|
Report
|
|
|
|
12-21-2005, 11:32 AM
|
blaggard
Joined on 10-02-2003
Posts 211
|
Re: Need help with Columns and a SubReport
|
|
|
|
|
|
I can attach the documents has they contain sensitive information and are highly integrated into our software.
In essence i want the contents of a subreport document to continue on to the next column based on the bounds of the subreport control on the parent report.
For example:
i create an rpx document (subreport) and i set it to have 2 columns. I also set the column direction to be down then across. When i preview the document i see 10 rows of information on the report (I have 10 records in the data i am pulling from). Each data row appears beneath each other. This is fine.
In the parent report, i have put a subreport control on it. I have set the subreport not to grow. The height of the subreport is such that only 5 rows of data will be visible. The subreport control is wide enough to allow for another column.
I set the subreport controls source to the the subeport document that i created.
When i preview the parent report, i only see 5 rows of data , where as i want to see 2 columns contin 5 rows of data each.
I have tried adjusting the subreports page size as suggested, but this had no effect.
I am now beginning to think this is not possible, so would it be possible to have a CR created for this?
|
|
|
|
|
Report
|
|
|
|
12-21-2005, 4:08 PM
|
brandon
Joined on 06-24-2003
Posts 3,671
|
Re: Need help with Columns and a SubReport
|
|
|
|
|
Ok, that makes a little more sense. I thought you had 2 columns on the
main report. I see now that your subreport had the columns. In this
case, you are correct- the subreport won't move to the next column just
because its height is set to less than the height of the data. It will
truncate that data since it's greater than the subreport height. I
think you'll want to use multiple columns on the main report instead of
the subreport.
brandon. webmaster. -DD
|
|
|
|
|
Report
|
|
|
|
01-09-2006, 4:51 AM
|
blaggard
Joined on 10-02-2003
Posts 211
|
Re: Need help with Columns and a SubReport
|
|
|
|
|
|
AcrossDown is no use for me, i really need to use DownAcross
You say that the columns wrap based on the subreports paper size, but this does not seem to be the case.
I set the subreport paper size to be 3" but this was not reflected on the main report.
The subreports paper size seems to be ignored and the printer default is used.
I have tried with both DownAcross and AcrossDown and both ways do not use the subreports paper size to wrap.
Are you able to get this to work?
|
|
|
|
|
Report
|
|
|
|
03-02-2006, 1:57 PM
|
edburdo
Joined on 03-01-2006
Posts 33
|
Re: Need help with Columns and a SubReport
|
|
|
|
|
Is there any further news on this particular item?
|
|
|
|
|
Report
|
|
|
|
|
|
Page 1 of 2 (27 items)
|
1 2 > |
|
|
|
GrapeCity » Product Support » ActiveReports f... » Need help with Columns and a SubReport
|
|
|
|
|