Inesoft
PrintCE SDK .NET |
C# Syntax: bool ret = object.Connect(
ASCII_PORT port,
string port_param
);
VB Syntax: Dim ret As Boolean = object.Connect(
ByVal port As ASCII_PORT,
ByVal port_param As String,
)Parameters
port
port number, see ASCII_PORT enumerator
port_param
parameter string,
- if port is ASCII_FILE then port_param defines file path,
- if port is ASCII_NET then port_param defines network path,- if port is ASCII_BTBROAD then port_param is following string: "bt_adr;service_name;scn" (for example: "0x0ddfec02cd98;myservice;5"), where:
bt_adr - address of Bluetooth device. It must be represented as a hex number which will be converted into 6 bytes array. The length of bt_adr must be equal to 14 symbols. Otherwise function will fail.
service_name- service which is used for printing (see WIDCOMM SDK documentation dor details)
scn- service channel number (see WIDCOMM SDK documentation dor details)
- if port is ASCII_BTMSOFT then port_param is address of Bluetooth device. It must be represented as a hex number which will be converted into 6 bytes array. The length of string must be equal to 14 symbols. Otherwise function will fail. For example: "0x0ddfec02cd98"
for all other ports port_param must be set to NULL or empty string
Return Value
ret
true - if connection established, false - in other case
© 2009 Inesoft. All rights reserved.