Forum Discussion
Ok At this time I want to simply retrieve the data from Excel file and process that excel data .
Thanks
Nishchal
Check out this topic:
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/working-with-external-data-sources/excel/working-via-com.html
- nisgupta9 years agoValued Contributor
Thanks for the updates
Let's suppose that if we run the script from remote machine then the following statement will not work
Excel.Workbooks.Open("C:\\MyFile.xls");
How can we handle ?
Thanks
NG
- tristaanogre9 years agoEsteemed Contributor
What I would do is make sure that any Excel files that you use in your project are stored with the project path. There is a property Project.Path that will return the path of where the MDS file is for your automation project. So, if you do
Excel.Workbooks.Open(Project.Path + "\\MyFile.xls");
This will then look for the file in whatever the current path is. So, if you go to a different machine, the file will always be referenced relative to the project path.
- nisgupta9 years agoValued Contributor
This is pretty new for me. have not heard this before
Thanks for updating this one .