Wednesday, June 9, 2021

SSRS - How to Use Native Dot-Matrix Printer Fonts in Report

 Question:  SSRS - How to Use Native Dot-Matrix Printer Fonts in Report

Answer:  If you want to print your report in different fonts based on the printer's type then you need to use font from the SSRS expression. You can have a input parameter for printer type and based on the value of printer type input parameter, Report will show data in specific font:

To do this, you need to change the textbox property. Right click on any textbox in your report
èTextBox Propertiesè Font=>Right the expression like below for your report

=IIF(Parameters!PrinterType.Value= 1,"Viner Hand ITC","Arial")

 

You need to change it for all the required text boxes. Now run the report, give the parameter value and see the result.

No comments:

Post a Comment