Printing cards using runrev 4.0 web file

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Printing cards using runrev 4.0 web file

Post by bsouthuk » Wed Aug 26, 2009 12:18 pm

Hi

I have developed an application in run rev studio 3.5. I tested my application as a web based application using runrev 4.0 pre beta and it works as it would do if it was a standalone application which is very impressive.

The only part of my application that doesnt work when ran as a webfile is my print card button. The script I use to print my cards is:

Code: Select all

 on mouseUp 
    set the printRotated to true 
    open printing with dialog 
    if the result is "Cancel" then exit mouseUp 
    set the printScale to .4 
    set the printMargins to 36,36,36,36 --1/2 inch margins 
    set the printGutters to 18,18 --1/4 inch gutters 
    repeat with i = 1 to number of cards 
      print card i 
    end repeat 
    close printing -- sends job to printer 
  end mouseUp
Do I have to modify the printing script as I am now running my application as a web file?

Cheers

Daniel

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Aug 27, 2009 6:32 am

Does it block the revlet when you click on the button? In that case, it's probably the dialog box that is somewhere behind the browser window.
Dialog boxes are a bit of a problem in the current prerelease version.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Post by bsouthuk » Thu Aug 27, 2009 8:31 am

Hi

No it's definitely not that as all other dialogue boxes in my application work - its just the print button that doesn't.

I click on the button and nothing happens basically - even in test mode!

very strange

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Thu Aug 27, 2009 12:15 pm

Confirmed in my own test - printing wasn't possible, even when I explicitly turned on Printing in the Standalone Application - Web settings.
As the revWeb plugin is only an alpha version at this point, this may be normal; I'd keep an eye on it for future releases, and file a bug report if it still fails in the beta faze.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply