Do you have the latest Hot Fix? I think this might be a known issue which was fixed.
If that does not help, you should Submit an incident to Infragistics Developer Support and, if possible, include a small sample project demosnsrating the issue.
stanleyconstant,
I'm glad that my code is used ;)
My code only render the Report on the graphics surface of a printer. That is all.
You submitted code is a mess, unreadable, please attach a zip with sources if you want a reply ;)
Do you have tryed to print directly the Report w/o preview it (with Report.Print())?If yes the text still grey also on the printed document?
I used Report with many types of docs, but it still working good everytime... one suggestion, read your code that describe/create the Report, the problem could be here.
Regards,
Davide.
From the "Reply" interface (not through "Quick Reply"), go to the "Options" tab. This will provide you with an option to upload and attach a file to your post.
The form with the sample UltraPrintPreviewDialog and Report code is attached. Thanks for the help. I was using the the google browser which doesn't work with the file upload on this forum.
I saw,the preview seems grey, but is not grey, it's correct!Remember that the preview is done on a scaled version of the document on a LCD monitor ... and the blackness of text may be affected by severals factors (ambiental light, adjustments of monitor, ecc).
If you print, via the preview dialog or via Report.Print(), the printed doc is correct.
To enable printing from preview dlg remove the lline 98 (e.Cancel = true;)To print directly fomr Report you must specific the printer name; you can get the name of default printer of the PC with this code:System.Drawing.Printing.PrinterSettings psets = new System.Drawing.Printing.PrinterSettings();string _currentPrinter = psets.PrinterName;
Ciao
Okay. I understood the document printed fine in black. I guess the UltraPrintPreviewDialog will not work as a means of properly viewing the report with sharp black text.
Thanks for the help and the code.