Проблема рендеринга шрифтов в Crystal Report при конвертации в PDF с использованием php
В Crystal Report Viewer данные отображаются точно или правильно читаемые. но когда я экспортирую его в pdf
данные урду показывают ненадлежащим образом. Я много искал по этому вопросу, но не нашел ни одного возможного решения. неправильно означает, что точки меняют свое фактическое местоположение
Очень нужна помощь.
Вот мой код конверсии от .rpt
в .pdf
session_start();
$U_ID=$_SESSION['name'];
$U_TYPE=$_SESSION['type'];
include("../connection.php");
$rpt='SALE';
$my_report = "C:\\inetpub\\vhosts\\pfcnt.net\\2018.pfcnt.net\\crystalrp\\Reports\\".$rpt.".rpt";
$filename=$rpt.".".$_GET['type'];
$forvd="../pdf&excel/".$filename;
$fordd="pdf&excel/".$filename;
$myfile = "C:\\inetpub\\vhosts\\pfcnt.net\\2018.pfcnt.net\\pdf&excel\\".$filename;
if($_GET['type']=='pdf')
{
$FormatType=31;
}
else if($_GET['type']=='xls')
{
$FormatType=29;
}
$ObjectFactory= new COM("CrystalReports.ObjectFactory.2");
$crapp = $ObjectFactory->CreateObject("CrystalRunTime.Application.9");
$creport = $crapp->OpenReport($my_report, 1);
$creport->Database->Tables(1)->SetLogOnInfo("213.136.76.67", "PF18", "pf18",
"sep302*");
$creport->FormulaSyntax=0;
$creport->RecordSelectionFormula="{TSALE.NO}=".$_POST['no'];
$creport->EnableParameterPrompting = 0;
$creport->DiscardSavedData;
$creport->ReadRecords();
$creport->ExportOptions->DiskFileName=$myfile;
$creport->ExportOptions->FormatType=$FormatType;
$creport->ExportOptions->DestinationType=1;
$creport->Export(false);
$creport = null;
$crapp = null;
$ObjectFactory = null;
print "<embed src=\"".$forvd."\" width=\"100%\" height=\"800px\">";