VPE.FontSize cannot print if > 10

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPE.FontSize cannot print if > 10

Postby vpe88 » Thu Jun 16, 2011 10:58 am

Hi guys,

I'm using VS2010 (.Net Framework 4.0) and IDEALSoftware.VpeProfessional.dll.

The code below printed empty if the VPE.FontSize is being set bigger than 10. Any number less or equal to 10 has no issue.

VPE.FontSize = 10;
dLeft = (double)XPos / 100;
dTop = (double)y / 100;
dRight = (double)(XPos + iLen) / 100;
dBottom = (double)(y + iBoxHeigt) / 100;
VPE.Write(dLeft, dTop, dRight, dBottom, sData);

Does anyone has any clue or workaround regarding this matter?
Urgent.. help, pls! Thanks in advance.
vpe88
 
Posts: 11
Joined: Thu Jun 16, 2011 10:50 am

Re: VPE.FontSize cannot print if > 10

Postby IDEAL Software Support » Thu Jun 16, 2011 12:56 pm

You are most likely using a bitmap font. VPE does only support True-Type fonts and OpenType fonts with embedded True-Type fonts.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE.FontSize cannot print if > 10

Postby IDEAL Software Support » Thu Jun 16, 2011 1:09 pm

Or your bottom-coordinate is not big enough, so VPE can not display a single line of text.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE.FontSize cannot print if > 10

Postby vpe88 » Fri Jun 17, 2011 4:03 am

I don't see it's the issue of Font-Type, as I mentioned, FontSize with 10 or less works, but not for bigger than 10.

Neither it's the bottom-coordinate issue, please refer to the below url for the actual printed pages:

1. http://picasaweb.google.com/101585904439815318508/PDFThingie?authkey=Gv1sRgCNDSxPb5tNjS3wE#slideshow/5619014297448351106
=> For this printed PDF, VPE.FontSize of the "Item Code:" is in size 9, and "1406490439" in size 10. WORKing perfectly.

2. http://picasaweb.google.com/101585904439815318508/PDFThingie?authkey=Gv1sRgCNDSxPb5tNjS3wE#slideshow/5619014633283427250
=> For this printed PDF, VPE.FontSize of the "Item Code:" is the same as the previous one which is in size 9, and "1406490439" in size 11. NOT printed out the "1406490439".

Forgot to mention, this issue existed in "VPE Professional Edition v6.10", but working perfectly in "VPE Professional Edition v3.60 R4". Both are running under the WindowsXP, VS2010 CSharp (.Net Framework 4.0).

Any clue, guys? Thanks in advance.
vpe88
 
Posts: 11
Joined: Thu Jun 16, 2011 10:50 am

Re: VPE.FontSize cannot print if > 10

Postby IDEAL Software Support » Fri Jun 17, 2011 9:50 am

Increase the bottom coordinate. The 11pt size text does not fit into the given height of the rectangle and is therefore clipped away. From VPE v4.0 on the font rendering engine had been changed to gain multi-platform support for Windows, Mac OS X, Linux, and Solaris. So it is possible that the height was sufficient in v3.60, but it is not in v4.0 and higher. Or set VPE.EngineRenderMode = VENGINE_RENDER_MODE_VER3 to use the old v3.x compatible font rendering engine. But in this case your documents are not compatible to other platforms.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE.FontSize cannot print if > 10

Postby vpe88 » Wed Jun 22, 2011 4:03 am

Solved. Thx a lot!
vpe88
 
Posts: 11
Joined: Thu Jun 16, 2011 10:50 am

Re: VPE.FontSize cannot print if > 10

Postby IDEAL Software Support » Wed Jun 22, 2011 8:36 am

Please tell the community how you solved it.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 73 guests