Print Page | Close Window

Table formatting wipes content

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=2425
Printed Date: 25 Oct 25 at 2:30PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Table formatting wipes content
Posted By: spikethru4
Subject: Table formatting wipes content
Date Posted: 04 Oct 12 at 8:15AM
I have created a 4x7 table that looks fine, except that the font is too large.  When I add the line:
 
   DPLSetTableCellTextSize InstanceID, TableID, 1, 1, 4, 7, 8
 
to set the font size to 8pt, the contents are wiped from all the cells - except for the merged cells.  The contents of the merged cells are correctly resized.
 
Any ideas what's going on?
 
Chris



Replies:
Posted By: spikethru4
Date Posted: 04 Oct 12 at 9:42AM
After further investigation, the culprit appears to be SetTableRowHeight(). 
  • If I don't call this function, the text in the table is formatted perfectly, but the rows are too high for the text. 
  • If I set the height of the rows to 4mm, all the text is wiped, except for merged cells.
  • If the height is 5mm, some of the text is wiped and some remains. There's no obvious difference between the text that is wiped and that that remains.
  • At 6mm, all of the text remains, but the rows are too high.
 



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