I'm using Reporting to export a dashboard that may contain a number of gadgets. The report ends up with several <Table>s to display all the data. But I'm having trouble coming up with a workable set of rules for setting Top and Height attributes to get everything to display. It's really easy to get values that will stop producing output before the end of the report. I'm having a lot more trouble trying to figure out the correct relationships between the Top attribute and Height attributes of various elements to produce the results I need.
Can anyone give me some advice on how to properly set these attributes?
Thanks,
Mike
Hello Mike,
I have been looking through your post and I can suggest you check the following links from our documentation which can help you design your report in different sections:
http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=How_To_Using_the_Report_Sections.html
http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=Report_Designer_Designer_Surface_Structure.html
If you have any additional questions on this matter, please feel free to ask.
Thanks for the quick response Elena. I read over the documents you suggested, but they don't seem to address the issue I am having. In my case I am putting several Table's and Label's in the Body section, but I'm having trouble finding the correct settings for the Top and Height attributes. There seems to be some magic required to set these properly. If I set them too small, then things overlap in the output PDF file. If I set them too large, nothing gets output to the PDF. I'm looking for some help on how to correctly set the Top and Height attributes.
The following image shows the layout of the report I'm trying to generate.
The first Table, the first two Labels and the second Table get into the PDF file, but nothing after that. I know it's got something to do with correctly setting the Top and Height attributes, but I can't seem to find a workable set of rules to apply.
I hope you can shed some light on this problem.
Thank you for the clarifications. I have been investigating this issue an I believe that the Top property should set the distance from the beginning of the document and the Height of the table should represent the size of the table component itself. Still in our Infragistics Reporting we provide visual designer surface where you can easily arrange your component by just dragging them inside the surface. For further reference and detailed walkthrough you can check the following link from our documentation:
http://help.infragistics.com/NetAdvantage/reporting/2011.2/CLR4.0?page=Creating a Multi-Level Tabular Report.html
If you have any additional questions on this matter please let me know.
Unfortunately, that link (and all other pages I have looked at) don't address the issue of trying to put several Tables in the same report. I am building a report definition at run-time, so the design surface really isn't applicable.
You are right, and I agree, that setting the Top and Height seem to be key. But I have been unable to find a good algorithm to set these so far. That's what I'm looking for. It's not clear what Height to use for a table (which at runtime can span several pages). So far I have been trying to set the Top value to the old Top value, plus the height of the Table (plus a pixel just for good measure). But that still seems to fail after the first Table and nothing else ever shows up in the Report.
Should we keep discussing here in the forum, or should I escalate this to a formal support request?
I have been looking through your code and I believe that the issue that you are describing may be caused because the DetailSection’s Height property is set to 82 pixels and may be there is not enough space in the section for showing all of the tables.
Also in your case may help if you initially test your scenario by creating a sample report with test data in the designer surface and then open the new created igr file inside text editor. This way you will be able to investigate by yourself the dependency between the measures that you mentioned.
Still based only on this code snippet I can’t be sure what may cause this issue. Would you please provide me with a small sample where this issue is representable.
Thanks in advance.
Thanks you! Thank you! Thank you!
That was the bit I was overlooking. I changed that to the height of the page and now all of my output is coming out, just like I wanted.
Thanks again,