I set the following script in the subreport:
public
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?
Is there any chance you could provide me with a sample on how to do this as i am having no joy whatsoever.
thanks.
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?
I dont think your suggestion would work for me.I have attached a jpg to give an idea of what i am trying to achieve.
Can you let me know if it is possible to do what i have shown in the jpg and if so how would i do it?
forgot to zip the jpg.here it is now.
The simplest solution would be to set the ColumnDirection property to AcrossDown rather than DownAcross. The problem that you are having is that the colmns will wrap based on the subreports paper size. However, the wrap is probably not going to work as you want it to. If the subreport's height was 3" then every 3" the wrap would take place. I would recommend just using the AcrossDown direction.
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?
You are right. After looking at the issue again, the Subreport does not handle columns based on it's own page height. All page breaks and page dimensions are handled from the Main Report; and it appears that the multicolumns of the subreport are also. There is not currently a way to work around this issue, which I am aware of. I have submitted a suggestion to our development team to handle the column break for a multi-column subreport based on either the SubReport control's height or the SubReport's page height. The CR number for this suggestion is 18667. I have attached your e-mail address to the Change Request.
Thanks,
I dont know if you can bump up the priority of CR?This functionality is required to produce a fund factsheet for one of our client implementations.I know your not keen on giving timing information, but can you give a some sort of time frame so that i can pass this information onto our client to give them a ball park idea as to when the functionality will be available?thanks for all your help thus far.
I cannot give an estimated time frame. Ultimately, these decisions are made by our development staff. I will make sure that they are aware that this issue is important to you though.