I am using StimulSoft software for showing reports in my asp.net mvc project.
In my report all of things is OK, but In print preview my font haven't be applied.
I attached my font in report.cshtml
file by using font-face
.
How can I solve this problem?
In old versions; as @Abbas-Mirzaei said, you have to install fonts on server. stimulsoft reports.net doesn't support import or embed fonts before 2016 versions. but in newer version you can add fonts.
Stimulsoft.Base.StiFontCollection.AddFontFile(@"d:\Work\Resources\glyphicons-halflings-regular.ttf");
Add font in project for example(fonts folder) then add this code into your service
Stimulsoft.Base.StiFontCollection.AddFontFile(Server.MapPath("~/fonts/my-font/font-name.ttf"));
Then add your fonts to server font folder too!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With