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
UltraWinGrid Printing Problem


Hope you all are fine and doing great.

I am using winGrid with 1 group and 3 Levels.
When I try to print the grid using wingrid.print() method, it do print, but it print on multiple pages, even though there is lot space on previous page.

On the Click event of print button, i wrote

       Dim dr As DialogResult = PrintDialog1.ShowDialog()
       If dr = Windows.Forms.DialogResult.OK Then
            Dim prtDoc As New Printing.PrintDocument
            prtDoc.DefaultPageSettings.Landscape = True
            prtDoc.PrinterSettings = PrintDialog1.PrinterSettings
            UGSearchResult.Print(UGSearchResult.DisplayLayout, prtDoc)
        End If


Private Sub UGSearchResult_InitializePrint(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.CancelablePrintEventArgs) Handles UGSearchResult.InitializePrint
        e.DefaultLogicalPageLayoutInfo.FitWidthToPages = 1
End Sub

While printing, when i open the printing task, it shows me document 1 of 1 is printing.
How should i resolve this problem

Thanks in Anticipation

Muhamamd Zahid