Hi Infragistics team.
We have a requirement to print a report which does not have any User -Interface i.e i need to generate a report programatically.
I have an Xamdatatree with hirearchy of data as below.
Parent
-child1
-child2
--Grand Child.
When user right clicks on parent and clicks on Export then i need to generate report which should consist of Header,Footer,Page Numbers, Detail Section.
Detail section will consist of all the details related to parent and it's children in a grid view.
Ex:
--------------------------------------Header---------------------------------------------
parentdetails in datagrid
child1
child1 details in grid.
grandchild1
grand child details in Grid.
-------------------------------------Footer-----------------------------------------------
Any suggestions on what controls to use or any links related to this.
Hi Team,
I am attaching a sample report of my project.
Hi team
Any suggestions on this,
Hi,
I'm attaching my sample where I used a xamDataTree and a collaped xamDataGrid that will be used to create the report. The xamDataTree is bound to hierarchical data and when you select a parent node, you can click on the print button and generate the report.
I left in a xamReportViewer because it's handy to see the report before it is printed.
Let me know if you have any questions.
I have attached a sample solution that shows problem i am facing.
1. Visual Object is displayed in the Center of the page.
2. There are horizontal and vertical scroll bars . and data is not fully seen.
i have used header,footer and content templates. My controls in the Visual tree includes a list box with an xamdata gridin the Item template.
Please let me know where i am going wrong.
Hi
After adding below Content template to report object , data started showing from Top Left ,
But the problem is Only one page is displayed and data in remaining pages is Lost. It is not showing in the print preview either.
<DataTemplate x:Key="basicContentTemplate">
<Grid HorizontalAlignment="Left" VerticalAlignment="Top"> <ContentPresenter Content="{TemplateBinding Content}" /> </Grid> </DataTemplate>
EmbeddedVisualReportSection section1 = new EmbeddedVisualReportSection(IoreportListing.dckpnlIoList);
section1.PageContentTemplate = IoreportListing.MainGrid.TryFindResource("basicContentTemplate") as DataTemplate; reportObj.Sections.Add(section1);
I was looking into IEmbeddedVisualPaginator , do i need to Implement this Interface for printing all pages, Can i have a sample on this.
Any Suggestions to above Problem, i just need to have all my visual data printed. Right now it is printing only one page.
The xamDataGrid already implements IEmbeddedVisualPaginator which is why I originally used the collapsed grid in my sample. If you need to use another control, like the ListBox, you would have to implement the interface. You could perhaps use our source code for the xamDataGrid as a model.
Please let me know if you have any questions.
Hi Marianne
No we were planning to go with SSRS showing the report using Web Browser control for now.
I was wondering if you had further questions on this topic.
Please let me know if there is anything more that I can help you with.
The most straight forward solution is to use the xamDataGrid as the EmbeddedVisualReportSection UI control since it already implements the IEmbeddedVisualPaginator.
Your sample is embedding the listbox and you would need to implement IEmbeddedVisualPaginator for that control if your intent is to have paging implemented in your report, as I tried to indicate in my last response.
Since you have templated the nodes within the ListBox with a xamDataGrid, if you intention is to show each node’s data separately, you might be able to embed the templated xamDataGrid, and add the textboxes to the headers of the report.
The best "sample" implementation we have is the implementation of the DataPresenter which can be seen if you download our source code. This is not trivial task to use as a guide, so I have logged a new product idea for a sample implementing the IEmbeddedVisualPaginator in another control directly to our Product Management team.
Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products so as trends appear in product ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our product based on customer feedback. If your idea is chosen for development you will be notified at that time. Your reference number is PI12110022. If you need any further assistance please do not hesitate to ask.
Any thoughts on this.
Hi Marianne,
Can u help me with a sample, which will be very helpful.