Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerbuilder 7 OLE MS Word Table Merge Columns

Status
Not open for further replies.

kingnothing0

Programmer
Jul 30, 2004
1
US
Hello,

I am trying to do MS Word automation in PB7. I have a doc with embedded table containing 4 columns. On subtitle lines I want to merge all 4 columns into 1 column so the title is displayed nicely, every other line should contain 4 columns for each data element. I used this command "o1Table.Range.Cells.Merge", it works; however, I cannot set the number of columns back to 4. Any help would be appreciated.

Here is a sample layout of what a sample table would need to look like.

This is Title 1

column1 column2 column3 column 4
1 2 3 4
1 2 3 4
1 2 3 4

This is Title 2

column1 column2 column3 column 4
1 2 3 4
1 2 3 4
1 2 3 4

This is Title 3

column1 column2 column3 column 4
1 2 3 4
1 2 3 4
1 2 3 4
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top