How to embed VpeControl (from memory) on a form?

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

How to embed VpeControl (from memory) on a form?

Postby fredywenger » Mon Nov 21, 2016 11:45 am

We use VPE 7.1 in our VB.NET VS2015 application.
Mostly, we use the VPE to generate .pdf's and show the result in an external window (so that the user can decide what he want to do interactive).
Therefore we create the base object in code:
Dim report As New VpeControl

On some special forms (consoles), we have to query data, show the result on a VPE on a form and change the date over a timer automatically from code.
This works, if we take the .ocx (VpeCtrl71.ocx) for this (so we can paste the .ocx on a form and set the options from code).
But.. if we use the .ocx (only for this purpose), we have to include the .ocx in our application and take care, that it is registered by every user (what only works with admin rights and is not nice).
Therefore my questions:
Is it possible to embed the in code generated VpeControl object (see code above) on a windows form (like the activeX) so that we don't need the activeX?
If yes, how to do this (advise please)..

Thanks for a fast feedback.
fredywenger
 
Posts: 4
Joined: Wed Sep 18, 2013 10:26 am

Re: How to embed VpeControl (from memory) on a form?

Postby fredywenger » Mon Nov 21, 2016 5:40 pm

I have find out the solution myself...
As I don't have received any answer from IdealSoft, I place my solutioion here...

Just create the object in code:
Dim report As New VpeControl
Then place a container-object on the form (in my case, I have placed a panel)
Then in form.load add:
Panel.Controls.Add(report)

This way, it also works without the .ocx
fredywenger
 
Posts: 4
Joined: Wed Sep 18, 2013 10:26 am

Re: How to embed VpeControl (from memory) on a form?

Postby IDEAL Software Support » Tue Nov 22, 2016 9:21 am

For .NET, you should always use the VPE .NET component, not the ActiveX.

If you are experiencing licensing issues when deploying your application on customer sites, please see http://www.idealsoftware.com/opensource/net-licensing.html.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 7 guests

cron