PXV_Control ActiveX Control

From PDF XChange PDF SDK
Jump to: navigation, search
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
{{#customTitle:PXV_Control CoClass}}
+
{{#customTitle:PXV_Control ActiveX Control}}
{{#parentPage:PXV:PXV_CoClasses|PXV_Control}}
+
{{#parentPage:PXV:CoClasses|PXV_Control|interface}}
{{ToReview}}
+
 
 +
 
 +
== Overview ==
 +
 
 +
The simple ActiveX Control that, when an OLE is embedded to a form or window, provides base functionality for the either viewing and manipulating PDF documents.
 +
 
 +
The control's '''GUID''' is:
 +
 
 +
::<tt>'''{A1149909-4EDC-4421-B9E5-E93C25A000A1}'''</tt>
 +
 
 +
The control's '''interface''' is:
 +
 
 +
::[[PXV:IPXV_Control|IPXV_Control]]
 +
 
 +
The control's '''event sink interface''' is:
 +
 
 +
::[[PXV:_IPXV_ControlEvents|_IPXV_ControlEvents]]
 +
 
 +
== How to Instantiate ==
 +
 
 +
The easiest way to instantiate the control is to place the control on your form in form-designer mode. Alternatively you may instantiate the control without placement, though in some programming languages this will make difficult or restrict some required tasks. In C# for example you would do as follows:
 +
 
 +
<pre class="brush:cpp;gutter:false">
 +
AxPDFXEdit.AxPXV_Control pdfCtl = new AxPDFXEdit.AxPXV_Control();
 +
pdfCtl.CreateControl();
 +
</pre>
 +
 
 +
== How to Use ==
 +
 
 +
To prevent evaluation restrictions (the embedding of DEMO labels within a file and on screen) you must provide a ''PDF-XChange Editor SDK'' developer's license key using the [[PXV:IPXV_Control_SetLicKey|IPXV_Control:SetLicKey]] method, once done so you will be able to use the entire API free of evaluation limitations.
 +
 
 +
When first reviewing the available functionality - listed below are popular features you may wish to begin with:
 +
 
 +
* [[PXV:IPXV_Control_OpenDocFromPath|IPXV_Control::OpenDocFromPath]]/[[PXV:IPXV_Control_Src|IPXV_Control::Src]] to open a document from the specified source file name.
 +
 
 +
* [[PXV:IPXV_Control_PrintPages|IPXV_Control::PrintPages]] to print a documents pages.
 +
 
 +
* [[PXV:IPXV_Control_EnableEventListening|IPXV_Control::EnableEventListening]] - enable's 'listening' for necessary Editor events.
 +
 
 +
* [[PXV:IPXV_Control_CurrentPage|IPXV_Control::CurrentPage]]/[[PXV:IPXV_Control_GoToNextPage|IPXV_Control::GoToNextPage]]/[[PXV:IPXV_Control_GoToDestination|IPXV_Control::GoToDestination]] - to navigate pages.
 +
 
 +
* [[PXV:IPXV_Control_Inst|IPXV_Control::Inst]] - provides access to the main object of the SDK to expose available functionality.

Latest revision as of 12:52, 5 June 2015


Overview

The simple ActiveX Control that, when an OLE is embedded to a form or window, provides base functionality for the either viewing and manipulating 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. Alternatively you may instantiate the control without placement, though in some programming languages this will make difficult or restrict some required tasks. In C# for example you would do as follows:

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

How to Use

To prevent evaluation restrictions (the embedding of DEMO labels within a file and on screen) you must provide a PDF-XChange Editor SDK developer's license key using the IPXV_Control:SetLicKey method, once done so you will be able to use the entire API free of evaluation limitations.

When first reviewing the available functionality - listed below are popular features you may wish to begin with:

  • IPXV_Control::Inst - provides access to the main object of the SDK to expose available functionality.