05-07-19 02:48 PM
05-07-19 02:59 PM
05-07-19 03:43 PM
05-07-19 03:48 PM
06-07-19 09:54 AM
Dim doc as Object = GetDocument(handle,documentname) Dim word As Object = doc.Application Dim s As Object = word.Selection.Range Dim tblNew As Object Dim celly,cellx As Integer cellx=1 celly=1 If headers Then tblNew = doc.Tables.Add(s,dt.Rows.Count+1,dt.Columns.Count,1,1) Else tblNew = doc.Tables.Add(s,dt.Rows.Count,dt.Columns.Count,1,1) End If If headers Then For Each col As System.Data.DataColumn In dt.Columns tblNew.Cell(cellx,celly).Range.Text = col.ColumnName celly += 1 Next cellx += 1 End If For Each row As System.Data.DataRow In dt.Rows celly = 1 For Each col As System.Data.DataColumn In dt.Columns tblNew.Cell(cellx,celly).Range.Text = row(col) celly += 1 Next cellx += 1 Next handle, documentname, dt (collection) & headers(flag) are inputs
13-11-19 01:57 PM
07-08-20 04:58 PM
Were you able to resolve this?
I am getting the following errors:
1. "GetDocument" is not declared
Because of this error in code stage I am not able to run my process.
Any help would be greatly appreciated