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

Re: Documents convert to Hebrew after some manipulations by Jean-Guy

Jean-Guy
Fri Feb 02 09:39:33 CST 2007

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
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org



RE: Documents convert to Hebrew after some manipulations by Renee

Renee
Fri Feb 02 16:12:02 CST 2007

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.

"Mike" wrote:

> 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
>

RE: Documents convert to Hebrew after some manipulations by Mike

Mike
Tue Feb 06 15:30:02 CST 2007

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





"Mike" wrote:

> 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
>