Advertisement

10.10.2007 at 06:10AM PDT, ID: 22883882
[x]
Attachment Details

RTF Grid with Delphi

Asked by Drareg in Delphi Printing, Microsoft Windows Operating Systems

Tags: delphi, rtf, grid

Hi.
I defined a grid to print on a QuickReport with Delphi.  I'm using RTF. Herre is the code to do that :

\par \trowd \trqc\fs16 \cellx1212\cellx2412\cellx5430\cellx7824\cellx10224\b
\cf2 \intbl\highlight4  001\cell
\b0 \cf0 \b \cf2 \intbl\highlight4  002\cell
\b0 \cf0 \b \cf2 \intbl\highlight4  12345678901234567890\cell
\b0 \cf0 \b \cf2 \intbl\highlight4  004\cell
\b0 \cf0 \b \cf2 \intbl\highlight4  005\cell
\b0 \cf0 \intbl \row\intbl\cf0\highlight0  \cell
\intbl\cf0\highlight0  007\cell
\intbl\cf0\highlight0  008\cell
\intbl\cf0\highlight0  009\cell
\intbl\cf0\highlight0  010\cell
\intbl \row\intbl\cf0\highlight5  011\cell
\intbl\cf0\highlight5  012\cell
\intbl\cf0\highlight5  013\cell
\intbl\cf0\highlight5  014\cell
\intbl\cf0\highlight5  015\cell
\intbl \row\intbl\cf0\highlight0  016\cell
\intbl\cf0\highlight0  017\cell
\intbl\cf0\highlight0  018\cell
\intbl\cf0\highlight0  019\cell
\intbl\cf0\highlight0  020\cell
\intbl \row\intbl\cf0\highlight5  021\cell
\intbl\cf0\highlight5  022\cell
\intbl\cf0\highlight5  023\cell
\intbl\cf0\highlight5  024\cell
\intbl\cf0\highlight5  025\cell
\intbl \row \pard\cf0\highlight0\fs24

It's work great. But...
If the text is to long for a cell, the grid is unstable and the cells are not align anymore :(

Question :  I want the line resized  to have enough place for all the text in the same cell when its too long.  Like WORD do it.    What is the RTF code to add for that, and where I put it ?

Thank you .


Start Free Trial
[+][-]10.11.2007 at 10:22AM PDT, ID: 20059135

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Printing, Microsoft Windows Operating Systems
Tags: delphi, rtf, grid
Sign Up Now!
Solution Provided By: rfwoolf
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.09.2008 at 03:09AM PST, ID: 20617034

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_1_20070628