Hi MC,
Sorry for the delay on this issue.
The reason for getting this issue is that your problem is related to the GraphicsUnit specified for a font.
When you print the grid the text in cells might for example be clipped differently than when it is displayed. This is because the font is device dependent. GridFontInfo.Unit lets you change this.
If you need to have the grid clip text in cells device-independent, thus making the print output look exactly the same as screen output you should specify GraphicsUnit.World for
of the standard styles
object.
In the following code snippet, the GraphicsUnit for standard font for a grid control is change to GraphicsUnit.World.
GridStyleInfo standard = Grid.Model.BaseStylesMap["Standard"].StyleInfo;
Font dfont = Control.DefaultFont;
standard.Font.Unit = GraphicsUnit.World;
standard.Font.Facename = dfont.Name;
standard.Font.Size = GridFontInfo.SizeInWorldUnit(dfont);
Here is a modified sample for your reference.
ModifiedGraphicUnitPrint.zipThanks for your patience.
Best regards,
Haneef