|
Assembly assembly = typeof(MainWindow).GetTypeInfo().Assembly;
var resourceName = "ReportsTest.fonts.font_islamic.ttf";
if (this.reportViewer.PDFOptions == null)
{
this.reportViewer.PDFOptions = new Syncfusion.ReportWriter.PDFOptions();
}
if (this.reportViewer.PDFOptions.Fonts == null)
{
this.reportViewer.PDFOptions.Fonts = new Dictionary<string, Stream>(StringComparer.OrdinalIgnoreCase);
}
this.reportViewer.PDFOptions.Fonts.Add("font islamic", Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName));
|
|
Query |
Response |
|
hi thank you , I didn't understand where did you find buid action |
If you open the modified application which we shared in previous update.
You can find the TTF file which we have embedded for your reference.
Then right click the TTF file to load its properties where you can find the Build Action properties which we mentioned in previous update. |
|
I want to use it in textboxe fields like in image |
Please follow the steps provided in previous update to install the TTF file in your system to reflect the font in Report Designer and choose the font for textbox fields. |
|
second could I use any font since I make it embed in report designer platform |
Yes, you can embed any font TTF but the font name should be same which you provide in PDFOptions and font family for textbox while designing which has been highlighted in blue for reference
|