Ive been using the sdk productivity tool to extract the code that builds the document structure; but now the table is coming out with the wrong font and style, its not what was there in the original, and its not clear in the code where its getting this wrong font from?
It should be timesnew roman, 12pt, standard. it comes out 14pt BOLD and the headers of the table are 18pt bold. they are set as 14pt bold. i notice the style of "no spacing" in there, but is it using this?
the fontsize {val = "24"} tells me its font 12pt because its 1/2 of the number?
Run run6 = new Run(); RunProperties runProperties6 = new RunProperties(); RunFonts runFonts12 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize12 = new FontSize() { Val = "24" }; FontSizeComplexScript fontSizeComplexScript12 = new FontSizeComplexScript() { Val = "24" }; runProperties6.Append(runFonts12); runProperties6.Append(fontSize12); runProperties6.Append(fontSizeComplexScript12); Text text6 = new Text(); text6.Text = "PZ1"; run6.Append(runProperties6); run6.Append(text6); paragraph7.Append(paragraphProperties7); paragraph7.Append(run6); tableCell6.Append(tableCellProperties6); tableCell6.Append(paragraph7); TableCell tableCell7 = new TableCell(); TableCellProperties tableCellProperties7 = new TableCellProperties(); TableCellWidth tableCellWidth7 = new TableCellWidth() { Width = "1530", Type = TableWidthUnitValues.Dxa }; TableCellVerticalAlignment tableCellVerticalAlignment2 = new TableCellVerticalAlignment() { Val = TableVerticalAlignmentValues.Center }; tableCellProperties7.Append(tableCellWidth7); tableCellProperties7.Append(tableCellVerticalAlignment2); Paragraph paragraph8 = new Paragraph() { RsidParagraphMarkRevision = "00881B22", RsidParagraphAddition = "00881B22", RsidParagraphProperties = "00881B22", RsidRunAdditionDefault = "00C12F2C" }; ParagraphProperties paragraphProperties8 = new ParagraphProperties(); ParagraphStyleId paragraphStyleId8 = new ParagraphStyleId() { Val = "NoSpacing" }; ParagraphMarkRunProperties paragraphMarkRunProperties7 = new ParagraphMarkRunProperties(); RunFonts runFonts13 = new RunFonts() { Ascii = "Times New Roman", HighAnsi = "Times New Roman", ComplexScript = "Times New Roman" }; FontSize fontSize13 = new FontSize() { Val = "24" }; FontSizeComplexScript fontSizeComplexScript13 = new FontSizeComplexScript() { Val = "24" }; paragraphMarkRunProperties7.Append(runFonts13); paragraphMarkRunProperties7.Append(fontSize13); paragraphMarkRunProperties7.Append(fontSizeComplexScript13); paragraphProperties8.Append(paragraphStyleId8); paragraphProperties8.Append(paragraphMarkRunProperties7);