How can we validate PDF Table cell value

Experiences, small talk, and other automation gossip.
Adhisesha Reddy
Posts: 6
Joined: Sat May 19, 2012 11:56 am

How can we validate PDF Table cell value

Post by Adhisesha Reddy » 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?)
PDF Table.JPG
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
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How can we validate PDF Table cell value

Post by Support Team » Sun May 20, 2012 9:19 am

Adhisesha Reddy wrote: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?)
That's impossible to tell without a Ranorex snapshot. As explained in the posting guidelines, please post a Ranorex snapshot of the PDF reader application when the PDF table is shown!
BTW what PDF reader are you using?

Regards,
Alex
Ranorex Team

Adhisesha Reddy
Posts: 6
Joined: Sat May 19, 2012 11:56 am

Re: How can we validate PDF Table cell value

Post by Adhisesha Reddy » Mon May 21, 2012 9:53 am

Hi Alex,

Shared the Screenshot of the table of PDF.

Regards
Adi
You do not have the required permissions to view the files attached to this post.

Adhisesha Reddy
Posts: 6
Joined: Sat May 19, 2012 11:56 am

Re: How can we validate PDF Table cell value

Post by Adhisesha Reddy » Mon May 21, 2012 9:55 am

Adobe version is 8.2.5

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How can we validate PDF Table cell value

Post by Support Team » Mon May 21, 2012 5:04 pm

Hi,

You can try to disable the MSAA filtering in Ranorex, just open the general settings of Ranorex and click on the "Plugins" tab, there you will find the option "Filter elements". Please try to set this to false, but consider that this is not recommended for "normal" purposes.
If this don't help you can also try to update Adobe as it is quite an old version.
For further investigations it would be great if you could upload your pdf?

Regards,
Markus
Ranorex Support Team