سلام
من کد زیر را نوشته ام
public ActionResult LoadReportSnapshot()
{
var driver = new
{
FirstName = "علی",
LastName = "یگانه مقدم",
};
var report = new StiReport();
report.Load(Server.MapPath("~/Files/driver.mrt"));
report.Dictionary.Variables.Add("today", "aaaaa");
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
}
public virtual ActionResult ViewerEvent()
{
return StiMvcViewer.ViewerEventResult();
}
public virtual ActionResult PrintReport()
{
return StiMvcViewer.PrintReportResult(this.HttpContext);
}
public virtual ActionResult ExportReport()
{
return StiMvcViewer.ExportReportResult();
}
@using Stimulsoft.Report.Mvc
@{
ViewBag.Title = "Print";
}
<h2>Print</h2>
@Html.Stimulsoft().StiMvcViewer(new StiMvcViewerOptions()
{
Localization = "~/content/reports/fa.xml",
Actions =
{
GetReportSnapshot = "LoadReportSnapshot",
ViewerEvent = "ViewerEvent",
ExportReport = "ExportReport",
PrintReport = "PrintReport",
}
})
وقتی تبدیل به pdf میکنم حروف انگلیسی را بصورت مربع مربع نمایش میدهد درصورتیکه حروف فارسی و اعداد را صحیح نمایش میدهد
Untitled.png
برای حل مشکل باید چکار کنم
باتشکر