Hi all,
I'm exporting 3 grids to the same section
Dim UG_to_Export_1 As Infragistics.Win.UltraWinGrid.UltraGrid Dim UG_to_Export_2 As Infragistics.Win.UltraWinGrid.UltraGrid Dim UG_to_Export_3 As Infragistics.Win.UltraWinGrid.UltraGrid
UGDE.AutoSize = DocumentExport.AutoSize.NoneUGDE.Export(UG_to_Export_1, Section1)UGDE.Export(UG_to_Export_2, Section1)UGDE.Export(UG_to_Export_3, Section1)
1) How I can add a blank space between the grids when exported to the PDF?
I mean, all 3 grids are rednered one after the other, without any delimiter or space.
If I go with 3 sections, for some reason a pagebreak is added.
2) For some wierd reason, the exporting creates 1 or 2 extra blank pages...Why is that?
The last part only includes the footer and page numbering.
3) How I can make the grids to be centered on the page?
4) Is it possible to add a watermark?
I mean if there is a built-in feature to do that.
Thanks in advance for any help!
Gustavofr said: 1) How I can add a blank space between the grids when exported to the PDF? I mean, all 3 grids are rednered one after the other, without any delimiter or space. If I go with 3 sections, for some reason a pagebreak is added.
I imagine you will have to write out some element in between the grids. Which element you use is up to you, but if you want to insert a single line, you could do something like this:
IText text = section.AddText();text.AddContent(" ");
Gustavofr said: 2) For some wierd reason, the exporting creates 1 or 2 extra blank pages...Why is that? The last part only includes the footer and page numbering.
I'm not sure why this would happen. But it might be because you are exporting 3 grids to the same section. The UltraGridDocumentExporter changes the size of the page to fit the grid. So if you are exporting 3 grids of 3 different sizes, then the last one you export will modify the page size to suit the last grid, which might cause a problem for the other 2. It's really not intended to have more than one grid in the same section.
Gustavofr said:3) How I can make the grids to be centered on the page?
I don't think there is any way to do this.
Gustavofr said: 4) Is it possible to add a watermark? I mean if there is a built-in feature to do that.
No, there is no built-in watermark functionality.
Mike, thanks again for your kind help!
Regarding the space between grids, I cannot do as suggested since the code that actually creates the report is separated from the code that launches the report.
So, adding that text.addcontent is not possible.
In the report's code all sections, headers, footer, etc are created.
Then that sub is invoked and passed the UG (3 of them)
Any other options you can think of ?
Thanks!
Hi,
Well... if you only have access to the grid and no access to the section then there's really nothing you can do. The space would have to be added into a section of the report.
I suppose you could add a blank row into the grid, but that doesn't seem like a real solution, since it would still have cells in it.