Page 1 of 1

Read comment value from Excel Ranorex.Cell

Posted: Mon Apr 02, 2012 11:23 am
by srdjan.bogojevic
Hi All,

Does anybody know, how to read excell cell comment valu from ranorex cell.
I can read comment value directly from excel as: cell.Comment.Shape.AlternativeText.

Or can I get this by the ranorex spy tool.

Thanks,
Srdjan

Re: Read comment value from Excel Ranorex.Cell

Posted: Mon Apr 02, 2012 1:02 pm
by Support Team
Hi,

by using the ExcelRange adapter instead of the Cell adapter you can use ExcelRangeObject of you cell:
ExcelRange my_cell = "<RanoreXPath of your cell>";
Report.Info(my_cell.GetExcelRangeObject().Comment.Shape.AlternativeText.ToString());
Regards,
Tobias
Ranorex Team

Re: Read comment value from Excel Ranorex.Cell

Posted: Mon Apr 02, 2012 2:00 pm
by srdjan.bogojevic
Perfect,
Thanks