Screen flashing when printing
Posted: Sun Aug 09, 2009 8:38 pm
I've got my print routines working ! No-one more surprised than me. Getting picky now ... when I print, the screen flashes through all of the cards which have been produced for the "print preview", even though I have locked the screen. Here's the code behind the "print" button:
- any thoughts please ? (BTW, it's Windows XP)
Code: Select all
on mouseUp
answer printer
if the result is "cancel" then
set the printRanges to "all"
exit mouseUp
end if
put the number of this card into tInitCard
-- start the print job
lock screen
open printing
repeat with temp = 1 to the number of cards of this stack
go to card temp
revPrintField the name of field "PrintContents"
print break
end repeat
-- finish the print job
close printing
go to card tInitCard
unlock screen
set the printRanges to "all"
end mouseUp
- any thoughts please ? (BTW, it's Windows XP)