RTL Problem

G

Guy Cohen

Hi all,

I am using VB6,Word97.
I wrote a VB program to automate documents using Word' docVariables.
The program supports RTL (from right to left).
I have a problem with the report. When the company name is "a.b.c" the name
of the company in the report is printed as: "c.b.a"
Both the paragraph and the text is aligned to the right in the template that
contains the docVariable because the document is RTL.
So I have (align the next line to the right):
c.b.a :CompanyName
Instead of (align the next line to the right):
a.b.c :CompanyName

Please advise
Guy
 
S

Steve Hudson

G'day "Guy Cohen" <[email protected]>,

how do you determine the current text vector?

Guy Cohen said:
Hi all,

I am using VB6,Word97.
I wrote a VB program to automate documents using Word' docVariables.
The program supports RTL (from right to left).
I have a problem with the report. When the company name is "a.b.c" the name
of the company in the report is printed as: "c.b.a"
Both the paragraph and the text is aligned to the right in the template that
contains the docVariable because the document is RTL.
So I have (align the next line to the right):
c.b.a :CompanyName
Instead of (align the next line to the right):
a.b.c :CompanyName

Please advise
Guy

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com

If answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
 
W

Word Heretic

G'day "Guy Cohen" <[email protected]>,

yes, but what is your code doing to determine this? I suspect you are
using the wrong mechanism. To be fair, I never play with this sort of
text, but merely looked into as an educational exercise over a year
ago.


Steve Hudson
Word Heretic Sydney Australia
Tricky stuff with Word or words

Email: Steve at wordheretic.com


Guy Cohen was spinning this yarn:
Hi Steve,
Thank you for trying.

RE: how do you determine the current text vector?
Please look at the attachment. The paragraph is aligned to the right and the
text flow is from right to left.

TIA
Guy

Steve Hudson

Word Heretic, Sydney, Australia

wordheretic.com

If answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
 
G

Guy Cohen

Hi again Steve

The only code I use is :
WordDoc.Variables("strCompanyName").Value = txtCompanyName.Text

The paragraph is already aligned to the right in the word document that the
program uses as a template.
The text flow reading is already RTL in the word document that the program
uses as a template.

TY
Guy
 
W

Word Heretic

G'day "Guy Cohen" <[email protected]>,

Hmmm. I am guessing that's a sensible default the more I think about.
You need to manually set that para to LTR.

Steve Hudson
Word Heretic Sydney Australia
Tricky stuff with Word or words

Email: Steve at wordheretic.com


Guy Cohen was spinning this yarn:
Hi again Steve

The only code I use is :
WordDoc.Variables("strCompanyName").Value = txtCompanyName.Text

The paragraph is already aligned to the right in the word document that the
program uses as a template.
The text flow reading is already RTL in the word document that the program
uses as a template.

TY
Guy

Steve Hudson

Word Heretic, Sydney, Australia

wordheretic.com

If answers r 2 terse, ask again or hassle an MVP,
at least they get recognition for it then.
Lengthy replies offlist require payment.
 
G

Guy Cohen

Hi Steve.

Thank you for the repeating efforts.

RE: You need to manually ...
I don't want to align the paragraph to the left- (as I wrote before) the
document is designed to be RTL (because its in Hebrew... )

The page should look like this:
* the word CompanyName in Hebrew of course
* | | are the borders of the page

| <docvariable-strCompanyName>
:CompanyName|

Is it possible to align only the content of the docvariable to the left?
**********
Another question - Is it possible to change the font of the docVariable
(Size, color etc)?
********
TIA
Guy
 
W

Word Heretic

G'day "Guy Cohen" <[email protected]>,

Ah. No, not unless you actually store it reversed in the doc prop,
then all will be sweet.

/* MERGEFORMAT on some fields allows you to char style the result and
it sticks.

Steve Hudson
Word Heretic Sydney Australia
Tricky stuff with Word or words

Email: Steve at wordheretic.com


Guy Cohen was spinning this yarn:
 

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