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?

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.