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
710
Reports (WinGrd) 4 questions
posted

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.None
UGDE.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!

 

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    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.

Children