We are trying to send variable data in excel from Ranorex while execution. Please suggest the way to do this. We checked exceldataconnector but could'nt get proper code for the same. any help would be appreciated.
thanks
How to write data i excel from application?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to write data i excel from application?
Hi,
Just to clarify this, you want to send variables from Ranorex Studio to your Excel sheet during the execution of your solution?
What do you want to accomplish whit this, or what is the sense of it?
Regards,
Markus
Ranorex Support Team
Just to clarify this, you want to send variables from Ranorex Studio to your Excel sheet during the execution of your solution?
What do you want to accomplish whit this, or what is the sense of it?
Regards,
Markus
Ranorex Support Team
Re: How to write data i excel from application?
We want to send variable names captured from application to external excel sheet which will be used for reprorting purpose. We are not able to get code for connecting to external excel sheet or creating new excel sheet within the code.
Re: How to write data i excel from application?
Have a look here for my implementation of using Microsoft.Office.Interop.Excel.
http://www.ranorex.com/forum/my-excel-f ... t3265.html
http://www.ranorex.com/forum/my-excel-f ... t3265.html
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: How to write data i excel from application?
"Microsoft.Office.Interop.Excel" does not exists in Project->add Reference->COM
How to add "Microsoft.Office.Interop.Excel" reference in ranorex studio?
How to add "Microsoft.Office.Interop.Excel" reference in ranorex studio?
Re: How to write data i excel from application?
It's under .NET not COM.
From VS: References -> Add Reference -> .NET -> Microsoft.Office.Interop.Excel
From VS: References -> Add Reference -> .NET -> Microsoft.Office.Interop.Excel
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to write data i excel from application?
Hi,
Regards,
Peter
Ranorex Team
If you have installed Excel on the machine you should find the Microsoft.Office.Interop.Excel assembly in the GAC folder of the Add Reference Dialog.pripari wrote:How to add "Microsoft.Office.Interop.Excel" reference in ranorex studio?
Regards,
Peter
Ranorex Team
Re: How to write data i excel from application?
We have excel installed on that machine, but still we could not see Micorsoft.Office.Interop.Excel under GAC folder.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to write data i excel from application?
Hi,
To check if you have access to this, check your reference folder and look if the office plugin is referenced to your project.
Regards,
Peter
Ranorex Team
If you want to interact with Excelobjects, you don't have to explicit add the Interop assembly, because Ranorex already has a reference to this assembly. Just usepripari wrote:We have excel installed on that machine, but still we could not see Micorsoft.Office.Interop.Excel under GAC folder.
Excel.Workbooks workBook = new Excel.WorkbookClass();for example.
To check if you have access to this, check your reference folder and look if the office plugin is referenced to your project.
Regards,
Peter
Ranorex Team