it is desirable to embed Excel as an in-process DLL within the calling process.
This cannot be done. Excel is designed to run as a out-of-process COM server.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I would to ask about Excel COM operation.
To connect to Excel from another C++ process is well established:
#import "C:\\Program Files (x86)\\Common Files\\microsoft shared\\OFFICE11\\MSO.DLL"
#import "C:\\Program Files (x86)\\Common Files\\microsoft shared\\VBA\\VBA6\\VBE6EXT.OLB"
#import "C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\EXCEL.EXE"
and the use CoInitialize() and other standard COM practices. However, COM marshaling between processes incurs performance penalty, albeit very little. If large amount of data is to be processed with Excel, it is desirable to embed Excel as an in-process DLL within the calling process.
I didn’t find a way to do that. Does Excel support this by design?
Customer
it is desirable to embed Excel as an in-process DLL within the calling process.
This cannot be done. Excel is designed to run as a out-of-process COM server.
Thanks.
Excel is very handy. However its plotting does not seem to specialize in drawing mathematical functions like MATLAB or Mathematica.
Does it actually capable of drawing very appealing math function graphs? Does Mircosoft have any product which does a good job for this?