Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

Clipboard, formats and Commandbars

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Karlström - 20 Nov 2006 21:04 GMT
Hi

I have developed a COM Addin for Word which creates a custom commandbar
where som of the options contains graphics which i get from a resource in my
development project and place on the commandbar using the clipboard.
To not destroy the objects in the clipboard I save the content to an
appropriate variable during the creation of the commandbar. When I'm finished
I put it back.

As different document-types consists of slightly different functions in the
toolbar
I recreate it when the user shifts document.

Now, to my problem.

When a user copies som formatted text from one document to another the
format is lost.
Is there a way to keep the format in the clipboard so that I can restore the
content properly after my work with the commandbar?

Any hints will be appreciated

Regards
Signature

Peter Karlström
Midrange AB
Sweden

Cindy M. - 24 Nov 2006 15:02 GMT
Hi =?Utf-8?B?UGV0ZXIgS2FybHN0csO2bQ==?=,

And that's why developers try to NEVER use the Clipboard for their solutions...

Which version of Word is the Add-in running in? And is this a .NET solution, or
something else?

> I have developed a COM Addin for Word which creates a custom commandbar
> where som of the options contains graphics which i get from a resource in my
[quoted text clipped - 13 lines]
> Is there a way to keep the format in the clipboard so that I can restore the
> content properly after my work with the commandbar?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.