Access TemplateObject in VPEngine.OnRequestPrint-Event

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Access TemplateObject in VPEngine.OnRequestPrint-Event

Postby Hans Fuchs » Tue Jul 19, 2016 3:29 pm

Hi,

i have in a preview a report composed of many pages (for each customer two pages).
the task is, to find out what customer the user makes a printoutput for (print-toolbarbutton).
especially when the user prints e.g. pages 30-47, 62-63 -> 10 customer.
the report is based on a template (with interactive fields and VPE-VCL-Version 7.00).

how can i access in the TVPEngine.OnRequestPrint- or TVPEngine.OnPrintNewPage-event the templateobject of the just printed document to retrieve e.g. via FindFieldObject(...) the customer-nr?

Hans
Hans Fuchs
 
Posts: 13
Joined: Mon Mar 17, 2014 9:25 am

Re: Access TemplateObject in VPEngine.OnRequestPrint-Event

Postby IDEAL Software Support » Wed Jul 20, 2016 7:10 am

You can not locate a template object based on information of a VPE object in a document.

I suggest you create an internal data structure (e.g. a map), in which you store what customers belong to what pages.
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 14 guests

cron