I am printing my grid using the following code:
With UltraGridPrintDocument1 .Grid = ug_CommissionDetail .FitWidthToPages = 1 .DefaultPageSettings.Landscape = TrueEnd WithUltraPrintPreviewDialog1.Document = UltraGridPrintDocument1UltraPrintPreviewDialog1.ShowDialog()
The grid fills the landscape page nicely, but it is very slow.
When the grid goes over 1 page I get an InsufficientMemory error on my printer.
This HP is an office printer with 16MB memory.....should be sufficient.
I have also tried this printout using the PageSetupDialog and PrintDocument with the same issues.
What am I doing wrong?
Does the StyleLibrary have anything to do with this?
I want to try the v8.2 trial version, but how do I get to it? I am only seeing v9.1
Hi,
I ran your sample and I was able to get the print preview and actually print the grid with no problem. I got no Exceptions.
The only thing I noticed that might explain this is that your sample is using v8.1 of the grid - which I don't have. 8.1 is retired and no longer being updated. So I had to use v8.2.
You might want to try downloading the trial version of v8.2 and see if it works with that version.
If not, then I'm afraid the issue must be related either to the printer(s), the print drivers, or the machines you are using to test.
i had problems getting that one down to 200kb.
try this one.
I couldn't get your sample to work. It's apparently missing some files.
Error 2 Type 'Test_SlowPrinter.NWINDDataSet' is not defined. C:\Users\MikeS\Desktop\Test_SlowPrinter\Test_SlowPrinter\Form1.Designer.vb 68 31 Test_SlowPrinterError 3 Type 'Test_SlowPrinter.NWINDDataSetTableAdapters.CustomersTableAdapter' is not defined. C:\Users\MikeS\Desktop\Test_SlowPrinter\Test_SlowPrinter\Form1.Designer.vb 69 41 Test_SlowPrinterError 4 Type 'Test_SlowPrinter.NWINDDataSet' is not defined. C:\Users\MikeS\Desktop\Test_SlowPrinter\Test_SlowPrinter\Form1.Designer.vb 210 39 Test_SlowPrinterError 5 Type 'Test_SlowPrinter.NWINDDataSetTableAdapters.CustomersTableAdapter' is not defined. C:\Users\MikeS\Desktop\Test_SlowPrinter\Test_SlowPrinter\Form1.Designer.vb 211 49 Test_SlowPrinter
You don't need to include NWind.mdb, I have that. But it looks like you didn't include some neccessarily data files from the project such as the DataSet definition.
It is unlikely, but also i thought it was odd that no other posts have been made about it. I am at 2008.1 version and VB2008.
I am posting a sample pgm using the northwind customer file. You will have to attach the grid to the Northwind database(Customer). I could not get the project under the 200kb limit. It did reproduce the error on my printer.