使用PHP将其转换为PDF时,水晶报表的字体渲染问题

时间:2018-07-16 07:38:41

标签: crystal-reports crystal-reports-2008 urdu

在Crystal Report中,查看器数据显示准确或正确可读。但是当我以pdf导出时,urdu数据显示的方式不正确。我在这个问题上进行了大量搜索,但没有找到一个可能的解决方案。 不当意味着点会更改其实际位置 out put

非常需要帮助。

这是我的转换代码,从.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\">";

0 个答案:

没有答案
相关问题