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 - Problem with SetTableCellTextCorlor/Size
  FAQ FAQ  Forum Search   Register Register  Login Login

Problem with SetTableCellTextCorlor/Size

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


Joined: 14 Jan 21
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote amberimp Quote  Post ReplyReply Direct Link To This Post Topic: Problem with SetTableCellTextCorlor/Size
    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!
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

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