Documents convert to Hebrew after some manipulations

M

Mike

Hi! I am experiencing a strange problem:

I have an application that inserts some information in front of the main
body of each document. It works great. However, documents from one particular
user
convert to Hebrew after my inserts. The text my application inserts changes
from
right to left. In the original document the language is set to English US.
In the resulting document the language is Hebrew.

I have no clue where to start my troubleshooting efforts. Is it on my side?
Does the user have to change something on his? What can I do programmatically
to eliminate this problem?

Any ideas/suggestions/samples are greatly appreciated.

Many thanks in advance,

--Michael
 
J

Jean-Guy Marcil

Mike was telling us:
Mike nous racontait que :
Hi! I am experiencing a strange problem:

I have an application that inserts some information in front of the
main body of each document. It works great. However, documents from
one particular user
convert to Hebrew after my inserts. The text my application inserts
changes from
right to left. In the original document the language is set to
English US. In the resulting document the language is Hebrew.

I have no clue where to start my troubleshooting efforts. Is it on my
side? Does the user have to change something on his? What can I do
programmatically to eliminate this problem?

Any ideas/suggestions/samples are greatly appreciated.

This application.... your code or third-party code?

If it is your code, can we have a look?

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
R

Renee

Do this person's documents have right-to-left paragraph direction in the
Normal style? That'd be the first thing I would check. You might need to
enable Hebrew in Office Language settings to see: Start->Programs->Microsoft
Office->Microsoft Office Tools->Microsoft Office Language Settings. In the
Enabled Languages tab, add Hebrew.

Many users manually change the paragraph direction in docs instead of
setting their style for the document.

You can always select your paragraph and apply left-to-right paragraph
direction & left alignment on it in your code if you want to make sure it's
not doing this.
 
M

Mike

Hi! Sorry I have not responded sooner - went on a business trip.

I resolved the problem by

wordApp.CheckLanguage = false;
mySel.NoProofing = 0;
mySel.LanguageID = Word.WdLanguageID.wdEnglishAUS;
myDoc.Application.CheckLanguage = false;

the aforementioned steps force Word not to check for the language the
document is written in.

Many thanks for your help,

--Michael
 

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