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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change font at runtime to a JPN font?

Status
Not open for further replies.

peakdw02

Programmer
Jul 30, 2002
2
US
I am trying to identify a way to change the font for field objects on a report at runtime. Basically, what I am trying to do do is invoke a report using the CRPE API. When the default system langauge is set to Japanese then I want to want to update the font on the report to a font that is appropriate for Japanese. The report at design time will be geared for English users. I have run a couple of tests and if the default system language is Japanese and the field objects are set to a Japanese font then the JPN characters display correctly.

How can I change the font at runtime? Do I need to use the SetFont or PESetFont API method calls? I do not think that the PESetFont method is want I want because I think that refers to an actual print job.

Any advice would would be greatly appreciated!

TIA!
- Derek
 
Do you have any example code for the PESETFONT method?

I have attempted to use the PE API calls but I cannot get the PESETFONT to work correctly it always returns a Failure code (0).

Any additional assistance would be greatly appreciated!

TIA!

- Derek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top