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!
Printing Chinese is a random code |
Post Reply |
Author | |
Tebox
Beginner Joined: 21 Jun 18 Status: Offline Points: 2 |
Post Options
Thanks(0)
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?? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store