Linked Styles - Clipboard Locks Up Word 2002

S

Steve

I have a Word Add in that goes belly up when it
encounters a linked style in a document. The Heading2
style has been linked to what, I don't know. Examining
the 'Style Type' edit box on the Modify Styles Dialog
shows 'Paragraph and character' as the style type. When
I create a new style I can only specify the choice as
either Paragraph or Character, not both.

My Word Add In does some processing that uses the
clipboard. At some point I preserve the clipboard by
moving it to memory. During this operation my Add In
quits working. I have noticed that the clipboard format
id is 49163 with a format name of Embed Link (wording?)
and when I pull the data off the clipboard using the
getclipboarddata(iFormat) api call, Word locks up and I
have to shut down Word from taskmanager to continue.

This is not new code and has been working for years. The
chances of a linked style like this occurring are quite
rare in my application, but I would like to prevent the
lock up by detecting this linked style and not allowing
the offending operation, even better would be to correct
the problem some other way.

I would appreciate any help,
Thanks in advance,

Steve Holmes
Cetara Software Development
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top