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.
- Global.asax.cs (VB: Global.asax.vb)
- Default.aspx (VB: Default.aspx)
- SampleReport.cs (VB: SampleReport.vb)
(you will be redirected to DevExpress.com to submit your response)