Fixed code to initialize MS Word sections if Document Style does not specify font.
Added code to handle refreshing the Edit Screen when a section is moved. Added code to refresh the Edit Screen when a section is moved.
This commit is contained in:
@@ -220,8 +220,8 @@ namespace Volian.Controls.Library
|
||||
if (MyDocumentInfo.Config == null || MyDocumentInfo.Config == "")
|
||||
{
|
||||
DocStyle ds = MyDocumentInfo.DocumentEntries[0].MyContent.ContentItems[0].MyDocStyle;
|
||||
doc.Application.Selection.Font.Name = ds.Font.Family;
|
||||
doc.Application.Selection.Font.Size = (float)ds.Font.Size;
|
||||
if (ds.Font.Family != null) doc.Application.Selection.Font.Name = ds.Font.Family;
|
||||
if (ds.Font.Size != null) doc.Application.Selection.Font.Size = (float)ds.Font.Size;
|
||||
doc.Application.Selection.ParagraphFormat.SpaceBefore = 0;
|
||||
doc.Application.Selection.ParagraphFormat.SpaceAfter = 0;
|
||||
doc.Application.Selection.ParagraphFormat.LineSpacingRule = LBWdLineSpacing.wdLineSpaceExactly;
|
||||
|
Reference in New Issue
Block a user