Re: Foreign Language Support

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks for your comments. The following code:
List1.AddItem ChrW(&H409) & ChrW(&H40A)
still produces only "??".

Word 2003, Arial font, Visual Basic 6.

"Peter Jamieson" wrote:

> Well, you didn't say anything about where you were getting the text from so
> I guessed. When I select a Word in Cyrillic script here (Word 2003) and add
> it to a Listbox using the code I provided, it works just fine, which
> suggested you might be doing something different.
>
> So...
>
> Which version of Word are you using?
>
> Is your Russian text in a regular font such as Times New Roman, or a
> specialised Cyrillic font?
>
> Can the font you're using in your Listbox display Cyrillic characters (here,
> I'm just using the default font).
>
> Does the other example I provided with the ChrW functions in it work or not?
>
> Peter Jamieson
>
> "George Lee" <GeorgeLee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:21419405-873C-46FA-8B03-A46E1BA43A9A@xxxxxxxxxxxxxxxx
> > Then I don't understand your question. The Russian is already in the
> > document
> > and it may be a significant amount. When I get ranges that include Russian
> > characters, they show up as "?"s in the List or ListView.
> > Are you saying I have to manually convert each character? The time needed
> > to
> > do that may be worse than the first problem.
> > Alternately, can the language of the List or ListView be changed?
> >
> > "Peter Jamieson" wrote:
> >
> >> As an experiment, if you enterone of the Words you want in your document,
> >> select it, then use e.g.
> >>
> >> myForm.myListBox.AddItem Selection.Text
> >>
> >> does the text display correctly?
> >>
> >> If you are trying to use literals within your VBA code, I think you will
> >> need to spell the words out using ChrW functions, e.g.
> >>
> >> myForm.myListBox.AddItem ChrW(&H409) & ChrW(&H40A)
> >>
> >> etc.
> >>
> >> Peter Jamieson
> >>
> >>
> >> "George Lee" <GeorgeLee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:3DC80529-A8DA-4C80-B30C-35C1EB5B240E@xxxxxxxxxxxxxxxx
> >> > I'd like to add American and Russian words to a List or ListView
> >> > control.
> >> > By
> >> > default, Cyrillic characters show up as question marks.
> >> >
> >> > How is this done?
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • Re: Foreign Language Support
    ... > Word 2003, Arial font, Visual Basic 6. ... >> Can the font you're using in your Listbox display Cyrillic characters ... >> Peter Jamieson ... The Russian is already in the ...
    (microsoft.public.word.vba.general)
  • Re: Word2007 not showing font right. CorelX3 does. New Vista machi
    ... "Windbag" wrote in message ... only font cited as missing is Gill sans, and it is using True-type Gil sans ... "Peter Jamieson" wrote: ... > Opened an old document that used special font. ...
    (microsoft.public.word.docmanagement)
  • Re: Foreign Language Support
    ... "Peter Jamieson" wrote: ... > Unicode. ... >>> specialised Cyrillic font? ...
    (microsoft.public.word.vba.general)
  • Re: Repost: Help with row shading / PDF output from mail merge (no attachment)
    ... which you can probably modify by selecting the table and ... using Table|Table Autoformat. ... Peter Jamieson ... If I edit the font to a standard one and reupload the file could you ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Foreign Language Support
    ... specialised Cyrillic font? ... Can the font you're using in your Listbox display Cyrillic characters (here, ... The Russian is already in the ... can the language of the List or ListView be changed? ...
    (microsoft.public.word.vba.general)