PrintSynoptic, SynopticCmdTarget Function

Syntax

PrintSynoptic(_nMode, _bKeepPrintProportions)

Description

This function executes the print by reloading the screen in background and therefore by re-executing the  SynopticLoading(). Therefore, it is for this reason that if any modifications are made to dynamic objects after the Screen is loaded, they will not be shown in the print.    Accepts the nMode parameter indicating the print mode.

 

The parameter can have the following the values:

0=select printer

1=direct printout

2=Preview

 

Parameter

Description

nMode As Integer

Print Mode.

bKeepPrintProportions as boolean

Optional Parameter.

When set at "True" permits prints exactly to the proportions as seen on screen.  When set at 'False' (default value) both height and width are adapted to fit within screen page.

 

Result

Boolean

 

Example:

Public Sub Click()

PrintSynoptic(2)

End Sub

 

See Also