Skip to content

EXEC_PRINT_DLG

EXEC_PRINT_DLG shows a modal dialog for printing a model.
This command returns ecode 0 if it was executed successfully and ecode 1 if there was an error.
The ecode does not say anything about whether the user executed or canceled the print dialogue.

Syntax

leo-grammar
CC "Modeling" EXEC_PRINT_DLG [ model:idValue ] 
							 [ printer:strValue ] 
							 [ layout:strValue ]
							 [ Scaling ] 
							 [ orientation:Orientation ] 
							 [ auto-execute ] .


Scaling :	factor:intValue 
fitonepage 
pages-height:intValue 
pages-width:intValue .


Orientation :	"automatically" | "portrait" | "landscape" .


-->RESULT ecode:intValue .
CC "Modeling" EXEC_PRINT_DLG [ model:idValue ] 
							 [ printer:strValue ] 
							 [ layout:strValue ]
							 [ Scaling ] 
							 [ orientation:Orientation ] 
							 [ auto-execute ] .


Scaling :	factor:intValue 
fitonepage 
pages-height:intValue 
pages-width:intValue .


Orientation :	"automatically" | "portrait" | "landscape" .


-->RESULT ecode:intValue .

Parameters

  • modelid (idValue, optional) - modelid ID of the model that shall be printed.
  • printer (strValue, optional) - the name of the selected printer (with path).
  • layout (strValue, optional) - name of the selected page layout.
  • factor (intValue) - a certain scaling factor as percent value.
  • fitonepage (modifier) - the scaling factor is computed by the "fit one page" method.
  • pages-height (intValue) - the scaling factor is computed by the "fit height of <n> pages" method.
  • pages-width (intValue) - the scaling factor is computed by the "fit width of <n> pages" method.
  • orientation (enumValue,optional) Orientation, the paper orientation. One of: "automatically" | "portrait" | "landscape"
  • auto-execute (modifier, optional) - model is printed directly with the given parameters (without executing the dialog at all).

Returns

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details

If no model ID is specified, the model of the active model window is taken. Specifying an ID after the keyword (without "modelid:") has the same meaning, but is deprecated.

See Also

Examples

asc
CC "Modeling" EXEC_PRINT_DLG
CC "Modeling" EXEC_PRINT_DLG

Versions and Changes

Available since ADOxx 1.3