<< Click to Display Table of Contents > 

Client Control Interface Manual > Other > Print

Print
Previous pageReturn to chapter overviewNext page

Execute Print

Print Settings

 

Execute Print
 

Set

Get

DLL Function

int CCI_Return = ScExecCommand(int Cmd_ID)

ASCII Function

int CCI_Return = ScCciExecCommand(int Cmd_ID)

Description

Execute to print the current View2D.

Cmd_ID

Type: int

Location: ScComSAMLightClientCtrlExecCommandConstants

scComSAMLightClientCtrlExecCommandPrintDirect

74

CCI_Return

Type: int

CCI return number, see error list.

Notes

The printer can not be chosen by the user. The windows default will be used.

Further settings can be made in the print settings.

C# Example: Execute Printing:

 

int CCI_Return = cci.ScExecCommand( ( int )ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandPrintDirect );

Table 348: Execute Print

Print Settings
 

Set

Get

DLL Function

int CCI_Return = ScSetLongValue(int Value_Type, int Parameter)

int Parameter = ScGetLongValue(int Value_Type)

ASCII Function

int CCI_Return = ScCciSetLongValue(int Value_Type, int Parameter)

int Parameter = ScCciGetLongValue(int Value_Type)

Description

Define the print settings regarding page orientation or number of copies.

Value_Type

Type: int

Location: ScComSAMLightClientCtrlValueTypes

scComSAMLightClientCtrlLongValueTypePrintOrientation

145

Set page orientation.

1: Landscape

2: Portrait

scComSAMLightClientCtrlLongValueTypePrintNumCopies

146

Set number of print copies.

Parameter

Type: int

Unit: none

Set parameter according to used constant

CCI_Return

Type: int

CCI return number, see error list.

Notes

-

C# Example: Set number of copies to 2:

 

int CCI_Return = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypePrintNumCopies, 2 );

C# Example: Get page orientation:

 

int Page_orientation = cci.ScSetLongValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlLongValueTypePrintOrientation);

Table 349: Print Settings