Print Page | Close Window

Printing Chinese is a random code

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3581
Printed Date: 18 Apr 24 at 10:35PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Printing Chinese is a random code
Posted By: Tebox
Subject: Printing Chinese is a random code
Date Posted: 21 Jun 18 at 7:17AM
       RemarksID :=QP.CreateTable(1,2)正在查询,请稍候……

        QP.SetTableBorderColor( RemarksID ,0 ,0.01 ,0.01 ,0.01 );
        QP.SetTableBorderWidth( RemarksID ,0 ,0.1 );

        QP.SetTableRowHeight( RemarksID ,1 ,1 ,20 );
        QP.SetTableColumnWidth( RemarksID ,1 ,1 ,30 );
        QP.SetTableColumnWidth( RemarksID ,2 ,2 ,200);

        QP.SetTableCellBackgroundColor( RemarksID ,1 ,1 ,1 ,1 ,0.529 ,0.807 ,0.921 );

        Text :='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><font face="Microsoft YaHei" color="black">' +
          '测试用的中文'+ '</font></body></html>';
        FontID := QP.AddUnicodeFont( 'Microsoft YaHei' ,0 ,0 );
        QP.SelectFont( FontID );
        QP.SetHTMLNormalFont( Text ,FontID );
        QP.SetTableCellContent( RemarksID ,1 ,1 ,Text );
        QP.SetTableCellContent( RemarksID ,1 ,2 ,Text );

        QP.SetOrigin( 1 );
        QP.DrawTableRows( RemarksID ,0 ,0 ,1 ,0 );


The print is a random code. How do you solve it?
It's normal to use QP.DrawText.
why??




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk