COM Shapes - Making a shape visible or not and alignment

Hi

I have the following code using the word COM model:

ActiveDocument.shapes("AutoShape 3").Select
Selection.ShapeRange.Left = wdShapeCenter
Selection.ShapeRange.Visible = False

How can i achieve this using the aspose words comhelper class (i am using vb6 with word 2013)?

thanks for your help

asif

Hi Asif,

Thanks for your inquiry. Please use the Font.Hidden property to achieve your requirement. See the following code snippet for your kind reference.

Dim helper
Set helper = CreateObject("Aspose.Words.ComHelper")
Dim doc
Set doc = helper.Open("C:\in.docx")
Dim shape
Set shape = doc.Sections.Item(0).Body.GetChild(18, 0, True) 'Constant NodeType_Shape = 18 (&H12)
shape.Font.Hidden = False
doc.Save ("C:\out.docx")

Currently,
Aspose.Words defines four publicly creatable COM objects i.e.
ComHelper, Document, DocumentBuilder and License. To access other
classes/methods available in Aspose.Words API, you must have to create
wrapper/helper classes. However, we will consider making all public API
accessible from COM and scripting languages in future. Your request has
been linked to the appropriate issue (WORDSNET-4977) in our issue tracking system and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Please also visit the following link to learn how to use Aspose.Words for .NET via COM Interop:
https://docs.aspose.com/words/net/supported-platforms/#com