Word 2003 Automation from Right-To-Left

R

Rami Saad

Hi Guys,

Our VB application has been using Word Templates both in English/Arabic to
print documents. Data is sent and inserted into the form fields of the
template in the left to right manner using the statement
Selection.NextField. This is both for English and Arabic documents using
Word 2000.

We are now testing Word 2003 and we found out that when using arabic
documents - the statement Selection.NextField behaves in Right-To-Left
manner.

My question is - is there a property that can be set so that fields in a
Word Template (word 2003) flow in left-to-right manner irregardless the
language

Regards,

Rami Saad
 
C

Cindy M -WordMVP-

Hi Rami,

I think there would be better ways to enter the data than
Selection.NextField. The Selection object emulates, in principle, what the
user does; so it makes sense that it works from right-to-left in a document
formatted with such a language.

How about doing something along these lines:

doc.Formfields(1).Result = "Text"
doc.Formfields(2).Result = "More text"

You should also be able to address the formfields by name, instead of index:

doc.Formfields("TheName").Result = "Text again"

Either of these would not only be more accurate, but should also execute
much faster than using Selection.
Our VB application has been using Word Templates both in English/Arabic to
print documents. Data is sent and inserted into the form fields of the
template in the left to right manner using the statement
Selection.NextField. This is both for English and Arabic documents using
Word 2000.

We are now testing Word 2003 and we found out that when using arabic
documents - the statement Selection.NextField behaves in Right-To-Left
manner.

My question is - is there a property that can be set so that fields in a
Word Template (word 2003) flow in left-to-right manner irregardless the
language

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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