diff --git a/Src/xWorks/WordStylesGenerator.cs b/Src/xWorks/WordStylesGenerator.cs index d0dea0b589..9c389f9242 100644 --- a/Src/xWorks/WordStylesGenerator.cs +++ b/Src/xWorks/WordStylesGenerator.cs @@ -108,7 +108,10 @@ internal static Style GenerateWordStyleFromLcmStyleSheet( var projectStyle = styleSheet.Styles[styleName]; var exportStyleInfo = new ExportStyleInfo(projectStyle); var exportStyle = new Style(); + // StyleId is used for style linking in the xml. exportStyle.StyleId = styleName.Trim('.'); + // StyleName is the name a user will see for the given style in Word's style sheet. + exportStyle.Append(new StyleName() {Val = exportStyle.StyleId}); var parProps = new ParagraphProperties(); var runProps = new StyleRunProperties();