Change Font Size using Script
I am able to change a font style using report script but the constructor of the fontstyle object does not allow a font size to be passed
txt1.font = new font(txt1.font, 32, fontstyle.Bold)
This causes an error and the report will not run.
How can I change the font size?
txt1.font = new font(txt1.font, 32, fontstyle.Bold)
This causes an error and the report will not run.
How can I change the font size?
Comments
txt1.Font = new Font(font.FontFamily, font.Size + 30, FontStyle.Bold);
note: 1 pixel = 0.75 point
https://www.translatorscafe.com/unit-conver...typography/9-8/