Hello,
We have 2 small grids. By using UltraGridDocumentExporter we can export its line by line.
{Grid 1}
{Grid 2}
How we can put its in one line ?
{Grid 1} {Grid 2}
UltraGridDocumentExporter expect only Report or Section as parameter.
thanks
I just recently had this same issue. I had to create our own ISection decorator that we would pass to the UltraGridDocumentExporter's export method. Add an IFlow on your new section, add 2 columns to it and keep a reference to the IFlow. When AddBand is called, you need to add the band to the IFlow and not the Section. After you export your first grid, call a method to add a flowcolumn break on your IFlow.Then export your second grid. You should change the pagesize yourself after the export is called, the exporter never seems to get that right anyway.
public class ReportSection : ISection { private readonly bool _withFlowColumns; private readonly ISection _section; private IFlow _flow;
public ReportSection(Report report, bool withFlowColumns) { _withFlowColumns = withFlowColumns; _section = report.AddSection(); if (_withFlowColumns) { _flow = _section.AddFlow(); _flow.AddColumn(); _flow.AddColumn(); } }
public void AddFlowColumnBreak() { if(_flow != null) _flow.AddColumnBreak(); }
public IBand AddBand() { if(_flow != null) return _flow.AddBand(); return _section.AddBand(); }
// All other implementations call the corresponding method on _section
}
Hai,
I am showing two grids in a PDF export in 2 pages using the following code.
UltraWebGridDocumentExporter2.ExportMode = Infragistics.WebUI.UltraWebGrid.Exporter.ExportMode.Custom;// trigger export UltraWebGridDocumentExporter1.Export(uwg1, theReport); UltraWebGridDocumentExporter2.Export(uwg2, theReport);
But I want to show it in the same page itself since there is lot of space available for both grids.
Thanks