Reporting for Web - How to Use a Custom Font Distributed With the Application
This example shows how to create a report that uses the custom font shipped with the application.
In this example, the DXFontRepository object instance loads a font from a file. The report constructor creates a new font and a XRControlStyle report style based on the newly created font. The new custom style is added to the XtraReport.StyleSheet collection.
Note
Although this example is a Web Forms application, the technique is valid for all DevExpress Reporting platforms.
Files to Look At
- Global.asax.cs (VB: Global.asax.vb)
- Default.aspx (VB: Default.aspx)
- SampleReport.cs (VB: SampleReport.vb)