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?
What version of the grid are you using?
I can't see any reason why this should fail with the information you listed here.
What exactly is the error message you get? Is there a call stack?
Can you duplicate this in a small sample project and post it here so we can take a look?
Mike,
I am using 2008.1.2161.
The error is not a PC or Infragistics error.
The printer will blink for about 1 minute and then print a PCL XL error page. All it says is
Error: InsufficientMemory
Operator: text.
Position: 245107
It would take me a little while to create a sample pgm.
I have tried 3 printers with this output. the first had about 2 MB and it choked. the second had about 16MB and it choked. the third has 32MB and it printed fine.
So I changed the AppStyle right before printing to reduce the amount of graphics. It will print on the 16MB printer now. But this is not a solution.
It seems that the UltraPrintPreviewDialog is sending the document as one continuous page and not breaking it up into pages. The printers are set up for spooling and that should force them to print upon pagebreak. But it acts like there are no pagebreaks being sent.