../pvss.htm menu.gif basics.gif

printRootPanel()

Prints a particular root panel.

Synopsis

int printRootPanel (string modulName, string spec, int options);

Parameters

Parameters

Meaning

modulName

Name of the module whose root panel is to be printed

spec

Default = "" and means print with child panels (is printed like a screenshot), "panelOnly" = prints the panel without child panels (without screenshot of the child panels).

options

With the options parameter the available printing options can be defined.

Following constants (values) are available:

  • PPO_NO_DIALOGS (0) - opens no dialogs

  • PPO_ALL_DIALOGS (1) - opens all dialogs [default]

  • PPO_PRINTER_DIALOG (2) - only the print dialog will be opened

  • PPO_BACKGROUND_DIALOG (4) - only the background options  dialog will be opened

The background options dialog is used to define wether the background color should be replaced with white or should not be changed.

Return value

In the event of errors, the function returns -1 otherwise, 0.

Description

Prints the given root panel in the module moduleName.

IconExample

Prints the root panel of the actual module without printing dialog.

main()
{

printRootPanel(myModuleName(),"",PPO_NO_DIALOGS);

}

Member of

Management of managers

Availability

UI

See also

printPanel()

Top Of Page

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved