VB inserting RTF tags while opening document

T

telonq

Hi,
While opening a RTF document in VB 6.0, it is inserting RTF tags like
"\hich\af2\dbch\af2\loch\f2" all over the document which were not
there in the RTF document before opening. Funny part is these tags are
going away if you open the same documents again in VB. These tags are
appearing in alternate opens.

dim myword as object
myword = createobject("word.application")
myword.documents.open "c:\mydocs\myrtffile.rtf"

These tags are inserted only in "word 2002" not in "word 2000".

As i mentioned before, if same document is opened again by above code
the \hich.... tags are gone from RTF file. If I open again they will be
inserted.


Does any body encountered this behavior?

TIA
 
C

Cindy M -WordMVP-

Hi Telonq,

No idea, really, but see hich and dbch (double character?) I have to
wonder if this might be some kind of Asian or right-to-left support being
activated on the machine?
While opening a RTF document in VB 6.0, it is inserting RTF tags like
"\hich\af2\dbch\af2\loch\f2" all over the document which were not
there in the RTF document before opening. Funny part is these tags are
going away if you open the same documents again in VB. These tags are
appearing in alternate opens.

dim myword as object
myword = createobject("word.application")
myword.documents.open "c:\mydocs\myrtffile.rtf"

These tags are inserted only in "word 2002" not in "word 2000".

As i mentioned before, if same document is opened again by above code
the \hich.... tags are gone from RTF file. If I open again they will be
inserted.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :)
 
T

telonq

Hi,
Thanks for your reply.
But if I open the RTF document with "Word" these tags are not
inserted. This is only happening when I open the RTF document with VB.
Is there any way to turn off Asian or Right-to-Left support in VB?

TIA
 

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