printPaperRectangle & LC7

Terence Heaford t.heaford at icloud.com
Mon Mar 23 16:39:37 EDT 2015


Paul,

I think I’ve figured out how to make the settings stick and with the correct dimensions:

There is some poor dialogue box design from Apple involved so please be patient while I try to explain.

Firstly open a Page Setup Dialogue Box.

There is a pop up menu at the top titled Settings which has 2 items in it.

1. Page Attributes
2. Save as Default

Select all the settings you require:

Orientation
Paper Size
Scale

and choose your printer in Format For:

DO NOT PRESS OK YET

Now go to the popup menu titled Settings and select “Save as Default”

Now Press OK.

You can now quit LiveCode.

Reopen LiveCode and print using something like:

on mouseUp
   
   answer printer as sheet
   if the result = "cancel" then
      exit mouseUp
   end if

   send "printChart" to group "generalChart"
   
end mouseUp

I have found that LC/Printer has maintained it’s settings from the previous session.

I suspect that using the Page Setup Dialogue Box to apply settings to different printers will result in those being applied if you select a different printer in the answer printer dialogue box.


Hope this helps


Terry










More information about the use-livecode mailing list