Switch to: V9V8V7V6V5

VProject Class: Construction Methods

VProject.VProject()

Declaration:

VProject( inProjectLocation as Location )

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:

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.

VProject.VProject()

Declaration:

VProject( 
     inConnection as VConnection,
     inProjectName as String )

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:

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.