Home » U++ Library support » RichText,QTF,RTF... » PDF Export With Chinese Character[SOLVED]
PDF Export With Chinese Character[SOLVED] [message #22788] |
Sat, 15 August 2009 15:35 |
kasome
Messages: 78 Registered: July 2008 Location: Taiwan
|
Member |
|
|
I try to use Report package to export pdf file with Chinese character, and here is the content of my test case.
#include <Report/Report.h>
using namespace Upp;
GUI_APP_MAIN
{
Report r;
r.Header("[A2> Page $$P");
r << "This is some [* QTF text";
r << t_("顯示[* QTF 文字");
r << "&&Let's report some table:";
r << t_("輸出表格式報表:");
String tab;
tab << "{{1:1:1:1:1:1:2 A:: B:: C:: D:: E:: F:: G (wider)";
for(int row = 0; row < 20; row++)
for(int column = 0; column < 7; column++)
tab << ":: " << row << ":" << column << t_("測試");
r << tab;
r.NewPage();
int y = r.GetY();
r.DrawEllipse(300, y + 50, 3000, 2000, LtRed, 20);
r.DrawText(500, y + 50 + 950, "Some free drawing in this page!", Arial(100));
r.DrawText(500, y + 50 + 1100, t_("在這頁隨便畫一些東西!"), Arial(100));
r.SetY(y + 50 + 3000);
r << "More of [/ QTF] [C6* text";
Perform(r);
}
The Report package works no problem on Chinese character, but when i push the "PDF export.." Button,it outputs an empty pdf file and with the file size 0kb.
I already put the test case as file Attachments,could someone help?
[Updated on: Sat, 22 August 2009 09:25] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 28 12:50:24 CEST 2024
Total time taken to generate the page: 0.03475 seconds
|