Embedding application data in a VPE file ?

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Embedding application data in a VPE file ?

Postby EthicsGradient » Mon Jul 14, 2008 8:33 am

Hi,

Is it possible to embed application data into a VPE file that can then be accessed when the VPE file is reopened ?

eg. We use VPE as an embedded ActiveX object within our primary application, which will create a VPE file for a specific report, and display it to the user in our own custom VPE viewer (which is actually a standalone application).

The user can save the VPE file for later viewing within our custom viewer, separate to our primary application. ie. the user can open a previously created report in the custom viewer without running the application that created it.

This all works fine but there is data available at the time we create the report, that we'd like to save and move with with VPE file. eg. the report title, creation date, creator etc.

Is it possible to save this information within the VPE file, so that we can extract it later when we reopen the VPE file in our custom viewer ?

cheers,
Matt.
EthicsGradient
 
Posts: 16
Joined: Tue May 20, 2008 6:17 am

Postby IDEAL Software Support » Mon Jul 14, 2008 10:03 am

It is not possible to store meta-information in a VPE document file. But you can easily create a container file by yourself, which holds a VPE document file plus your own meta-information. Later you can extract the VPE document file from the container file into a memory stream, so it can be opened, viewed and printed in your custom viewer application.
IDEAL Software Support
 
Posts: 1625
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 69 guests