Matlab Builder Ex (excel add-in)

7 次查看(过去 30 天)
Alberto
Alberto 2012-9-4
回答: Yatin 2013-11-8
try to create an excel add-in with matlab builder ex. I need to use this add-in in a computer without matlab. I create a package(the name is Rsi_prj1.exe) that contain this file: MCRInstaller.exe MWRegsvr.exe Rsi_prj1_1_0.dll Rsi_prj1.bas
I transfer the Rsi_prj1.exe in a computer without matlab, then I open the package that install MCRInstaller The MCR Installer automatically:
Copies the necessary files to the target folder you specified. Registers the components as needed. Updates the system path to point to the MCR binary folder, which is C:\Programmi\MATLAB\MATLAB Compiler Runtime\v717\runtime\win32
now i open the excel file than import rsi_prj1.bas and save .xla, than i add the new add-in in excel. the error message when I use the rsi function (crete with matlab) is: Error in VBAProject: ActiveX component can't create object.
I register the Rsi_prj1_1_0.dll but when i lunch in dos mwregsvr rsi_prj1_1_0.dll i see the message <LoadLibrary>Error:0x0000007e Message: The specified module could not be found.
i don't know where is the mistake.
P.s. (sorry for my bad english!)

回答(1 个)

Yatin
Yatin 2013-11-8
Hello Alberto,
You can try using the following commands to register your files before running the component.
regsvr32 C:\Program Files\MATLAB\MATLAB Compiler Runtime\v717\runtime\win32\mwcommgr.dll
regsvr32 C:\Program Files\MATLAB\MATLAB Compiler Runtime\v717\runtime\win32\mwcomutil.dll
regsvr32 < project_dll_dir >\projectdll_1_0.dll
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Data Export to MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by