VPERenderTemplatePage

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPERenderTemplatePage

Postby Patrick.Elsen » Thu Jan 20, 2011 10:56 am

Is it possible to render a template page top check if it will fit on the current page or will overflow to the next page; just like we can check the height of printed text with VpeRenderPrint?

I want to dump a page of a template into a vpe document, but want it to fit in its entity on one page: so if it does not fit on the current page, I want to generate a new page and print the template page to start on the next page in the document. Is this anyhow possible with VPE?
Patrick.Elsen
 
Posts: 16
Joined: Wed Aug 11, 2010 1:41 pm
Location: Koersel

Re: VPERenderTemplatePage

Postby IDEAL Software Support » Fri Jan 21, 2011 9:16 am

You can do this by creating a second temporary VPE document. Load the template into the second document and dump it there. If the page count changes, it did not fit onto the current page.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPERenderTemplatePage

Postby Patrick.Elsen » Wed Jan 26, 2011 11:49 am

I considered that already, but that way I have to create a second VPE Document and update it in the same way as the first one... as margins and stuff have an impact on the available space on a page. I will make it work that way, but it would have been easier if VPERenderTemplatePage had been available.
Patrick.Elsen
 
Posts: 16
Joined: Wed Aug 11, 2010 1:41 pm
Location: Koersel

Re: VPERenderTemplatePage

Postby IDEAL Software Support » Wed Jan 26, 2011 2:05 pm

Such a function would perform internally exactly the same.
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 71 guests