How can we validate PDF Table cell value
Posted: Sat May 19, 2012 12:18 pm
Hi,
I am trying to validate the text value inside a cell in pdf. But while capturing the object, it is getting identified as rows and as single column. I am unable to identify the same as separate colums. PLS see attachement for refrence. I tried a code which is not working for now and pls the same below. Can u help in indentifying a particular cell in table in pdf. (Is it passible to validate a cell whether it is blank or not?)
Public Sub PDFTable()
Dim Rows, Cols as Integer
dim tab as Table = repo.FormReport.TableTable
MsgBox(tab.Columns.Count)
MsgBox(tab.Rows.Count)
For Rows=0 To tab.Rows.Count-1
For Cols=0 To tab.Columns.Count-1
Msgbox(tab.Columns(Cols).Cells(Rows).Text)
Next
Next
End Sub
Thanks,
Adi
I am trying to validate the text value inside a cell in pdf. But while capturing the object, it is getting identified as rows and as single column. I am unable to identify the same as separate colums. PLS see attachement for refrence. I tried a code which is not working for now and pls the same below. Can u help in indentifying a particular cell in table in pdf. (Is it passible to validate a cell whether it is blank or not?)
Public Sub PDFTable()
Dim Rows, Cols as Integer
dim tab as Table = repo.FormReport.TableTable
MsgBox(tab.Columns.Count)
MsgBox(tab.Rows.Count)
For Rows=0 To tab.Rows.Count-1
For Cols=0 To tab.Columns.Count-1
Msgbox(tab.Columns(Cols).Cells(Rows).Text)
Next
Next
End Sub
Thanks,
Adi