Hi Alexey,
Thank you for the reply.
These are all standard methods in VBA for MS Word and currently used in our production programs. I copied some sample code below from MSDN.
I found many standard methods we used already covered by your Aspose java, most of them are line to line match, like PageSetup.BottomMargin, PageSetup.SectionStart, Selection.ParagraphFormat.TabStops, etc. That’s great. But I can’t find the following methods in your java version, at least not obvious.
- Selection.PasteAndFormat:
Pastes the selected table cells and formats them as specified.
This example pastes a selected Microsoft Excel chart as a picture. This example assumes that the Clipboard contains an Excel chart.
Sub PasteChart()
Selection.**PasteAndFormat** Type:=wdChartPicture
End Sub
PageSetup.TwoPagesOnOne
PageSetup.BookFoldPrinting
PageSetup.BookFoldRevPrinting
PageSetup.BookFoldPrintingSheets
These are all different print options and self-explained.
- SelectAllEditableRanges
Selects all ranges for which the specified user or group of users has permission to modify.
The following example selects all ranges for which the current user has permission to modify.
ActiveDocument.SelectAllEditableRanges wdEditorCurrent
- AllowBreakAcrossPages
True if the text in a table row or rows are allowed to split across a page break. Can be True, False or wdUndefined (only some of the specified text is allowed to split). Read/write Long.
This example creates a new document with a 5x5 table and prevents the third row of the table from being split during pagination.
Dim docNew As Document
Dim tableNew As Table
Set docNew = Documents.Add
Set tableNew = docNew.Tables.Add(Range:=Selection.Range, _
NumRows:=5, NumColumns:=5)
tableNew.Rows(3).**AllowBreakAcrossPages** = False
-
Fields.Unlink
Replaces all the fields in the Fields collection with their most recent results.
-
Selection.Editors
Returns a Editors object that represents all the users authorized to modify a selection within a document.
-
ActiveDocument.ShowRevisions
True if tracked changes in the specified document are shown on the screen. Read/write **Boolean.**This example sets the active document so that it tracks changes and makes them visible on the screen.
With ActiveDocument
.TrackRevisions = True
.ShowRevisions = True
End With
- ActiveDocument.ActiveWindow.View.ShowHiddenText
True if text formatted as hidden text is displayed. Read/write Boolean
This example hides text formatted as hidden text in each window.
For Each myWindow In Windows
myWindow.View.ShowHiddenText = False
Next myWindow
It is possible that we may find more methods with questions later on.
I appreciate if you can let me know whether you support them, if not, are you going to do so in the near future. Thanks again.