Skip to main content
Answer

I generate report design by code but khmer font not display correct

  • June 17, 2025
  • 1 reply
  • 43 views

Forum|alt.badge.img

 Dictionary<String, String> parameters = new Dictionary<String, String>();
 parameters["OrderType"] = Base.Document.Current.OrderType;
 parameters["RefNbr"] = Base.Document.Current.OrderNbr;
 //Report Processing
 PXReportSettings settings = new PXReportSettings(rowExt.UsrDefReport);
 PX.Reports.Controls.Report _report = ReportLoader.CheckIfNull(nameof(ReportLoader)).LoadReport(rowExt.UsrDefReport, null);
 ReportLoader.InitReportParameters(_report, parameters, settings, false);
 PX.Reports.Data.ReportNode reportNode = ReportDataBinder.CheckIfNull(nameof(ReportDataBinder)).ProcessReportDataBinding(_report);
 //Generation PDF
 byte[] data = PX.Reports.Mail.Message.GenerateReport(reportNode, RenderType.FilterPdf).First();

 if (!salesPersonExt.UsrBotID.IsNullOrEmpty())
 {
     Helper.SendByTelegramWithFile(salesPersonExt.UsrBotID, data, Base.Document.Current.OrderNbr, "Sales Order: " + Base.Document.Current.OrderNbr);
 }

but print report in ui show correctly display

Best answer by Tony Lanzer

Is this a SaaS site? If so, I believe you are limited to the supplied fonts, and a custom font wouldn’t be supported.

1 reply

Tony Lanzer
Pro III
Forum|alt.badge.img+2
  • Pro III
  • Answer
  • July 8, 2025

Is this a SaaS site? If so, I believe you are limited to the supplied fonts, and a custom font wouldn’t be supported.