Hi,
I am using the UltraGridDocumentExporter to export a UltraGrid to pdf . My grid contains data as grouprows. When I use the export now I get all the rows continuously exported in pdf (successive pages).
Is it possible to add a page break in the section between exporting each row ? I tried using the section.AddPageBreak() in InitializeRow event but this function inserts the page break after the whole grid is exported. Any way I can add this page break in between the row exports.
There should be very simple solution for this, I just don't know what :-) .
Cheers,
Avinash
Hi Avinash,
InitializeRow fires for each row in the grid before any exporting actually takes place.i think you might be able to achieve what you want using a different event like RowExporting or RowExported. But I'm not sure it's possible to insert a page break, since the exporter uses an ITree structure, and it might not support page breaks in the middle of a tree.
Hi Mike,
I tried using RowExporting as well as RowExported but still cannot add a break in the page. I also tried duplicating the displayed datagrid and then exporting the grid by making only one row visible for each of the rows in the Grid. But this as expected is very very slow.
The solution I can think of is to somehow create a Table from each row and then creating a manual section for each table asing the formating as in the Grid. Any pointers on doing this ?
Any better easier way than the above will be really great ?