open printing with dialog -- Windows equiv?

Mark Talluto userev at canelasoftware.com
Fri Nov 19 15:48:50 EST 2004


On Nov 19, 2004, at 12:40 PM, Frank D. Engel, Jr. wrote:

> The "open printing with dialog" command does not display a print 
> dialog under Windows (as per the docs, as well as it simply not 
> working, which is why I read this in the docs); is there any way to 
> display the print dialog under Windows when doing this type of 
> printing?
>
> Thank you!


Hi Frank,

Here is a little snippet from one of my projects that manages printing 
on both platforms:

if the platform is "MacOs" then
     set the printmargins to 36,36,36,36
     open printing with dialogs
     if the result is empty then
       put the num of cards into nCards
       repeat with y = 1 to nCards
         print card y
       end repeat
       close printing
     end if
   end if

   if the platform is "win32" then
     set the printmargins to 36,36,36,36
     answer printer
     if the result is empty then
       put the num of cards into nCards
       repeat with y = 1 to nCards
         print card y
       end repeat
       close printing
     end if
   end if



More information about the use-livecode mailing list