How to create table in word format using vb.net?


#1

how to create table in word format using vb.net?


#2

Hi,

I have recently replied to you in the following thread:

http://www.aspose.com/forums/ShowPost.aspx?PostID=18088

VB .NET code sample looks very similar to the C# one:


Dim doc As Document = New Document

Dim builder As DocumentBuilder = New DocumentBuilder(doc)

builder.StartTable()

builder.CellFormat.Width = 100.0

builder.InsertCell()

builder.Writeln(“Row 1, Cell 1”)

builder.InsertCell()

builder.Writeln(“Row 1, Cell 2”)

builder.EndRow()

builder.InsertCell()

builder.Writeln(“Row 2, Cell 1”)

builder.InsertCell()

builder.Writeln(“Row 2, Cell 2”)

builder.EndRow()

builder.EndTable()

doc.Save(“result.doc”)