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!
![]() |
Merging cells |
Post Reply
|
| Author | |
einar
Beginner
Joined: 18 Mar 10 Location: Norway Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: Merging cellsPosted: 24 Mar 10 at 12:35PM |
|
I have a table where I (sometimes) want to write content in 3 cells. In the code below the row is nR and the cell is column 4,5,6
But the variable cSvar which contains some words and is too long for cell 4 alone does not show for more than the first word. How can I tell the method that the cell is expanded?
THIS.oPDF.MergeTableCells(TableID, nR, 4, nR, 6)
THIS.oPDF.SetTableCellContent(TableID2, nR, 4,'<font size="10pt"><b>'+cSvar+'</b></font>') |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Mar 10 at 6:35AM |
|
Hi!
I don't think that this is possible at runtime. There are still only less html-tags supported by QuickPDF. Take the max. cell-width i would suggest. Cheers and welcome here, Ingo Edited by Ingo - 26 Mar 10 at 6:35AM |
|
![]() |
|
Franz
Beginner
Joined: 11 Mar 10 Location: Austria Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 Mar 10 at 2:02PM |
|
@einar:
Merging table cells work as expected.
Try to use the correct table id: you posted 2 different ids so the lib hardly can do what you want ;-)
@Ingo:
HTML syntax works here like a charm (at least with version 7.18 up): font size, color, br and so on do not make any trouble in table cells (as far as I tested: some hundred tables some of them span more than 1 page etc.). Everything works including the final height of the table when drawn. I agree that the manual does not say a word about this, although I would see this a feature worth mentioning.
Greetings
Franz
|
|
![]() |
|
einar
Beginner
Joined: 18 Mar 10 Location: Norway Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 Mar 10 at 9:32PM |
|
Hm, I must have been blind. Thanks.
|
|
![]() |
|
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