Is there a way to have ONLY the first page have particular margin settings, and all subsequent pages to have different settings?
Also, when I create new Sections, they get bumped to the next page. Can I make the a new Sections run right up against the section above it?
Thank you.
Hi there,
There is no way to index into the objects that you add to the report. The report is designed in such a way in that you must manage the references yourself. If you don't "Grab" the ISection (or any other reference that is returned by the various Add methods) you will not be able to locate it afterwards.
You can further refactor your method to accept a specific ISection to handle your logic.
Tom
This is what I meant:
//set appropriate footer
//set a different footer...
Say I pass the Report object into another method. How do I "get to" the Section called _creditCardSection OR how do I "get to" the Section called _cashFlowSection?
Tom Puglisi"] Hello, In order to give your first page different Margin settings, I would suggest that you add a dedicated section to your report and then fill that section with whatever elements you need to create your "First page" of content. You will then set the appropriate margin values as you require. You will then add a page break and then add another section and whatever container elements you require in order to represent your data. Your statement: "Can I make the a new Sections run right up against the section above it?" ...If i understand this correctly, are you trying to add different kinds of content together on the same page? If that is what you mean, then I would suggest taking the approach of adding 2 (or more if you need) content objects to a section, setting their width and height properties and then adding whatever content you need to them. Pattern Content Objects for your Report: http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/DocumentEngine_Pattern_Content.html -Tom
Hello,
In order to give your first page different Margin settings, I would suggest that you add a dedicated section to your report and then fill that section with whatever elements you need to create your "First page" of content. You will then set the appropriate margin values as you require.
You will then add a page break and then add another section and whatever container elements you require in order to represent your data.
Your statement:
"Can I make the a new Sections run right up against the section above it?"
...If i understand this correctly, are you trying to add different kinds of content together on the same page? If that is what you mean, then I would suggest taking the approach of adding 2 (or more if you need) content objects to a section, setting their width and height properties and then adding whatever content you need to them.
Pattern Content Objects for your Report:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/DocumentEngine_Pattern_Content.html
-Tom
Okay.
Is there a way to "index into" the sections I've added?
I want to set one kind of footer for one section, and then a totally different footer for another section, but both sections are in the same Report.