Can I print Chinese words to VPE Doc?

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Can I print Chinese words to VPE Doc?

Postby tinhle » Mon Jan 25, 2010 4:18 am

Hi,

I want to print the Chinese words to VPE Docs, Can I?

If can, please show me the way?

Tony
tinhleduc@gmail.com
tinhle
 
Posts: 1
Joined: Mon Jan 25, 2010 3:54 am
Location: Singapore

Postby IDEAL Software Support » Mon Jan 25, 2010 1:38 pm

This is not possible with VPE in the current version, because VPE does not (yet) support Unicode. One of our next major tasks is to provide Unicode support, but this will require a huge amount of work and time.

The major problem is that we support different platforms and rendered text layout needs to be 100% identical on all supported platforms. So we need a much more generic solution than just using the Microsoft Uniscribe API.

We expect to have Unicode support in the mid of 2011.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Chinese in VPE

Postby nc1264 » Thu Feb 11, 2010 9:12 am

You can print Simple Chinese with VPE 2.6 but there are certain conditions to it. I'm not sure if this still works in later versions including the new version 6.

You can't use Unicode as it this is not supported. However, it can be done with RTF. The type of RTF, however, is tricky. If the text contains Unicode references in RTF (\uxxxxx) characters all will be shown as question marks. You also need to use a specific Windows font: SimSun

A text like this will work:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\fnil\fprq2\fcharset134 SimSun;}}\viewkind4\uc1\pard\lang3081\f0\fs20\'b7\'c0\'be\'b2\'b5\'e7\'c9\'e8\'b1\'b8}
nc1264
 
Posts: 28
Joined: Mon Dec 13, 2004 8:18 am

Postby IDEAL Software Support » Thu Feb 11, 2010 9:49 am

I think you mean v3.60. This does only work in v3.x. It works because the RTF is using DBCS. Since v4.0 we are using our own font rendering system in order to guarantee identical layouts on all supported platforms.

In v3.x we just called the Windows API and it understands the DBCS so things like your example do work. You can switch VPE into v3.x mode by calling:

Code: Select all
VPE.EngineRenderMode = VENGINE_RENDER_MODE_VER3


Then the above sample should also work with current versions of VPE. However, we do not guarantee that.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby nc1264 » Thu Feb 11, 2010 9:53 am

I made a mistake. It's indeed not version 2.6. I use version 3.1 for development and 3.5 on the server.
nc1264
 
Posts: 28
Joined: Mon Dec 13, 2004 8:18 am

Re: Can I print Chinese words to VPE Doc?

Postby ADJ68 » Tue Apr 26, 2016 10:54 am

Hi, We are currently investigating the need to print Chinese characters and have noted the above thread.

Several years on from these, please can you confirm if the Unicode enabled version of VPE is now available?

Thanks in advance.
ADJ68
 
Posts: 1
Joined: Tue Apr 26, 2016 10:51 am

Re: Can I print Chinese words to VPE Doc?

Postby IDEAL Software Support » Wed Apr 27, 2016 1:24 pm

As already explained in several posts of this forum. it is not available and we have currently no timeframe when - or if - a unicode enabled version will be created.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 5 guests

cron