Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help using Kanji in VFP report

Status
Not open for further replies.

dhub

Programmer
Mar 27, 2003
7
US
I would like to use Kanji characters in a Visual FoxPro report form. I am using VFP 6.0. I have a version of Word on my computer which will display the characters (using MS Mincho or MS Gothic) fonts, but I have been unable to use the Kanji characters in FoxPro.
Can anyone offer some advice?
Will a later version of FoxPro handle this?
Thanks for any help you may be able to give.
 
dhub

(using MS Mincho or MS Gothic)

Can these fonts be selected as fonts in your report designer? Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Yes, I can select MS Mincho or MS Gothic from the format/font option.
 
dhub

And....? Does it print improperly? Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
If I start a text field in the report and try pasting in Kanji text from a Word document I have, I just get question marks. If I try changing existing text to MS Mincho, I get regular (roman style) alphabetic characters. I hope I'm just missing something really obvious.
 
Mike, I would appreciate any further thoughts you might have on this. I'm having a hard time finding information to bridge my knowledge gap on this one. Thanks.

Don Hubbard
 
dhub

(using MS Mincho or MS Gothic)

There is a difference between using a font and your printer being able to reproduce them. I'm trying to find the MS Mincho to test and see how you can fix this. It could be that your printer does not support these fonts.



Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike, I can edit and print Word documents containing Kanji characters ok. I've tried 'turning on' Japanese when I am in a VFP report and adding text, but I get question marks.
Thanks for your continued interest in this one. I really appreciate it!
 
Make sure you do the following:
- store the Word document as a RTF-file (not native Word because this could be unicode)
- take a close look into the VFP-examples. There is one that desribes how to use the RichText control. You can use this control on a form and write the contents of the field into a memo-field. RichText is plain ascii and there is no problem storing it in a memo field.

Printing is a problem but there are solutions. You can move data from a record, though the rtf-control to the clipboard and paste it into Word. Don´t use _cliptext because this one is only for plain ascii.

I don´t do this Kanji yet but I do use it to handle Czech, Polish, Turkish etc languages.

Regards,

Ron
 
Thanks Ron! I will experiment with this.
 
Solution: To use Kanji in a FoxPro report you need to have Kanji 'enabled' on your machine. Then you need to set the DEFAULT to Japanese. After restarting my machine I was able to use Kanji in a report form using MS Mincho as the font.

For those not already familiar with this process here are some tips.

1. Go to Control Panel, Regional Settings, General, then select Japanese in the lower portion of the panel (Language Settings).

2. Go to the Input Locales tab. Click "Add". Select Japanese in the Input Locale box and "Japanese" in the Keyboard Layout/IME box. Click OK.

3. Back on the General tab select "Japanese" in the "Your Locale" box. Click on "Set Default" and select "Japanese" in the "Select the appropriate locale" box on the "Select System Locale" panel. Click OK and Apply as appropriate to finish.

I have Windows 2000 Professional on my computer.

Thanks to MGagnon, NC1264, and Janzen P. (at the company I work for) for their input on this problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top