Programming Languages

www.altova.com Imprimir este apartado Página anterior Subir un nivel Página siguiente

Inicio >  Referencia del programador > Application API > Overview >

Programming Languages

Programming languages differ in the way they support COM access. A few examples for the most frequently used languages (links below) will help you get started. The code listings in this section show how basic functionality can be accessed. This basic functionality is included in the files in the API Examples folder and can be tested straight away. The path to the API Examples folder is given below:

 

 

Windows 7, Windows 8, Windows 10

C:\Users\<usuario>\Documentos\
Altova\StyleVision2019\StyleVision

 

 

 

JScript

The JScript listings demonstrate the following basic functionality:

 

Start application or attach to a running instance
Simple document access
Iteration

 

 

VBScript

VBScript is different than JScript only syntactically; otherwise it works in the same way. For more information, refer to the JScript examples.

 

 

C#

C# can be used to access the Application API functionality. The code listings show how to access the API for certain basic functionality.

 

Start StyleVision: Starts StyleVision, which is registered as an automation server, or activates StyleVision if it is already running.
Open OrgChart.pxf: Locates one of the example documents installed with StyleVision and opens it. If this document is already open it becomes the active document.
OnDocumentOpened Event On/Off: Shows how to listen to StyleVision events. When turned on, a message box will pop up after a document has been opened.
Open ExpReport.xml: Opens another example document.
Shutdown StyleVision: Stops StyleVision.

 

 

Java

The StyleVision API can be accessed from Java code. The Java sub-section of this section explains how some basic StyleVision functionality can be accessed from Java code. It is organized into the following sub-sections:

 

Mapping Rules for the Java Wrapper
Example Java Project
Application Startup and Shutdown
Simple Document Access
Iterations
Event Handlers

 


© 2019 Altova GmbH