This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
VP Get print info

VP Get print info 


 

VP Get print info ( vpAreaName {; sheet} ) -> Function result 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area name
sheet  Longint in Sheet index (current sheet if omitted)
Function result  Object in Object of printing information

The VP Get print info command returns an object containing the print attributes of the vpAreaName.

Pass the the name of the 4D View Pro area in vpAreaName. If you pass a name that does not exist, an error is returned.

In the optional sheet parameter, you can designate a specific spreadsheet (counting begins at 0) whose printing attributes you want returned. If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet with the following constant:

Constant Type Value Comment
vk current sheet Longint -1 Designates current sheet of the 4D View Pro area (default)

Example  

This code:

 $pinfo:=VP Get print info("ViewProArea")

Returns the print attributes of the 4D View Pro area set in the VP SET PRINT INFO command:

{
bestFitColumns:false,
bestFitRows:false,
blackAndWhite:false,
centering:0,
columnEnd:8,
columnStart:0,
firstPageNumber:1,
fitPagesTall:1,
fitPagesWide:1,
footerCenter:"&BS.H.I.E.L.D. &A Sales Per Region",
footerCenterImage:,
footerLeft:,
footerLeftImage:,
footerRight:"page &P of &N",
footerRightImage:,
headerCenter:,
headerCenterImage:,
headerLeft:"&G",
headerLeftImage:logo.png,
headerRight:,
headerRightImage:,
margin:{top:75,bottom:75,left:70,right:70,header:30,footer:30},
orientation:2,
pageOrder:0,
pageRange:,
paperSize:{width:850,height:1100,kind:1},
qualityFactor:2,
repeatColumnEnd:-1,
repeatColumnStart:-1,
repeatRowEnd:-1,
repeatRowStart:-1,
rowEnd:24,
rowStart:0,
showBorder:false,
showColumnHeader:0,
showGridLine:false,
showRowHeader:0,
useMax:true,
watermark:[],
zoomFactor:1
}
 



See also 

4D View Pro Print Attributes
VP SET PRINT INFO

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language
Number: 9815

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)