Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / General MS Word Questions / August 2004

Tip: Looking for answers? Try searching our database.

Embedding foreign languages in VBA/VB6 code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gordon Filby - 09 Aug 2004 14:08 GMT
Hi,

Up to the present I have been addressing scientific researchers to Email
them about papers they have published in scientific journals that I access
via a proprietary database. The Title, Journal etc below are grabbed
programmatically (VB6) from this database and the mail is first saved and
then sent.

The core of the code is:

'Compose e - mail

strmessage = vbCrLf & GlazeText2 & vbCrLf & vbCrLf & Salutation & vbCrLf &
vbCrLf

strmessage = vbCrLf & vbCrLf & vbCrLf & Salutation & vbCrLf & vbCrLf

strmessage = Salutation & vbCrLf & vbCrLf _

& "Scanning a current literature database I came across the abstract to your
paper: " & Title & vbCrLf _

& "in " & Journal & "." & vbCrLf & vbCrLf _

Blahblah .....snipsnip

With objMail

  .Recipients.Add EmailAddr

  .Subject = "Your recent paper in " & Journal

   .Body = strmessage

   .Save

End With

Using essentially the same code, I would now like to go a step further and
address authors in their native language. In other words, the text  in

Scanning a current literature database I came across the abstract to your
paper: " & Title & vbCrLf _

& "in " & Journal & "." & vbCrLf & vbCrLf _

Blahblah .....snipsnip etc

will then be in Russian, Spanish, French, Portuguese ie all languages which
use different character sets to the one I've been using up to now.

Is this possible and if so, how? Do I need additional add-ins ?

Be grateful for any suggestions.

Regards,

Gordon Filby
Cindy M  -WordMVP- - 18 Aug 2004 13:10 GMT
Hi Gordon,

I think, to a certain extent, this will depend on the version of Word
involved. If you have Unicode fonts installed that support the full range of
Unicode characters, all the characters for the languages you mention should be
available to use in Word without any additional IME support.

What I'd do, then is set the "static" text up - as full paragraphs - in Word
documents by language (and formatted with the appropriate language),
bookmarked per entry, and have your code pull in the appropriate entry (Insert
File).

The only problem I can imagine might be with passing the data from the
database in Russian. Not sure what will happen to the Cyrillic characters...

> Up to the present I have been addressing scientific researchers to Email
> them about papers they have published in scientific journals that I access
[quoted text clipped - 32 lines]
> End With
>  
 
> Using essentially the same code, I would now like to go a step further and
> address authors in their native language. In other words, the text  in
[quoted text clipped - 8 lines]
> will then be in Russian, Spanish, French, Portuguese ie all languages which
> use different character sets to the one I've been using up to now.

> Is this possible and if so, how? Do I need additional add-ins ?

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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.