Thanks, William.
Turns out there's something on my card that the print command doesn't like.
When I created a new clean stack with nothing but a single button and a single
field on the card, it worked just fine. But with my regular stack, it crashes.
I'll submit a report to RunRev and send them a sample stack that causes the
crash. Thanks for the help.
Chris
On May 31, 2012, at 8:23 AM, William de Smet wrote:
> Hi Chris,
>
> This is my code:
> lock screen
> put specialFolderPath("documents") & "/screenshot.pdf" into tPDFPath
> open printing to pdf tPDFPath
> print this card from 13,6 to 750,753 into 13,6,600,600
> close printing
> unlock screen
>
> Hope this works for you now.
>
> greetings,
>
> William
>
>
> 2012/5/31 Chris Sheffield <[email protected]>:
>> William,
>>
>> I've tried different paths as well, including documents. Doesn't seem to
>> make a difference in this case. Every time my handler hits the "print this
>> card" line the app crashes. Are you able to successfully print a pdf into
>> the documents folder?
>>
>> Thanks,
>> Chris
>>
>>
>> On May 31, 2012, at 4:45 AM, William de Smet wrote:
>>
>>> Hi there,
>>>
>>> I use 'put specialFolderPath("documents") & "/screenshot.pdf" into tPDFPath'
>>> This works fine with me.
>>> I don't use 'temporary folder'.
>>>
>>> greetings,
>>>
>>> William
>>>
>>>
>>> 2012/5/31 Thomas McGrath III <[email protected]>:
>>>> I could not get this to work for me either.
>>>>
>>>>
>>>> -- Tom McGrath III
>>>> http://lazyriver.on-rev.com
>>>> [email protected]
>>>>
>>>> On May 30, 2012, at 4:45 PM, Chris Sheffield wrote:
>>>>
>>>>> So I simply need to print a card to a pdf file. I've looked at the docs,
>>>>> and even viewed Kevin's very handy video from the Small Business Academy.
>>>>> No matter what I try, my app crashes when I try to print the card. Here's
>>>>> my code:
>>>>>
>>>>> put the temporary folder & "/summary.pdf" into tDocPath
>>>>> open printing to PDF tDocPath
>>>>> print this card into the printRectangle
>>>>> close printing
>>>>>
>>>>> All goes well until the third line. Am I doing something wrong, or have I
>>>>> found a nasty bug? Anyone else out there printing to pdf files under iOS?
>>>>>
>>>>> Thanks,
>>>>> Chris
>>>>>
>>>>>
>>>>> --
>>>>> Chris Sheffield
>>>>> Read Naturally, Inc.
>>>>> www.readnaturally.com
>>>>>
>>>>> _______________________________________________
>>>>> use-livecode mailing list
>>>>> [email protected]
>>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>>> subscription preferences:
>>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>>
>>>>
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> [email protected]
>>>> Please visit this url to subscribe, unsubscribe and manage your
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>
>>> _______________________________________________
>>> use-livecode mailing list
>>> [email protected]
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> [email protected]
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode