Printing off card

Charles Szasz cszasz at mac.com
Fri Jul 25 11:32:51 EDT 2008


Mark,

Thanks for your super quick reply! Do I incorporate the code below into my
script or does it replace my print code itself?



Mark Schonewille-3 wrote:
> 
> Charles,
> 
> lock screen
> push cd
> print cd
> pop cd
> unlock screen
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> http://economy-x-talk.com
> http://www.salery.biz
> 
> Benefit from our inexpensive hosting services. See
> http://economy-x-talk.com/server.html 
>   for more info.
> 
> On 25 jul 2008, at 17:20, Charles Szasz wrote:
> 
>>
>> I am using Rev 2.9. I have a two card stack. The first card is the app
>> itself. The second card (print card) is the card I use for printing.  
>> The
>> basic information consisting of 16 fields is transferred to the  
>> second card.
>> When I use the following code, the second card appears on the screen  
>> on the
>> Macintosh instead of the first card. I have not tested it yet on  
>> Windows.
>> How can I prevent the second card from appearing after printing?
>>
>> on mouseUp pMouseBtnNo
>>     if field "total" > ""
>>     then
>>          hide group "menubar 1" of card "Print"
>>
>>          if the platform is "macos"
>>          then
>>               open printing with dialog as sheet
>>               set the printmargins to 0,0,612,792
>>               print card "print"
>>               show group "menubar 1" of card "Print"
>>               close printing
>>          end if
>>
>>          if the platform is "win32"
>>          then
>>               set the printmargins to 0,0,612,792
>>               open printing
>>               print marked cards
>>               -- print card "print"
>>               close printing
>>          end if
>>     else
>>          answer information "There is nothing to print."
>>     end if
>>
>> end mouseUp
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 

-- 
View this message in context: http://www.nabble.com/Printing-off-card-tp18653787p18654053.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list