The attachment contains report.mrt and msyh.ttf.
Code: Select all
private void button1_Click(object sender, EventArgs e)
{
Stimulsoft.Base.StiFontCollection.AddFontFile("..\\..\\..\\data\\msyh.ttf", "微软雅黑");
using (var stiReport = new Stimulsoft.Report.StiReport())
{
stiReport.Load("..\\..\\..\\data\\Report.mrt");
stiReport.Render();
stiReport.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf, "..\\..\\..\\data\\Report.pdf", new Stimulsoft.Report.Export.StiPdfExportSettings { EmbeddedFonts = true });
}
}