2014-03-05 40 views

回答

1

我剛測試的rreHardCopy外部與和SDK和打印供給彈出顯示爲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 

這是在模擬器上和物理設備都測試的樣本代碼。

鏈接到我做外部的構建可以這裏 -

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

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

picture showing print pop up

+0

謝謝你Neil Roger,iam有以下錯誤。 –

+0

謝謝你Neil Roger,但是我遇到了構建錯誤,我已經發布了屏幕截圖,請看看那裏,並幫助我。 http://forums.runrev.com/viewtopic.php?f=49&t=19438&p=98291#p98291 –

+0

非常感謝你Neil Roger,它的工作, –

0

這應該工作,如果你編譯外部並已將其列入到您的項目:

on mouseUp 
    rreHardcopyPrintPDF 
end mouseUp 

如果你有編譯或包括外部問題,請清楚你做了什麼到目前爲止。

+0

感謝烏拉圭回合的答覆。我用xcode 4.6構建了rreHardCopy,並將.lcext文件添加到我的livecode項目中,iam通過發送命令「rreHardcopyIsAvailable」可以看到airprint選項,iam的結果爲true,但對於打印數據iam無法獲得iPad設備上支持AirPrint彈出,打印的IAM使用「rreHardcopyPrintPDF」命令,由我不覺得rreHardCopy命令你mensioned在烏拉圭回合中回覆 –

+0

@RajaRamesh在LiveCode論壇mouseUp事件函數的方式,有人認爲,外部沒有使用XCode,LC SDK R14和LC 6.x的當前組合。從你在這裏的回覆中,我明白你可以編譯外部。我改變了我的回覆,以包含正確的命令。你能看看XCode中的iPhone控制檯消息,看看外部是否報告了任何東西嗎? – Mark