VPE VCL Delphi & Chinese Windows

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPE VCL Delphi & Chinese Windows

Postby M Power » Tue Oct 20, 2015 7:30 am

Dear world of knowledge,

I have a customer in Shanghai that is running our application on his PC with Chinese Windows. In this application, that is developed in Delphi 2010, we are using VCL version 7 and DLL VPES3270. Reports are printed with text and pictures showing various data for the user.

When printing reports on this Chinese computer it all comes out blank, no text or pictures are printed. On western language windows it works perfect.

I have tested on different computers with Chinese windows, and also with VPEDemo.exe, compiled in Delphi 2010 and the same issue appears.

Does anyone have an idea what might be the issue here?

Thanks

Henrik
M Power
 
Posts: 1
Joined: Mon Oct 19, 2015 3:16 pm

Re: VPE VCL Delphi & Chinese Windows

Postby IDEAL Software Support » Tue Oct 20, 2015 2:13 pm

Please note that newer versions of Delphi are using Unicode text encoding. The VPE-DLL API provides a Unicode enabled API (functions decorated with 'U' at the end), but internally the text is converted to ANSI using the current CharSet property of the document. The default charset value is "VCHARSET_DEFAULT", which means it is the charset of the machine on which VPE is currently running. This might cause trouble on Chinese Windows.

Please try the following: After calling OpenDoc(), set the property Doc.CharSet = VCHARSET_WIN_ANSI

This should fix the problem.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: Google [Bot] and 9 guests

cron