将水晶报表转换为PDF时,urdu字体(jameel noori)无法呈现。

时间:2018-07-16 09:44:18

标签: crystal-reports

在水晶报表中,查看器数据显示准确(或使用URDU字体“ jameel noori”)或正确可读。但是当我将其导出为pdf urdu数据时,数据显示不正确。我对此问题进行了大量搜索,但没有找到一个可能的解决方案。非常需要帮助。这是我的转换代码,从.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;

}

否则if($ _ GET ['type'] =='xls')

{

$ FormatType = 29;

}

$ ObjectFactory =新的COM(“ CrystalReports.ObjectFactory.2”);

$ crapp = $ ObjectFactory-> CreateObject(“ CrystalRunTime.Application.9”);

$ creport = $ crapp-> OpenReport($ my_report,1);

$ creport->数据库-> 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;

打印“”;

0 个答案:

没有答案