Get Range HTML using the Clipboard Object - Problem with Hebrew

  • Thread starter Thread starter Shay
  • Start date Start date
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.
 
We've found the answer: it's the Clipboard class bug... doing that with
unmanaged code and PInvoke works just fine...

Shay.
 
Back
Top