Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Printing Chinese is a random code
  FAQ FAQ  Forum Search   Register Register  Login Login

Printing Chinese is a random code

 Post Reply Post Reply
Author
Message
Tebox View Drop Down
Beginner
Beginner


Joined: 21 Jun 18
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tebox Quote  Post ReplyReply Direct Link To This Post Topic: Printing Chinese is a random code
    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??

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store