Screen flashing when printing

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bonbon
Posts: 62
Joined: Thu Jul 17, 2008 11:48 pm

Screen flashing when printing

Post by bonbon » 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:

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)

Post Reply