Hi,to all,
I want to insert one or more textbox at given position in the main document,but it doesn’t work. the code based on VB.net 2008 and aspose.words.dll version 14.2 is as follow:
Dim doc As New Aspose.Words.Document(filename)
Dim textbox As New Aspose.Words.Drawing.Shape(doc, Aspose.Words.Drawing.ShapeType.TextBox)
'Dim sp as new shape(doc,NodeType.Textbox) this is error
textbox.Width = 200
textbox.Height = 200
textbox.Left = 100
textbox.Top = 100
Dim paragraph = New Aspose.Words.Paragraph(doc)
paragraph.AppendChild(New Run(doc, Text))
textbox.AppendChild(paragraph)
doc.FirstSection.Body.FirstParagraph.AppendChild(textbox)
textbox.Left = 1024
textbox.Top = 100
paragraph.AppendChild(New Run(doc, Text))
doc.FirstSection.Body.Paragraphs(10).AppendChild(textbox)
doc.Save(dFile)
However, there is no textboxs added. How to implement this objective?
Thanks in advance!
Ducaisoft