my question is about printing
how can I print WinGrid Data And WinChart at the same time
and who add some text in the head of report manual
thnx
I got a similar need. No answer on this post sime march?!? does that mean this can't be done??
The WinGrid creates it's own print job, so I don't beleive this is possible. You should Submit a feature request to Infragistics
I found the UltraGrid.DrawToBitmap method to use to print with the e.Graphics.DrawImage but couldn't display UltraGrid actuall data properly as yet and the bitmap width/height don't seem to work properly neither~
ugrid1.DataSource = dt
Dim tmpHeight As Integer = 500
Dim bmpGrid As New Bitmap(tmpWidth, tmpHeight)
e.Graphics.DrawImage(bmpGrid, 50, 70, 500, 500)
I think DrawToBitmap is a method on Control, not specific to the grid, and it probably just draws a snapshot of the grid on-screen. So this won't work if any part of the grid happens to be scrolled out of view. Perhaps you could draw the chart to a Bitmap, instead and put that into the header or footer of the print document.