Print Page | Close Window

Merging cells

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=1384
Printed Date: 12 Dec 25 at 6:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Merging cells
Posted By: einar
Subject: Merging cells
Date Posted: 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>')



Replies:
Posted By: Ingo
Date 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



Posted By: Franz
Date 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
 


Posted By: einar
Date Posted: 30 Mar 10 at 9:32PM
Hm,  I must have been blind. Thanks.



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