Any help on this would be HIGHLY appreciated.
I have a program which uses the excel commands heavily. And I've had it working in the past. Then it quit working.
I kept recreating the activex controller again and again until it fixed it.
Then it quit working again (just because I renamed the project).
I fixed it that time by adding the excelreport.c and excel2000.c files right into the build.
But now it's not working AGAIN and I can't figure out (1) what's breaking it in the first place and (2) how to fix it.
Basically here's the error:
link error
referring to the command line
ExcelRpt_WorkbookSave (workbookHandle, pathname, 0);
So I mean it's compiling okay, it's just not linking for whatever reason. Similar error for every excel command I use.
Here's how I'm rebuilding the activex controller:
Tools --> Create ActiveX controller
ActiveXServer: Microsoft Excel 11.0 Object Library
Instrument Prefix: Excel
Target .fp file: (either excelreport.fp or excel2000.fp located at C:\Program Files\National Instruments\CVI80\toolslib\activex\excel
Add .fp File to project (checked)
and then just create it. It then adds it to "instruments" both in the libraries frame and in the project frame.
The heavyhanded method of putting it in the build was accomplished just by opening the file in the project.
But even though those have fixed it in the past, both fail a lot of the time (all day today for instance) and I still have the problem.
Seriously...any thoughts on why it keeps breaking or how to fix it when it does? It'll work fine for weeks and then take me several days to fix.
Message Edited by amberray on 09-14-2007 07:02 PM
Message Edited by amberray on 09-14-2007 07:05 PM