OLE problem with character set

P

Patrick

Hi,

We have this program that was done long ago and was working fine ever since.
Well, it does not anymore!!!

It calls OLE Microsoft Word Mail Merge methods. Recently, all accentuated
characters in the text data that we merge are replaced by some weird symbol.

When I simulate the merge manually in Word, there is a pop-up window that
ask me to choose the character set(Latin1,UTF8,....). I noticed that the
default is japanese and if I do the merge using "japanese", I do have the
same problem. But if instead I choose "Latin1" the merge is OK.

It's like I would have to specify the character set as a parameter of some
method. But strangely, when I record a macro that simulate the merge in Word,
nowhere I see a parameter with something like "Latin1" as a parameter.

Any help on this will be greatly appreciated(and rewarded with a couple of
beers if we ever meet ).

Thanks.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGF0cmljaw==?=,
We have this program that was done long ago and was working fine ever since.
Well, it does not anymore!!!

It calls OLE Microsoft Word Mail Merge methods. Recently, all accentuated
characters in the text data that we merge are replaced by some weird symbol.
Which version of Word were you using when this was programme, and which do you
have, now? Did it stop working when you upgraded to the current version, by any
chance? Please show us the OpenDataSource code the application is using.
When I simulate the merge manually in Word, there is a pop-up window that
ask me to choose the character set(Latin1,UTF8,....). I noticed that the
default is japanese and if I do the merge using "japanese", I do have the
same problem. But if instead I choose "Latin1" the merge is OK.

It's like I would have to specify the character set as a parameter of some
method. But strangely, when I record a macro that simulate the merge in Word,
nowhere I see a parameter with something like "Latin1" as a parameter.

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 :)
 
P

Patrick

Hi,

Thanks for your concern.

Here is the code:

CALL METHOD OF wordobj 'MailMergeOpenDataSource'
EXPORTING
#01 = p_data
#02 = 0 "0
#03 = 1 "1
#04 = 0 "0
#05 = 0 "0
#06 = space.

Thanks.

*** This is ABAP/4 source code from an SAP platform
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?UGF0cmljaw==?=,
Here is the code:
<urk!>Can you translate what you're passing to the
method? In Word 2003 it has fifteen arguments, you're
apparently passing only 6. I'm primarily interested in
Name
Connection
SQLStatement
SQLStatement1
SubType
CALL METHOD OF wordobj 'MailMergeOpenDataSource'
EXPORTING
#01 = p_data
#02 = 0 "0
#03 = 1 "1
#04 = 0 "0
#05 = 0 "0
#06 = space.

*** This is ABAP/4 source code from an SAP platform

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

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