Switch to: V9V8V7V6V5

Differences

This shows you the differences between two versions of the page.

valentina:products:adk:api:vproject_class:construction [2013/12/23 10:54]
rz
valentina:products:adk:api:vproject_class:construction [2017/02/04 06:46] (current)
Line 1: Line 1:
 +====== VProject Class: Construction Methods ======
 +===== VProject.VProject() =====
 +**Declaration:**
 +
 +<code vb>
 +VProject( inProjectLocation as Location )
 +</code>
 +
 +**Parameters:**
 +  * ** inProjectLocation** - The location of a Valentina project file "*.vsp".
 +
 +**Description:**
 +
 +Constructs a new instance of VProject class. You should provide the disk location of a "*.vsp" file which contains the description of one or more Reports.
 +
 +**Example:**
 +
 +<code vb>
 +dim pAllReports as VProject
 +
 +my_project = new VProject( "MyProject.vsp" )
 +
 +// Now you can use the methods of VProject class to:
 +// * investigate how many reports are inside this container.
 +// * get their names to display in e.g. menu
 +// * extract single reports creating VReport class instance.
 +</code>
 +===== VProject.VProject() =====
 +
 +**Declaration:**
 +
 +<code vb>
 +VProject(
 +    inConnection as VConnection,
 +    inProjectName as String )
 +</code>
 +
 +**Parameters:**
 +  * ** inConnection** - A connection to a Valentina Server.
 +  * ** inProjectName** - The name of a VProject hosted by that VServer.
 +
 +**Description:**
 +
 +Constructs a new instance of VProject class to handle projects hosted on a Valentina Server.  You should provide a connection object and a project name known to the Valentina Server.
 +
 +**Example:**
 +
 +<code vb>
 +dim pAllReports as VProject
 +
 +my_project = new VProject( connectionToMyServer, "MyProject.vsp" )
 +
 +// Now you can use methods of VProject class to:
 +// * investigate how many reports are inside of this container.
 +// * get their names to display in e.g. menu
 +// * extract single reports creating VReport class instance.
 +</code>