--- Bill Vlahos <[EMAIL PROTECTED]> wrote: > Thanks Jan. > > Here is the code I came up with. I want a half inch > (36 pixels) margin > on all sides. > case "Print Window..." > if the printPaperOrientation = "portrait" > then > put item 1 of printPaperSize - 36 into > vX -- 36 = 0.5 > inch margin should be supported on all printers > put item 2 of printPaperSize - 36 into > vY > else > put item 1 of printPaperSize - 36 into > vY -- 36 = 0.5 > inch margin should be supported on all printers > put item 2 of printPaperSize - 36 into > vX > end if > answer printer as sheet > if the result is not "Cancel" then > if (the width of this stack > vX) or > (the height of this > stack > vY) then -- window bigger than paper > if (item 4 of the rect of this card > / vY) > (item 3 of > the rect of this card / vX) then -- which ratio will > be limiting > set the printScale to (vY - 36) > / item 4 of the > rect of this card > else > set the printScale to (vX - 36) > / item 3 of the > rect of this card > end if > else > set the printScale to 1 > end if > set the printMargins to 36,36,36,36 -- > 0.5 inch margin > print this card > end if > break > > The resulting printout includes the menu items above > the window (on a > Mac - not tested on Windows). How do I prevent it? > Bill Vlahos >
To prevent the menu items from showing up in your printout, you will either have to: - hide them before you print and show them again afterwards - use the 'print into rect' command after calculating which area of the card you want to print where on the paper - or use a separate printing stack without menubar but with its 'formatForPrinting' property set to true to ensure that things look crisp when you print on Windows. HTH, Jan Schenkel. Quartam Reports & PDF Library for Revolution <http://www.quartam.com> ===== "As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld) _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
