COM and .NET

www.altova.com Expand/Collapse All Print this Topic Previous Page Up One Level Next page

Home >  StyleVision Server API > API Reference >

COM and .NET

The StyleVisionServer API exposes the IServer interface, which creates a new StyleVision Server object instance, and provides access to StyleVision Server.

 

The IServer interface has the following methods and properties.

 

Methods

 

Click to expand/collapseAddParameter

Assigns a value to a parameter defined in the PXF file.

 

void AddParameter(string bstrName, string bstrValue)

HRESULT AddParameter([in] BSTR bstrName, [in] BSTR bstrValue );

Sub AddParameter(ByVal bstrName As String, ByVal bstrValue As String)

 

 

Click to expand/collapseClearParameterList

Clears the list of parameters.

 

void ClearParameterList()

HRESULT ClearParameterList();

Sub ClearParameterList()

 

 

Click to expand/collapseGenerate

Generates one or more output files (HTML, PDF, RTF, and/or DOCX) by using the PXF file specified with TransfPath. It transforms the input XML file (Working XML File in the PXF file) using the XSLT document contained in the PXF file. Returns TRUE in case of success; FALSE otherwise.

 

bool Generate(string bstrTransfPath)

HRESULT Generate( [in] BSTR bstrTransfPath, [out, retval] VARIANT_BOOL* pbSuccess );

Function Generate(ByVal bstrTransfPath As String) As Boolean

 

 

 

 

Properties

 

Click to expand/collapseAPIMajorVersion

Gets the major version of the StyleVision Server API. It can be different from the product version if the API is connected to another server.

 

int APIMajorVersion { get; }

HRESULT APIMajorVersion([out, retval] INT* pnVal);

ReadOnly Property APIMajorVersion As Integer

 

 

Click to expand/collapseAPIMinorVersion

Gets the minor version of the StyleVision Server API. It can be different from the product version if the API is connected to another server.

 

int APIMinorVersion { get; }

HRESULT APIMinorVersion([out, retval] INT* pnVal);

ReadOnly Property APIMinorVersion As Integer

 

 

Click to expand/collapseAPIServicePackVersion

Gets the service pack version of the StyleVision Server API. It can be different from the product version if the API is connected to another server.

 

int APIServicePackVersion { get; }

HRESULT APIServicePackVersion([out, retval] INT* pnVal);

ReadOnly Property APIServicePackVersion As Integer

 

 

Click to expand/collapseInputXML

Sets the path and name of the XML file to be processed (the Working XML File in the PXF file).

 

string InputXML { set; }

HRESULT InputXML([in] BSTR bstrPath );

Property InputXML As String

 

 

Click to expand/collapseIs64Bit

Returns TRUE if the StyleVision Server engine is a 64-bit executable.

 

bool Is64Bit { get; }

HRESULT Is64Bit([out, retval] VARIANT_BOOL* pbVal);

ReadOnly Property Is64Bit As Boolean

 

 

Click to expand/collapseLastExecutionMessage

Gets the message received during the last Generate command.

 

string LastExecutionMessage { get; }

HRESULT LastExecutionMessage([out, retval] BSTR* pbstrResult );

ReadOnly Property LastExecutionMessage As String

 

 

Click to expand/collapseMajorVersion

Gets the major version of StyleVision Server.

 

int MajorVersion { get; }

HRESULT MajorVersion([out, retval] INT* pnVal);

ReadOnly Property MajorVersion As Integer

 

 

Click to expand/collapseMinorVersion

Gets the minor version of StyleVision Server.

 

int MinorVersion { get; }

HRESULT MinorVersion([out, retval] INT* pnVal);

ReadOnly Property MinorVersion As Integer

 

 

Click to expand/collapseOutputDOCX

Sets the path and name of the output DOCX file.

 

string OutputDOCX { set; }

HRESULT OutputDOCX([in] BSTR bstrPath );

Property OutputDOCX As String

 

 

Click to expand/collapseOutputFO

Sets the path and name of the output FO file.

 

string OutputFO { set; }

HRESULT OutputFO([in] BSTR bstrPath );

Property OutputFO As String

 

 

Click to expand/collapseOutputHTML

Sets the path and name of the output HTML file.

 

string OutputHTML { set; }

HRESULT OutputHTML([in] BSTR bstrPath );

Property OutputHTML As String

 

 

Click to expand/collapseOutputPDF

Sets the path and name of the output PDF file.

 

string OutputPDF { set; }

HRESULT OutputPDF([in] BSTR bstrPath );

Property OutputPDF As String

 

 

Click to expand/collapseOutputRTF

Sets the path and name of the output RTF file.

 

string OutputRTF { set; }

HRESULT OutputRTF([in] BSTR bstrPath );

Property OutputRTF As String

 

 

Click to expand/collapseProductName

Gets the name of the product: "StyleVision Server"

 

string ProductName { get; }

HHRESULT ProductName([out, retval] BSTR* pstrVal);

ReadOnly Property ProductName As String

 

 

Click to expand/collapseProductNameAndVersion

Gets the complete name of the product, including the version number: "StyleVision Server 2014r2 sp1 (x64)".

 

string ProductNameAndVersion { get; }

HHRESULT ProductNameAndVersion([out, retval] BSTR* pstrVal);

ReadOnly Property ProductNameAndVersion As String

 

 

Click to expand/collapseServerPath

Gets or sets the path to the StyleVision Server executable.

 

string ServerPath { set; get; }

HRESULT ServerPath([in] BSTR bstrServerFile );

HRESULT ServerPath([out, retval] BSTR* pbstrServerFile );

Property ServerPath As String

 

 

Click to expand/collapseServicePackVersion

Gets the service pack version of StyleVision Server (for example: 1 for Altova StyleVision Server 2014 r2 sp1 (x64).)

 

int ServicePackVersion { get; }

HRESULT ServicePackVersion([out, retval] INT* pnVal);

ReadOnly Property ServicePackVersion As Integer

 

 

Click to expand/collapseWhereClause

Sets an SQL WHERE clause that determines the rows of a DB-XML schema source to process.

 

string WhereClause { set; }

HRESULT WhereClause([in] BSTR bstrPath );

Property WhereClause As String

 

 

Click to expand/collapseWorkingDirectory

Gets or sets the current directory for running jobs. Relative paths are evaluated against the working directory.

 

string WorkingDirectory { set; get; }

HRESULT WorkingDirectory([in] BSTR bstrWorkingDirectory );

HRESULT WorkingDirectory([out, retval] BSTR* pbstrWorkingDirectory );

Property WorkingDirectory As String

 

 

 


© 2019 Altova GmbH