Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

PrintDialog.SetPrintType

Sets what FileMaker will print.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PrintDialog 5.0 Yes No No No No

MBS( "PrintDialog.SetPrintType"; Type { ; BlankOption } )

Parameters

Parameter Description Example value
Type What to print. Can be 0 for records being browsed, 1 for current record or 2 for blank record. 1
BlankOption Optional
Optional, which option to select for blank. Can be 0 for "as formatted", 1 for "with boxes" or 2 for "with underline".
0

Result

Returns OK or error.

Description

Sets what FileMaker will print.
Works only if dialog is not shown currently.

Examples

Test all variants:

Allow User Abort [Off]
Set Variable [$r; Value:MBS("PrintDialog.Enable")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrinterName"; "")]
Set Variable [$r; Value:MBS("PrintDialog.SetNoDialog"; 1)]
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-0.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 0; 0)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-1.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 1; 0)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-2-0.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 2; 0)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-2-1.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 2; 1)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.SetDestinationPath"; "/Users/cs/Desktop/test-2-2.pdf")]
Set Variable [$r; Value:MBS("PrintDialog.SetPrintType"; 2; 2)]
Print []
Set Variable [$r; Value:MBS("PrintDialog.Disable")]

See also

Created 27th December 2014, last changed 27th December 2014


PrintDialog.SetPrintToPDF   -   PrintDialog.SetPrinterName

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins