COleDispatchException 
Author Message
 COleDispatchException

I have been working with C++ (MS .NET) to build Excel
spreadsheets.  I have been able to set values (numeric and
text), change colors, column widths, etc.  However, when I
try to do the following I recieve a COleDispatchException
with no message:

CString str = "Comment";
COleVariant v;
v.bstrVal = str.AllocSysString();
my_range.AddComment(v); // Exception

I also receive an COleDispatchException when I try to Add
a Validation with a string variant formula.

Any help would be appreciated.  Thank you.



Sat, 04 Jun 2005 10:58:51 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. COleDispatchException thrown when editing cell


 
Powered by phpBB® Forum Software © phpBB Group