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
280
UltraGridPrintDocument - How to Print Full Cell Content?
posted

I have an Ultragrid with cells that are being used for free form text entry up to 1000 characters. The scroll bars in the cells are turned on. I have an UltragridPrintDocument set up to print the contents of the grid. When the document is printed, only the visible area of the cell prints. Is there a document property  that can be set to print the full contents of the cell rather than just the visible area?

 Thanks

Roger 

Parents
  • 37774
    Verified Answer
    posted

    Roger,

    One way to do this would be to have each row resize itself when preparing to print; this will not affect the layout of the original grid, only the one being printed.  Try the following in the grid's InitializePrint event:

      private void ultraGrid1_InitializePrint(object sender, Infragistics.Win.UltraWinGrid.CancelablePrintEventArgs e)
    {
        e.PrintLayout.Override.RowSizing = RowSizing.Free;
        foreach (UltraGridRow row in e.PrintLayout.Rows)
            row.PerformAutoSize();
    }

    -Matt 

Reply Children