Walif
Walif

Reputation: 11

Fastreport font problem when publish asp.net core project

I have a project which developed by asp.net core for backend & using react js for frontend.I am using fastreport for generating pdf.When i used fastreport design view my custom font works fine but when i publiished into server custom font doesn't appear. Please check below image link for better understand.I am using fastreport 2020.1 version & inside asp.net core used fastreport opensource dll.

1.https://i.sstatic.net/MG3Bt.png 2.https://i.sstatic.net/iY6gS.png

note:I am using member code for agency fb font.When publish agency font is changed.

Upvotes: 0

Views: 517

Answers (1)

Unbalanced-Tree
Unbalanced-Tree

Reputation: 58

I am late to the party, but here's how I did it.

Report report = Report.FromFile("Complete File Path");
report.RegisterData(data, "Data Binding Name");
report.Prepare();

PDFExport export = new() { EmbeddingFonts = true  };

MemoryStream stream = new();
report.Export(export, stream);
    

EmbeddingFonts = true. I think you missed this.

Upvotes: 0

Related Questions