We are working on conversion from bleow VB script code to corresponding aspose code and we need your help in same.
We are using the Aspose.Words 17.4 in our application and below is the VBA code snippet that we are trying to convert.
Public Sub testFunction(ByRef doc As Document)
' Add frame for Headline. With doc.Styles("Headline1").Frame .TextWrap = False .WidthRule = wdFrameExact .Width = InchesToPoints(7.1) End With ' Add frame for Headline 2. With doc.Styles("Headline2").Frame .TextWrap = False .WidthRule = wdFrameExact .Width = InchesToPoints(7.1) End With
In the above VBA code we search for various styles in document such as(Headline 1,Headline 2 etc) and we set the width, textwrap properties of the container frames if the styles are applied.
We have checked the API documentation and could not find any frame class in Aspose.Words java.
Can you please give help us or atleast give us some clues for writing code in Java using aspose for above VBA Script?