Table Properties

Home Forums WordprocessingML Table Properties

This topic contains 1 reply, has 1 voice, and was last updated by  kss113 7 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3953

    kss113
    Participant

    Hello,
    I am using C# and Open xml to generate a word document.
    I am not sure how to set the tables property of Text Wrapping from “None” to “Around”.

    Also, if I change this property to “Around” will this prevent MS Word from merging 2 separate tables together?

    Thanks for any help or advice,
    KS

    #3954

    kss113
    Participant

    Upon further explorations, I think what I want is.
    TextWrappingValues tableTextWrapping = TextWrappingValues.Around;

    but when I try to append this to my table properties:

     TableStyle tableStyle = new TableStyle() { Val = "TableGrid" };
                    TableLook tableLook = new TableLook() { Val = "04A0" };
                    TextWrappingValues tableTextWrapping = TextWrappingValues.Around; 
                    tableProperties.Append(tableTextWrapping);
    

    I get the following error on the append:
    cannot convert from ‘DocumentFormat.OpenXml.Wordprocessing.TextWrappingValues’ to ‘System.Collections.Generic.IEnumerable<DocumentFormat.OpenXml.OpenXmlElement>’

    Thanks again,
    KS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.