Search code examples
iosipadlivecodeairprint

How to display airprint popup in ios7 ipad with livecode external rrhardcoy?


I need a airprint button in my livecode project.(developed for ipad ios 7). please help me


Solution

  • I've just tested the rreHardCopy external with the sample code that is supplied with the SDK and the print pop up shows as expected-

     on mouseUp
      local tPDFFile
      put specialFolderPath("Documents") & slash & "test.pdf" into tPDFFile
      delete file tPDFFile
      open printing to pdf tPDFFile
      print this card
      close printing
      rreHardcopyPrintPDF tPDFFile, "Test PDF Print"
      answer "PrintPDF returned" && the result
    end mouseUp
    

    This was tested on both the simulator and physical device.

    A link to a build of the external I made can be found here-

    http://techsupport.on-rev.com/sostacks/rrehardcopy%20DEVICE.zip

    http://techsupport.on-rev.com/sostacks/rrehardcopy%20SIMULATOR.zip

    picture showing print pop up