on printCards
## Path to the pdf file we want to create
put specialFolderPath("documents") & "/UserGuide.pdf" into tPDFPath
open printing to pdf tPDFPath
wait 0 millisecs with messages
if the result is "Cancel" then
## The user has cancelled printing
exit printCards
else
## Print the card into the printable area
put the number of cards of this stack into iNumCards
repeat with x=1 to the number of cards of this stack
put the number of card x into Card_Numb
print card Card_Numb of this stack into 0,0,595,842
answer the result
wait 0 millisecs with messages
print break
wait 0 millisecs with messages
end repeat
end if
close printing
answer the result
wait 0 millisecs with messages
end printCards
Sorry. Appear "print failed" into the Result. No crash, simply end with the PDF uncompleted.
The card have two text fields that load HTML source in monospaced font.
No images. Only text.
Checking the same stack on 8.1.7, then print correctly to PDF, but on 7.0.6 don't work.
But I want keep running on 7.0.6 if is posible.