tags:

views:

129

answers:

1

I need to programmatically generate an RTF document with a table that has a column vertically merged., e.x.

______________________________
|  merged | foo    |  hello   |
|  cell   |        |          |
|  right  |--------|----------|
|  here   | bar    |  world   |
|_________|________|__________|

I looked up online and found that the codes are \clvmgf and \clvmrg but I can't find a decent example.

I made a text rtf using MS word, but there's too much junk rtf codes in it for me to figure it out where to put the \clvmgf and \clvmrg to get this to work.

Could someone give me an rtf for above example table with no extraneous rtf codes so I can figure out how \clvmgf and \clvmrg works?

Any additional explanation would also be greatly appreciated.

Thanks!

A: 

You can create the table in word, copy it then paste it into WRITE.EXE & save. I doubt it uses the minimum amount of codes but it's better than the stuff word spits into it.

Alex K.
Just tried in Windows 7, because I had a similar idea. Windows 7 WordPad seems not to support merged cells correctly, though.
OregonGhost
Yeah, I tried that already and Wordpad just unmerged the cells.
Jimmy Johnson
Works for me (xp) FWIW here is the RTF with the same layout as your example http://pastebin.com/2cAF3KvD
Alex K.
Nice! Thanks for your example at the pastebin site!
Jimmy Johnson