kss113

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Table Properties #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

    in reply to: Word Document Table Borders #3721

    kss113
    Participant

    Hello Eric,

    With the table border, you are correct if I make the border value larger the border does show, but I am reading these border values from another file that I am using to create this word output.

    Also if I open my document, go to the table properties for the row, the boarder is set to 1/2, so if I cancel the properties window then no border, but if I click save then I do see the boarder I can even choose 1/4 border and save it and I can see it.

    Any ideas?
    Thanks again,
    KSS

    in reply to: Word Document Table Borders #3719

    kss113
    Participant

    Never Mind, that is what I did, and got it working.
    I just set Ascii, HighAnsi, ComplexScript, EastAsia.
    Thanks,
    KSS

    • This reply was modified 8 years, 2 months ago by  kss113.
    in reply to: Word Document Table Borders #3718

    kss113
    Participant

    Hello Eric,
    I am sorry but I don’t follow your solution for the fonts.
    so in my c# code after creating the RunProperties object I should have:
    RunProperties runProperties = new RunProperties();
    runProperties.runFonts.ascii = “Arial”;
    runProperties.runFonts.ansi = “Arial”;
    runProperties.runFonts.cs = “Arial”;
    runProperties.runFonts.eastAsia = “Arial”;

    Thanks again,
    KSS

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