none
Copy data and format from one cell to another cell in word RRS feed

  • Question

  •                 Word.Table table = aDoc.Tables[1];
                    string[] arrX= table.Cell(0, 0).Range.Text.Split('\r');
    I have a cell that contain data that is make up of multiple styles, font and font size. How can i copy the content and the format from one cell to another cell in word ? 
    If i use table.Cell(1, 1).Range.Text =  table.Cell(0, 0).Range.Text, it will just copy the text to the other cell.
    Field1 - Normal + 12 pt, Bold, Centered, Left:  0.06", Right:  0.06" 
    Field2 - Normal + 8 pt, Centered, Left:  0.06", Right:  0.06"
    Field3 - Normal + Bold, Centered, Left:  0.06", Right:  0.06"
    Field4 - Normal + Bold, Centered, Left:  0.06", Right:  0.06"
    Field5 - Normal + 8 pt, Centered, Left:  0.06", Right:  0.06"
    Field6 - Normal + 8 pt, Centered, Left:  0.06", Right:  0.06"
    Field7 - Normal + 8 pt, Centered, Left:  0.06", Right:  0.06"
    


    • Moved by Rudedog2 Sunday, January 29, 2012 3:06 PM : move to more appropriate forum : (From:Visual C# General)
    Sunday, January 29, 2012 7:34 AM

Answers

All replies