Hello All,
I have an ultragridprintdocument that prints a grid using the UltraPrintPreviewDialog. I have noticed that when printing from different computers will produce different size text (from some computers, the text of the rows is bigger, while from others it is smaller and hard to read). Comparing samples both print jobs have the same margin, its just the row size and text size differ. Has anyone seen this behavior before?
Hi Chris,
Thank you for contacting Infragistics Developer Support.
One thing that might be causing the issue is the printer drivers. Please update the drivers for all computers with the issue to the latest one for your printer. You should also check if all of the printer settings are identical on all of your computers. If that’s the case, please try setting the ClippingOverride property to ClippingOverride.Yes. You can do that in the InitializePrintPreview event using code like:
e.DefaultLogicalPageLayoutInfo.ClippingOverride = ClippingOverride.Yes
Let me know if these suggestion help you solve your issue.
I am looking forward to your reply.
Dimitar, Thanks for the quick response.
I have verified the drivers are the same and the settings are all the same. I have also attempted to use the code provided, with no affect. I am not able to duplicate the issue, with 2 different computers printing to the same printer with the same settings, but the font and row size are different. Any other ideas?
Which text is changing? The text in the cells or the headers, or both?
One possibility is that you are using a particular font for the text in the grid and that font does not exist (is not installed) on one of the machines. So the DotNet framework will fall back to some other font, which might appear different. This would, of course, cause the font to display differently on the screen, as well, but it might be subtle and maybe you just don't notice it as much. Do you know what font you are using?
Does the font difference show up in the print preview, too, or only when printing? If it's in the print preview, then can you post a couple of screen shots so we can see what it looks like on each machine?
Both texts are changing
I am using the standard Microsoft Sans Serif font.
I have attached scans of the print job from the 2 different computers.
It looks to me like the grid is scaling the printout down to fit on one page. You are probably setting FitWidthToPages to 1. So the grid is shrinking the contents to fit on one page. It's the same printer, so the page size should be the same, but one of the machines might have the default printing margins set up larger so there's less available area on the printed page.
Thank you very much for the provided sample.
I have logged this issue in our internal tracking system with ID 177001 and also created a case for this - CAS-139346-N8P2S3. You can view your active support cases from the following link:
https://es.infragistics.com/my-account/support-activity
Hello,
I was able to create a sample. I noticed that once i changed the window state of the main form, that is when i started having the issue.
Thanks for following up, but at this time, i do not have the time to create a sample. Since changing the resolution worked, we have moved on until i can find some time to create a sample for you.
Hello Chris,
I am still following this thread. Have you been able to reproduce the issue in a separate sample? Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Thank you for the update.
Let me know when you are able to create the sample. I will be glad to research it.