diff --git a/GreenshotOfficePlugin/OfficeExport/WordExporter.cs b/GreenshotOfficePlugin/OfficeExport/WordExporter.cs index 92f6c2435..17d681cb1 100644 --- a/GreenshotOfficePlugin/OfficeExport/WordExporter.cs +++ b/GreenshotOfficePlugin/OfficeExport/WordExporter.cs @@ -145,6 +145,7 @@ namespace Greenshot.Interop.Office { shape.LockAspectRatio = MsoTriState.msoTrue; } selection.InsertAfter("\r\n"); + selection.MoveDown(WdUnits.wdLine, 1, Type.Missing); return shape; } } diff --git a/GreenshotOfficePlugin/OfficeInterop/OutlookInterop.cs b/GreenshotOfficePlugin/OfficeInterop/OutlookInterop.cs index bb3d9fbd1..3bdbd38ff 100644 --- a/GreenshotOfficePlugin/OfficeInterop/OutlookInterop.cs +++ b/GreenshotOfficePlugin/OfficeInterop/OutlookInterop.cs @@ -633,4 +633,26 @@ namespace Greenshot.Interop.Office { msoScaleFromMiddle = 1, msoScaleFromBottomRight = 2 } + + /// + /// Units: http://msdn.microsoft.com/en-us/library/office/bb214015(v=office.12).aspx + /// + public enum WdUnits { + wdCell = 12, + wdCharacter = 1, + wdCharacterFormatting = 13, + wdColumn = 9, + wdItem = 16, + wdLine = 5, + wdParagraph = 4, + wdParagraphFormatting = 14, + wdRow = 10, + wdScreen = 7, + wdSection = 8, + wdSentence = 3, + wdStory = 6, + wdTable = 15, + wdWindow = 11, + wdWord = 2 + } } diff --git a/GreenshotOfficePlugin/OfficeInterop/WordInterop.cs b/GreenshotOfficePlugin/OfficeInterop/WordInterop.cs index eede30db4..4922afbe4 100644 --- a/GreenshotOfficePlugin/OfficeInterop/WordInterop.cs +++ b/GreenshotOfficePlugin/OfficeInterop/WordInterop.cs @@ -87,6 +87,7 @@ namespace Greenshot.Interop.Office { public interface ISelection : ICommon { IInlineShapes InlineShapes { get; } void InsertAfter(string text); + int MoveDown(object Unit, object Count, object Extend); } ///