Hello.
I use reporting together with entity framework.
Generally the structure is this:
1. I have a winform and there I select what kind of report I want to see, and also select data for the report.
2. I pass this data to report and refresh it.
I have a report that has some tables and lists inside. To pass data to those report elements I defined SetDS method for each report. For example:
public void SetDS(Product product) |
{ |
EntityTools.LoadReferences(product); |
foreach (WciFilling item in product.WciFilling) |
EntityTools.LoadReferences(item); |
foreach (WciAdditionalItem item in product.WciAdditionalItem) |
EntityTools.LoadReferences(item); |
this.DataSource = product; |
this.lstFilling.DataSource = product.WciFilling; |
this.tbGrid.DataSource = product.WciAdditionalItem.Where(o => o.WciAdditionalItemType.Id.Equals((int)EnWciAdditionalItemType.Grid)); |
} |
So, now I want to use one of these reports as a sub-report inside of list, and the question is how can I call SetDS for that subreport?
Or, maybe, I'm going in a wrong way, and there is a better approach?
Thanks.
Best regards,
Oleksandr
MultiValue = True
Dear Support Team
We try to generate report items by code (in this case multiple panels with a key/value list).
The problem now is that the PDF rendering does overlap the panels each time after a new page begins.
I have attached a test report that shows the issue.
The reportlayout.jpg shows the first page with the generated lists (there you can see that all of them have the same distance between each other.
But the first list on 2ndpage.jpg overlaps the next one.
Exporting to HTML or RTF generates those distances correctly.
All panels are generated with Dock.Top, the height is dynamic (based on the number of items in the list).
Is it a known problem of PDF rendering and/or do you have a workaround for that?
Please let me know if you need the code.
Thank you
Björn