4D v17

VP EXPORT DOCUMENT

Home

 
4D v17
VP EXPORT DOCUMENT

VP EXPORT DOCUMENT 


 

VP EXPORT DOCUMENT ( vpAreaName ; filePath ) 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name
filePath  Text in Pathname of the document

The VP EXPORT DOCUMENT command exports the 4D View Pro object attached to the 4D View Pro area vpAreaName to a document on disk according to the filePath parameter.

Pass in vpAreaName the object name property of the area in the 4D form. If you pass an invalid name, an error is returned. 

In filePath, pass the destination path and name of the document to be exported. If you pass only the document name, it will be saved at the same level as the 4D structure file.

4D View Pro document extension is ".4vp". It is automatically added to the document name if not passed in filePath.

Example  

You want to export the contents of the "VPArea" area to a 4D View Pro document on disk:

 C_TEXT($docPath)
 
 $docPath:="C:\\Bases\\ViewProDocs\\MyExport.4VP"
 VP EXPORT DOCUMENT("VPArea";$docPath)
  //MyExport.4VP is saved on your disk



See also 

VP Export to object
VP IMPORT DOCUMENT

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language

 
HISTORY 

Created: 4D v16 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v17)