Printing Cards to PDF
Nakia.Brewer at westrac.com.au
Tue Jun 24 10:57:27 CEST 2014
I have a mobile App (iOS) that prints 2 template cards from a sub stack to a 2 page pdf file.
This has worked flawlessly in LC5.5.3 but seems to fail in 6.6.2 (have tried a few variants of 6.6.2).
When I say 'fail' I mean that the first card seems to print at half size (in top LH Quadrant) but the second card prints perfectly.....
(Happy to send someone the generated PDF).
I'm thinking it may be something to do with the res independence stuff added in LC 6 but am not sure
(Weird that card 2 prints correct when its the same size etc as card 1)
I appreciate any ideas....
anyway code below.
put ("Print" & return & "Print2") into tCardsToPrint
-- Lock screen so user doesn't see card change
open stack "Printing"
open printing to pdf tFilePath
if the result is "Cancel" then exit saveInspection
repeat with x = 1 to the number of lines of tCardsToPrint
print card (line x of tCardsToPrint) of stack "Printing" into 110,50,500,700
close stack "Printing"
send resetForm to me in 0 milliseconds
send buildPendingTasks to this stack in 0 milliseconds
COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.
More information about the use-livecode