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
350
2 or more UltraGrids in 1 ExportDocument
posted

 Hi,

Its posible to export 2 UltraGrids in 1 UltraGridDocumentExporter or in 1 UltraGridExcelExporter? and I f i have a Grid with CarView = True, is there any way to export that grid like Cards to PDF or excel?

  • 37774
    posted

    I'm not sure if card view is supported when exporting to PDF (almost certain that it is not for exporting to Excel), but if you want to export the same grid to a single Report object, you would need to use the overload that takes an ISection and add a grid to each section, i.e.:

    Report report = new Report();

    this.ultraGridDocumentExporter1.Export(this.ultraGrid1,  report.AddSection());

    this.ultraGridDocumentExporter1.Export(this.ultraGrid2,  report.AddSection());

    You might also even be able to pass in the same section, assuming that the grids are of similar sizes.  You could try a similar approach to the UltraGridExcelExporter, passing in the same worksheet or workbook, but in this case they might end up overwriting each other.

    -Matt