Friday, October 26, 2007

How to print data across the columns?

Let's say we have the following data,

<rowset>
<row>
<data>A</data>
</row>
<row>
<data>B</data>
</row>
...
...
<row>
<data>E</data>
</row>
</rowset>

And we want to print them in the following way:

A B
C D
E

- With using of MS Word basic method (Format->columns), it will print the data first down and then across. Like,
A D
B E
C

- I found something workaround to resolve this issue.
1. Create one table with two columns.
2. Create another table with one row and column in column1 and second table in column2

See below:




Output:

2 comments:

Anonymous said...

Now the question becomes, how to get a page break in there after every 4 data elements?

A C
B D
-break-
E etc...

Anonymous said...

Hi

I am developing a XML RTF template for a report.
All I am trying to do is, if first 4 letters of the data of xml tag ITEM = 'Summ'
then print a constant word 'Notes'

if: xdofx:substr(ITEM,1,4)=’Summ’ Notes end if

I have been trying hard. IF and SUBSTR is not at all going along. Always throwing some error. Can some one please help me to resolve this issue

pls mail me to rara78in@gmail.com

Thanks