Class

MobilePrinterPicker


Description

This class allows iOS users to print most common file formats using any of the available AirPrint compatible printers in the network.

Properties

Name

Type

Read-Only

Shared

Name

String

✓

Methods

Name

Parameters

Returns

Shared

Handle

Ptr

Print

file As FolderItem

Events

Name

Parameters

Returns

Canceled

Closing

Completed

Error

message As String

Opening

Property descriptions


MobilePrinterPicker.Name

Name As String

The name of the control.

This property is read-only.

Method descriptions


MobilePrinterPicker.Handle

Handle As Ptr

The handle to the underlying native OS control.

Important

This is supported for iOS only.


MobilePrinterPicker.Print

Print(file As FolderItem)

Opens the provided iOS AirPrint dialog in order to print the received FolderItem.

Event descriptions


MobilePrinterPicker.Canceled

Canceled

Raised when the user cancels the print.


MobilePrinterPicker.Closing

Closing

Called when the control's layout is closing.


MobilePrinterPicker.Completed

Completed

Raised when the user confirms the print operation and the underlying iOS task finishes processing and sending the job to the printer without errors.


MobilePrinterPicker.Error

Error(message As String)

Raised when there is an error during the printing job.


MobilePrinterPicker.Opening

Opening

Called when the control's layout is opening.

This is where you typically put initialization code.

This example in the Opening event of a label sets its text to "Hello":

Me.Text = "Hello"

Compatibility

Project Types

Mobile

Operating Systems

iOS

See also

MobileControl parent class, FolderItem