rreHardcopyIsAvailable

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
rreHardcopyIsAvailable()
Associationsrrehardcopy
Summary

This handler returns true if printing is available on the current device.

Introduced8.0
OSios
Platformsmobile
Example
command PrintDocument pFilePath
  if rreHardcopyIsAvailable() then
	  rreHardcopyPrintPDF pFilePath, "Print Document", the rect of the target
		switch the result
		  case "printing cancelled"
			case ""
			  -- do nothing
				break
			default
			  answer "There was a problem printing the document:" & return & the result
		end switch
	else
	  answer "Printing is not available on this device"
	end if
end PrintDocument
Values
NameTypeDescription
return

true if printing is available.

Description

This handler returns true if printing is available on the current device.

Tagsexternals