Print card fails first time then works usually
Posted: Mon Jul 14, 2014 4:27 pm
Hi! I"m working on a Mac OS app. I read a student's test results from a database and put them into a field on a card. I go invisibly to the cd, then issue a print this card command. The first time I issue the print card command, nothing happens. If I repeat the command, it usually works.
I've tried putting in a confirmation answer step -- which is after the move to the invisible card. Same results. So, for now, I go to the card, show a button and message telling the student to manually print the results if it doesn't work. Then, I issue the print card command. If I do it the other way around, the rest of the code doesn't execute.
I have experimented with
open printing
close printing
This works, but prints a blank page each time, which I don't want.
I'm not new to this kind of programming, but relatively new to Livecode. (Years with ToolBook.)
I should say that I've tested this both in standalone and development. From 2 different Macs (both running Mac OS 10.9.3). This is Livecode 6.6.2. Different printers, too. One network; one USB. No difference.
Any ideas greatly appreciated!
I've tried putting in a confirmation answer step -- which is after the move to the invisible card. Same results. So, for now, I go to the card, show a button and message telling the student to manually print the results if it doesn't work. Then, I issue the print card command. If I do it the other way around, the rest of the code doesn't execute.
I have experimented with
open printing
close printing
This works, but prints a blank page each time, which I don't want.
I'm not new to this kind of programming, but relatively new to Livecode. (Years with ToolBook.)
I should say that I've tested this both in standalone and development. From 2 different Macs (both running Mac OS 10.9.3). This is Livecode 6.6.2. Different printers, too. One network; one USB. No difference.
Any ideas greatly appreciated!