Print Page | Close Window

Cell height, alignment after MergeTableCells

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=1165
Printed Date: 22 Nov 24 at 2:00PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Cell height, alignment after MergeTableCells
Posted By: Slawek
Subject: Cell height, alignment after MergeTableCells
Date Posted: 05 Aug 09 at 8:08AM
Hi,

I create table
TabId := CreateTable(5, 5);
SetTableRowHeight(TabId , 1, 5, 0); //auto height
SetTableColumnWidth(TabId , 1, 1, 0.5);
SetTableColumnWidth(TabId , 1, 2, 0.5);
...
SetTableCellAlignment(TabId , 1, 1, 5, 5, 4); //middle center
SetTableCellContent(TabId , 1, 1, 'long long long text');
SetTableCellContent(TabId , 1, 2, 'long long long text');

I have the same text in cell 1 and 2 (wrapped, double text height)

                |                 |        |         |        |
long long  | long long | text | text | text |
long text  | long text  |        |         |        |
_________________|        |         |        |

now I merge 2 cells
MergeTableCells(TabId , 1, 1, 1, 2);

after that the height of cell 1-2 (row 1) is the same  (double text height) and now its top center (not middle). Other cells have short text (only 1 line) and middle center.

long long long  text |          |        |        |
                                |  text | text | text | 
                                |         |         |        |
________________|         |         |        |

How I can change height and alignment after merge?





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