Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
785
How can we show the two grids data in to one page in infragistics reports
posted

I am using this code to display report in infragistics. Assume Grid1, Grid2 contains the data.

I can see the report in two different pages,even if first page(grid1) contains 1 row data.

    1) Please help how to display two grids(Grid1,Grid2) data in one page in report.

    2) How can we use EmbeddedVisualReportSection without grid.  

Infragistics.Windows.Reporting.

 

Report reportObj = new Infragistics.Windows.Reporting.Report();

EmbeddedVisualReportSection Grid1data = new EmbeddedVisualReportSection(Grd1);EmbeddedVisualReportSection Grid2Data = new EmbeddedVisualReportSection(Grd2);

reportObj.ReportSettings.Margin = new Thickness(60);

reportObj.ReportSettings.HorizontalPaginationMode =HorizontalPaginationMode.Scale;

reportObj.Sections.Add(Grid1data);

reportObj.Sections.Add(Grid2data);

 

 

 

 

printPreview = new PrintPreview(reportObj); 

printPreview.ShowDialog();

 

 

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Chetan,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post I can say that the EmbeddedVisualReportSection’s constructor takes a UIElement as a parameter and if you want to print two XamDataGrids you can add them in a LayoutElement and add this element as parameter. Also I can say that each Section is printed on a different Page.

     

    Feel free to write me if you have further questions.

Children
No Data