Is this a known problem or am I missing something?
Are you passing in a PrintDocument to the method? Are you sure that the printer that you have the grid set to print to is actually available and responds in other applications? All of the code that you posted is basically appearance-related, so I'm not really sure how that would cause the appliation to hang. It seems like it's waiting on a response from the printer and/or driver.
-Matt
I have tried to run it on different machines, all having properly configured default printers, but none of them managed to get the grid actually printed.
What version of the grid are you using? Do you have the latest Hot Fix?
There were a few known issues that might cause the printing to hang if you have a single row that is taller than a printer page or some other unusual situation like that. But these issues were all fixed years ago as far as I know, so they would only occur if you are using a really old version of the control.
Is your data source recursive?
I am using infragistic 12.2.
ultragrid datasource comes from entity.
when i use ultragrid.PrintPreview(), application Hangs
when i use ultragrid.Print, application Hangs
when i use UltraGridPrintDocument with .Print(), application Hang
Please Help.
Hi,
Are you able to use Ctrl+Break to stop execution during the hang? If so, where does it break?
Can you post small sample project demonstrating the hang? I'm afraid I can't begin to guess why it's hanging without being able to see and Debug the problem.
I have figures out the problem,it was nothing to do with infragistic. its because of the [showdialog] property of windows which was some how not allowing the process to return back from printing code. not sure why but after changing [showdialog] to [show] it worked perfectly.
Thaks any way
If you can post a small sample project demonstrating the issue, I'd be happy to take a look. But without a sample, I'm afraid there's not much I can do.
Are you able to print anything else? Perhaps this is a problem with the default printer or the driver on your machine.
Is your data source recursive? Try setting grid.MaxBandDepth to something like 5 just as a test and see if that helps.
Also, make sure you have the latest service release in case this is a bug that was already fixed.
How to get the latest service release - Infragistics Community
at the time of hang when i press Ctr + Break it break at
Me.grdList.Print()
Form code is as following:
Public Class frmSearch Public Sub New() InitializeComponent() End Sub Private Sub frmSearch_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim CONTEXT As New RWFEntities Me.grdList.DataSource = From q In CONTEXT.V_CustomerData Select q End Sub Private Sub btnPrint_Click(sender As Object, e As EventArgs) Handles btnPrint.Click Me.grdList.Print() End Sub Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.Click Me.Close() End Sub End Class
PLEASE HELP
Even I have the same problem,
I used ultragrid.PrintPreview()
or
ultragrid.Print()
ultragridprintpreview
In all cases its printing but the application hangs.
I am using Infragistic 12.2,vb.net FW 4.0
databining is as following
ultragrid.DataSource = From q In CONTEXT.VIEWNAME Select q
Same code is working perfect in old projects with same version
Please Help