Get Range HTML using the Clipboard Object - Problem with Hebrew

S

Shay

Hi,

Ways to reproduce my problem:
1. Create a new document
2. Write some Hebrew characters
3. Select it
4. Run the following C# code:
Application.Selection.Copy();
string html = Cliboard.GetData(DataFormats.Html);
5. The html is retrieved with gibberish instead of the Hebrew chars...

This happens ONLY on Word 2003 Standard Edition.

Is this a known issue? Am I doing something wrong?

Thanks!
Shay.
 
S

Shay

We've found the answer: it's the Clipboard class bug... doing that with
unmanaged code and PInvoke works just fine...

Shay.
 

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