Print Page | Close Window

Problem with SetTableCellTextCorlor/Size

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=3877
Printed Date: 04 May 24 at 8:27AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem with SetTableCellTextCorlor/Size
Posted By: amberimp
Subject: Problem with SetTableCellTextCorlor/Size
Date Posted: 15 Jan 21 at 12:07AM
Hi all,
I'm trying to set the text's color and size in the table. Here is my code:

int TableID0 = FQL->CreateTable(1, 1);
FQL->AppendTableRows(TableID0,1) ;
FQL->AppendTableColumns(TableID0,1) ;
FQL->SetTableColumnWidth(TableID0,1,1, 35);
FQL->SetTableCellBackgroundColor(TableID0,2,1,2,1,0.2,0.3,0.5);
FQL->SetTableCellBackgroundColor(TableID0,2,2,2,2,0.2,0.3,0.5);
FQL->SetTableCellContent(TableID0, 1, 1, L"Monday");
//FQL->SetTableCellContent(TableID0, 1, 2, L"Savings");
//FQL->SetTableCellContent(TableID0, 2, 1, L"January");
//FQL->SetTableCellContent(TableID0, 2, 2, L"$100");
FQL->SetTableCellTextColor(TableID0,1,1, 1, 1, 0.1, 0.3, 0.5);
FQL->SetTableCellTextSize(TableID0,1,1, 1, 1, 0.5);
//FQL->SetTableBorderWidth(TableID0, 0, 10);
FQL->DrawTableRows(TableID0,36 ,36 ,100, 1 ,0);


However, the text in table cell(1, 1) didn't changed as I set in code, neither in color nor in size.

Any one can help me on this? Thanks in advance!



Replies:
Posted By: Ingo
Date Posted: 15 Jan 21 at 6:41PM
Hi Ywang,

if your SetTableCellBackgroundColor works but
SetTableCellTextColor works not...
The only differences i can see are the spaces between the values.
Another thing you can try is put the values as double variables and not as fixed values.

Good luck, cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




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