Group:  Microsoft Excel ยป microsoft.public.excel.interopoledde
Thread: adding custom verb to OLE object that changes its appearance

Geek News

adding custom verb to OLE object that changes its appearance
Przemyslaw Dzierzak 5/18/2007 10:53:01 AM
I have posted the question with the same subject and similar content to
microsoft.public.vc.mfcole and - after I was asked to do that - to
microsoft.public.excel.programming. There I was said to post it here.
I was said that my problem appears to be a bug in Excel. Is it a place that
someone will help me? Or at least give me another place on MS site where I
should post it... Here's the problem:

I've added new OLE verb to Scribble App, named it 'Add Random Triangle'. The
problem is that I don't know how to make Excel refresh scribble object in all
cases. The verb works fine with Word and PowerPoint, but it doesn't work in
Excel in the following scenario:

1. Add a Scribble object to new Excel spreadsheet, draw a line inside.
2. save & close xls file.
3. Open saved file.
4. right-click on it and run 'Add Random Triangle' verb
5. NOTHING HAPPENS
6. if you open the Scribble object you will find there is a triangle added
7. close Scribble object edition, and add another random triangle - now it
shows up.

So my question is how should I correctly update the object when it changes
as a result on nonstandard verb?

Changes I've made to Scribble sample and earlier posts may be found at:
http://groups.google.com/group/microsoft.public.vc.mfcole/browse_thread/thread/c1b626ea657fd2fc/5fbd115f19679ccd

and
http://groups.google.com/group/microsoft.public.excel.programming/browse_thread/thread/3005a4dbcf8f42bc/435b3f8a1333ff56

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net