![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#16 |
|
Junior Member
Join Date: Apr 2011
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
I find Microsoft.Office.Interop.Excel.dll but no Interop.Microsoft.Office.Interop.Excel.dll
where is the difference? where can I find the second? |
|
|
|
|
|
#17 |
|
Junior Member
Join Date: May 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
Thank You for this , I could not find the dll needed even after installing PIA redistribute and finally installed Visual Studio full edition which added "Microsoft.Office.Interop.Excel.dll" and the example given is working
My question is , I am not very skilled at all in programming or excel, can someone please suggest how I might go about reversing the order in the example, I know it can be done in excel but the example given seems to read from ninja trader in reverse order so it overwrites the latest quotes with the starting quotes, is there a simple way to do it, or does it have to be done through excel and limiting lookback or something like that? Thanks and thanks again for example and explanation |
|
|
|
|
|
#18 |
|
Junior Member
Join Date: Apr 2010
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
Hi !
Thank you very much but it doesn't work on my PC.....when the file is extracted in "custom" file, i don't get the DDL. I have the NT 6.5 is it working on this platform or must i change it ?? Regards. |
|
|
|
|
|
#19 |
|
Junior Member
Join Date: Apr 2010
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
|
OK, the way i got there is installed Visual Studio 10, and then i'have got the DDL.
thanks |
|
|
|
|
|
#20 |
|
Junior Member
Join Date: Mar 2011
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
Dionysus, this is immense, thanks for figuring out how to do this.
I am using office 2010 and am getting an error from the script of bikemikeexcel. Error on calling 'OnBarUpdate' method for indicator 'BigMikeExcel' on bar 0: Exception from HRESULT: 0x800A03EC I have done a search to find what this error number could mean and tried a number of solutions suggested such as enabling macros in excel and changing my Locale ( I am in the UK and our dates are dd/mm/yyyy not mm/dd/yyyy as in the US) but still no joy. I will keep searching today and hopefully I will find a solution to this but in the meantime if you have any advice that would be appreciated. Many thanks, can't wait to get this up and running... DS |
|
|
|
|
|
#21 |
|
Junior Member
Join Date: Mar 2011
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
|
No worries.
I just started using Office 2007 instead and all works fine. Thanks again. DS |
|
|
|
|
|
#22 |
|
Senior Member
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
|
Hi
Very interesting, this is exactly what I am looking for. I followed your installation link and downloaded the interop assembly for office 2010. But I can nowhere find Interop.Microsoft.Office.Interop.Excel.dll on my system. I searched the whole harddisk- nothing. Should I see the dll in the explorer? If you still read this, I would be very thankful for any tip. Andre |
|
|
|
|
|
#23 |
|
Senior Member
Join Date: Jul 2010
Location: Bangkok
Posts: 162
Thanks: 4
Thanked 38 times in 12 posts
|
Bauregard
You should be able to manually unzip the .exe install file from microsoft. Then - you take the file, drop it in your <My Documents>\NinjaTrader 7\bin\Custom directory & follow the instructions. If not - PM me an email address and I'll get the file to you. Cheers Pete |
|
|
|
|
The following user says thank you to DionysusToast for this post: |
|
|
|
#24 |
|
Senior Member
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
|
Hi
Thanks for the answer. You mean unzipping o2010pia.msi? How can I unzip that? Thanks for your offer, I would be glad to get the file from you, I send you my mail. thanks Andre |
|
|
|
|
|
#25 |
|
Senior Member
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
|
Hi DionysusToast
Thanks for your help and sending me the DLL. I succesfully placed it as you described and tested with your provided NinjaIndicator Script. Thanks a lot, that is great work and helps me to use XLS as well. But I also have a problem. I installed it on a laptop as well and there I get this error when loading a chart: unable to retrieve type infos from assembly "Interop.Microsoft.office.Excel".... etc. Any idea? I double checked paths etc. All seems to be ok. The script also compiles without an error. The only difference is that on the laptop I have "Excel Starter Edition" installed, but this can hardly be the problem? Thanks if you have any hint, regards Andre |
|
|
|
|
|
#26 |
|
Senior Member
Join Date: Jul 2010
Location: Bangkok
Posts: 162
Thanks: 4
Thanked 38 times in 12 posts
|
There are multiple versions of interop and I suspect that your interop may be incompatible with the version of office you have.
I'd recommend getting office 2010 trial on there and trying that. |
|
|
|
|
|
#27 |
|
Senior Member
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
|
thanks, I installed now office 2010 home and student.
I removed the dll, the indicator, restarted the laptop, and installed it again. Now I get an error when I add your example indicator to a chart: Error on calculating indicator min/max value for indicator 'BigMikeExcel'. Please check the 'GetMinMaxValues' method: The file or assemply "Interop.Microsoft.Office.Interop.Excel, Version=1.6.0.0, Culture=neutral, PublicKeyToken=5e91ee00825511ee" or a dependency of it was not found" any idea? thanks:-) |
|
|
|
|
|
#28 |
|
Junior Member
Join Date: Jun 2011
Posts: 2
Thanks: 1
Thanked 0 times in 0 posts
|
I am running Excel 2007 under XP and had the same difficulty until I found "Microsoft.Office.Interop.Excel.dll" in a zipped API package:
1. Download Office XP PIAs at http://www.microsoft.com/download/en...ls.aspx?id=227 2. Extract to a directory of your choice by executing the downloaded file (oxppia.exe) 3. Move "Microsoft.Office.Interop.Excel.dll to your target directory (.../My Documents/ .../Ninja Trader/bin/Custom) Cheers! |
|
|
|
|
|
#29 |
|
Senior Member
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
|
thanks for the information, unfortunately this does not work with office 2010, there exists an installer only, without the possibility to extract the dll file
|
|
|
|
|
|
#30 | |
|
Senior Member
Join Date: Nov 2006
Location: , ,
Posts: 115
Thanks: 0
Thanked 2 times in 2 posts
|
Quote:
The files needed are: Microsoft.Office.Interop.Excel.dll Microsoft.Vbe.Interop.dll Office.dll FWIW |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data Streaming Into Excel and connecting Ninja to Excel | cjgovi | Connecting | 13 | 02-28-2011 10:21 AM |
| Instrument not present in default list is present on the DOM instrument dropdown | cunparis | Version 7 Beta General Questions & Bug Reports | 5 | 10-22-2010 04:49 AM |
| Data from Ninja to Excel | MAX | Automated Trading | 1 | 02-09-2010 02:21 PM |
| New Year (?) problem. No live data with Zen Fire/Ninja platform | mkoumis | Connecting | 11 | 01-02-2009 05:30 AM |
| Linking Ninja and Excel | RedDuke | General Programming | 3 | 08-16-2007 03:16 AM |