PXV_Control ActiveX Control

From PDF XChange PDF SDK
Jump to: navigation, search
(How to Instantiate)
Line 23: Line 23:
 
== How to Instantiate ==
 
== How to Instantiate ==
  
The easiest way to instantiate the control is to place the control on your form in form-designer mode. Otherwise, you may instantiate the control without placement, but it may be difficult in some programming languages to perform the required tasks. In C# for example:
+
The easiest way to instantiate the control is to place the control on your form in form-designer mode. Otherwise, you may instantiate the control without placement, but it may be difficult in some programming languages to perform the required tasks. In C# for example you would do as follows:
  
 
<pre class="brush:cpp;gutter:false">
 
<pre class="brush:cpp;gutter:false">

Revision as of 10:39, 5 June 2015


Overview

The simple ActiveX Control that, when an OLE is embedded to a form or window, provides base functionality for the viewing and changing of PDF documents.

The control's GUID is:

{A1149909-4EDC-4421-B9E5-E93C25A000A1}

The control's interface is:

IPXV_Control

The control's event sink interface is:

_IPXV_ControlEvents

How to Instantiate

The easiest way to instantiate the control is to place the control on your form in form-designer mode. Otherwise, you may instantiate the control without placement, but it may be difficult in some programming languages to perform the required tasks. In C# for example you would do as follows:

AxPDFXEdit.AxPXV_Control pdfCtl = new AxPDFXEdit.AxPXV_Control();
pdfCtl.CreateControl();

How to Use

Firstly, to prevent showing DEMO labels on the various pages, we recommended specifying your PDF-XChange Editor SDK developer's license key using the IPXV_Control:SetLicKey method, having done so you will be able to use entire API free of the DEMO labels otherwise imposed.

Next, the most popular features you may wish to begin with are: