Saltar para o conteúdo principal
Versão: 20 R5 BETA

VP Get print info

VP Get print info ( vpAreaName : Text { ; sheet : Integer } ) : Object

ParâmetroTipoDescrição
vpAreaNameText->Nome de objeto formulário área 4D View Pro
sheetInteger->Índice da folha (folha atual se omitida)
ResultadosObject<-Objeto com informação de impressão

Descrição

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

Passe o nome da área 4D View Pro em vpAreaName. Se passar um nome que não existe, é devolvido um erro.

In the optional sheet parameter, you can designate a specific spreadsheet (counting begins at 0) whose printing attributes you want returned. Se omitido ou se você passar vk current sheet, a planilha atual será usada.

Exemplo

Este código:

$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
}

Veja também

4D View Pro Print Attributes
VP SET PRINT INFO