Posted 25 February 2021, 3:19 am EST
Is there an example of how to set the font of a flexreport textfield in the Report.OnOpen vbscript using a parameter?
-Kingman
Forums Home / ComponentOne / WinForms Edition
Posted by: kbj on 25 February 2021, 3:19 am EST
Posted 25 February 2021, 3:19 am EST
Is there an example of how to set the font of a flexreport textfield in the Report.OnOpen vbscript using a parameter?
-Kingman
Posted 25 February 2021, 4:36 pm EST
Hi,
You can change the font of a flexreport’s textfield in the Report.OnOpen VBScript using a parameter in the following way.
Field1.Font.Name = pFont
You need to use a Parameter of string datatype which will provide the font name that you can assign to the Name property of the font of the TextField. If you also need to change the size of the font then you will need to follow the same approach and assign the size to the Size property of the font of the TextField.
Please refer to the sample attached and modify it according to your requirements.
Regards.
Avnish
FlexReportFontChange.zip