NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-17-2011, 10:17 AM   #16
alovi
Junior Member
 
Join Date: Apr 2011
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

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?


alovi is offline  
Reply With Quote
Old 05-21-2011, 09:14 PM   #17
Gridking
Junior Member
 
Join Date: May 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

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
Gridking is offline  
Reply With Quote
Old 05-31-2011, 10:06 AM   #18
firefly33
Junior Member
 
Join Date: Apr 2010
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
firefly33 is offline  
Reply With Quote
Old 06-01-2011, 03:22 AM   #19
firefly33
Junior Member
 
Join Date: Apr 2010
Posts: 9
Thanks: 0
Thanked 0 times in 0 posts
Default

OK, the way i got there is installed Visual Studio 10, and then i'have got the DDL.
thanks
firefly33 is offline  
Reply With Quote
Old 06-07-2011, 03:52 AM   #20
DSampurna
Junior Member
 
Join Date: Mar 2011
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Thank you

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
DSampurna is offline  
Reply With Quote
Old 06-07-2011, 12:50 PM   #21
DSampurna
Junior Member
 
Join Date: Mar 2011
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

No worries.

I just started using Office 2007 instead and all works fine.

Thanks again.

DS
DSampurna is offline  
Reply With Quote
Old 09-07-2011, 12:26 AM   #22
Beauregard
Senior Member
 
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
Default Cannot find the dll

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
Beauregard is offline  
Reply With Quote
Old 09-08-2011, 08:41 AM   #23
DionysusToast
Senior Member
 
Join Date: Jul 2010
Location: Bangkok
Posts: 162
Thanks: 4
Thanked 38 times in 12 posts
Default

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
DionysusToast is offline  
Reply With Quote
The following user says thank you to DionysusToast for this post:
Old 09-08-2011, 11:18 AM   #24
Beauregard
Senior Member
 
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
Default

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
Beauregard is offline  
Reply With Quote
Old 09-18-2011, 11:20 AM   #25
Beauregard
Senior Member
 
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
Default

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
Beauregard is offline  
Reply With Quote
Old 09-18-2011, 07:17 PM   #26
DionysusToast
Senior Member
 
Join Date: Jul 2010
Location: Bangkok
Posts: 162
Thanks: 4
Thanked 38 times in 12 posts
Default

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.
DionysusToast is offline  
Reply With Quote
Old 09-19-2011, 01:43 PM   #27
Beauregard
Senior Member
 
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
Default

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:-)
Beauregard is offline  
Reply With Quote
Old 10-12-2011, 09:41 AM   #28
Boise777
Junior Member
 
Join Date: Jun 2011
Posts: 2
Thanks: 1
Thanked 0 times in 0 posts
Default

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!
Boise777 is offline  
Reply With Quote
Old 10-17-2011, 12:43 PM   #29
Beauregard
Senior Member
 
Join Date: Dec 2009
Posts: 135
Thanks: 2
Thanked 1 time in 1 post
Default

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
Beauregard is offline  
Reply With Quote
Old 12-25-2011, 07:26 PM   #30
DavidHP
Senior Member
 
Join Date: Nov 2006
Location: , ,
Posts: 115
Thanks: 0
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by Beauregard View 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
I copied files from my VS2010 and it works in Office 2010.
The files needed are:
Microsoft.Office.Interop.Excel.dll
Microsoft.Vbe.Interop.dll
Office.dll

FWIW
DavidHP is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 02:50 PM.