Findout out height of box using WriteBox and VFREE

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Findout out height of box using WriteBox and VFREE

Postby mkmann » Thu Jan 11, 2007 10:01 am

Hello,

I am using WriteBox and VFREE to write a row to a report:
.WriteBox(X, Y, X + width, VFREE, VPEFormatString & strText)

However sometimes the box created is large then the remaining page size - is there a way to preview what the size will be before writing to the page ? I do not want to do an automatic page break because at each new page we write special headers and page borders

Thanks
mkmann
 
Posts: 1
Joined: Thu Jan 11, 2007 9:57 am

Postby IDEAL Software Support » Thu Jan 11, 2007 3:33 pm

See the Rendering methods, i.e. in your case VPE.RenderWriteBox().

You can pre-compute the dimensions of text objects, rich text objects and images (and starting with v4.0 also of 2D barcodes).

Regards
Thorsten Radde
IDEAL Software GmbH
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 88 guests