Re: PrintPaperRectangle

2017-07-04 Thread Paul Hibbert via use-livecode
by finding the printPaperSize, which > correctly returns (for A4 at 100%) "595,842" - a reasonable approximation for > A4 paper converted to inches at 72dpi. > >> Can anyone shed some light on this please. > > Simple answer: it's a bug. At some point the printPaper

Re: PrintPaperRectangle

2017-07-04 Thread Ben Rubinstein via use-livecode
er: it's a bug. At some point the printPaperRectangle has been nobbled to be exactly the same as the printRectangle. I've reported this as http://quality.livecode.com/show_bug.cgi?id=19997 In the meantime, the printPaperSize is your friend, provided the page setup is at default scale and or

Re: PrintPaperRectangle

2017-07-01 Thread Paul Dupuis via use-livecode
On 7/1/2017 10:05 AM, Terence Heaford via use-livecode wrote: > Sorry about that, I should have realised (must be slow on the uptake today) > but…. > > > I still get the grey area when I print the card. > Do you have any insight into why this should happen? > (see thread “Capturing screen into

Re: PrintPaperRectangle

2017-07-01 Thread Terence Heaford via use-livecode
Sorry about that, I should have realised (must be slow on the uptake today) but…. I still get the grey area when I print the card. Do you have any insight into why this should happen? (see thread “Capturing screen into image”)? Thanks Terry > On 1 Jul 2017, at 14:02, Paul Dupuis via

Re: PrintPaperRectangle

2017-07-01 Thread Paul Dupuis via use-livecode
This is correctly reporting A4 with an 8px non-printable area around the edge: 8.27 × 11.69 inches 8.2772 595.44 210 × 297 mm11.69 72 841.68 8,8,834,587 834 8 842 l,t,r,b 587 8 595 A4 is 210 x

Re: PrintPaperRectangle

2017-07-01 Thread Terence Heaford via use-livecode
Thanks for your explanation. It does seem logical. But where does 587 come from in 8,8,834,587 ? A4 is 553. Thanks Terry > On 30 Jun 2017, at 20:56, Bob Sneidar via use-livecode > wrote: > > Almost no toner based printer can do this. It's called Full

Re: PrintPaperRectangle

2017-06-30 Thread Bob Sneidar via use-livecode
Almost no toner based printer can do this. It's called Full Bleed, and think about what happens to the excess toner that has to go off the edge of the paper to do that. Ink based printers are designed to do this because they can just catch the ink that gets oversprayed, and you can clean/empty

Re: PrintPaperRectangle

2017-06-30 Thread Paul Dupuis via use-livecode
On 6/30/2017 2:17 PM, Terence Heaford via use-livecode wrote: > LC 8.1.4, MacOS 10.12.5 > > Print Paper Rectangle returns 8,8,834,587 for A4 Landscape. > > This does not seem to match the description in the dictionary? > > "The printPaperRectangle property contains fou

PrintPaperRectangle

2017-06-30 Thread Terence Heaford via use-livecode
LC 8.1.4, MacOS 10.12.5 Print Paper Rectangle returns 8,8,834,587 for A4 Landscape. This does not seem to match the description in the dictionary? "The printPaperRectangle property contains four comma-separated integers and is in points. The default value reflects the default v

Re: printPaperRectangle LC7

2015-03-23 Thread Terence Heaford
On 22 Mar 2015, at 22:08, Paul Hibbert p...@livecode.org wrote: I really can't see why anybody would want the formatting printer to be different from the destination printer, but that's probably just me. What seems to happen is that when you select a printer via. the print dialogue box

Re: printPaperRectangle LC7

2015-03-23 Thread Terence Heaford
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

Re: printPaperRectangle LC7

2015-03-23 Thread Paul Hibbert
Thank you for the notes, I have tried setting the defaults, but unfortunately it still can't do what I need, I have 5 different printers and all but two have very different paper margins. I realise now that it's not LC's fault when things go awry, but at least I found an odd workaround for the

Re: printPaperRectangle LC7

2015-03-22 Thread Terence Heaford
On 22 Mar 2015, at 01:28, Paul Hibbert p...@livecode.org wrote: Long answer to a short question, skip this if you're not interested in printing on a Mac… Paul, Thanks for the feedback. So, I was exploring this method of printing to overcome the fact that print card [from topLeft to

Re: printPaperRectangle LC7

2015-03-22 Thread Terence Heaford
On 22 Mar 2015, at 01:28, Paul Hibbert p...@livecode.org wrote: Long answer to a short question, skip this if you're not interested in printing on a Mac… The mystery is growing: printPaperRect LC 7.0.3 First pass = 18,18,801,577 Subsequent passes = 8,8,834,587 LC 6.7.3 First pass =

Re: printPaperRectangle LC7

2015-03-22 Thread Terence Heaford
On 22 Mar 2015, at 01:28, Paul Hibbert p...@livecode.org wrote: Long answer to a short question, skip this if you're not interested in printing on a Mac… The issue for me seems to be that the first time I open the page setup dialog box my default printer is not selected, “Any Printer”

Re: printPaperRectangle LC7

2015-03-22 Thread Terence Heaford
On 22 Mar 2015, at 11:06, Terence Heaford t.heaf...@icloud.com wrote: How can I ensure that the default printer is showing in the Page Setup Dialog Box? There appears to be a bug in LC 7’s implementation of the Page Setup Dialogue Box. On LC 6.7.3 if you select a printer in the Page

Re: printPaperRectangle LC7

2015-03-22 Thread J. Landman Gay
On 3/22/2015 2:47 PM, Paul Hibbert wrote: I couldn't find a bug report to cover this issue, so I'll submit one just to see what LiveCode's answer is, and to see if there is any chance of a fix. It might be related to this one: http://quality.runrev.com/show_bug.cgi?id=9023 Marked as closed,

Re: printPaperRectangle LC7

2015-03-22 Thread Paul Hibbert
You are just slowly coming to the same conclusions I did, apart from the fact that this is an Apple bug, not a LC bug, I'm sure if you continue with LC6.7.3 you will see the same problems occur, I just tested it again and saw the same problem, and in LC 5.5.5 too. It also happens in Apple's own

Re: printPaperRectangle LC7

2015-03-22 Thread Terence Heaford
On 22 Mar 2015, at 19:47, Paul Hibbert p...@livecode.org wrote: You are just slowly coming to the same conclusions I did, apart from the fact that this is an Apple bug, not a LC bug, I'm sure if you continue with LC6.7.3 you will see the same problems occur, I just tested it again and saw

Re: printPaperRectangle LC7

2015-03-22 Thread Terence Heaford
Paul any others interested, Here is a snippet from the thread below that may help: http://developer.apple.com/documentation/Printing/Conceptual/ About_MacOSX_Printing/abtprt_chap2/chapter_2_section_2.html#// apple_ref/doc/uid/20001017-CH205-TPXREF127

Re: printPaperRectangle LC7

2015-03-22 Thread Paul Hibbert
Particularly: It’s important to keep in mind that the formatting printer does not specify the destination printer—that is, the printer to which the document is printed. The destination printer is specified in the Print dialog, which by default is the default printer in Print Center. The

Re: printPaperRectangle LC7

2015-03-21 Thread Terence Heaford
Here’s an image on DropBox that demonstrates the problem. The left margin is clearly less than the right margin. I don’t know why? https://dl.dropboxusercontent.com/u/98788898/LiveCode/printing.png https://dl.dropboxusercontent.com/u/98788898/LiveCode/printing.png Thanks Terry

printPaperRectangle LC7

2015-03-21 Thread Terence Heaford
This is the width of a group I am printing calculated by me using a ratio eventually passed to printScale printPaperRectangle = 8,8,834,587 returned by LC printMargins = 10,10,10,10 the print margins I previously set. The relationship between the chart width calculation (814

Re: printPaperRectangle LC7

2015-03-21 Thread Terence Heaford
the printer.) Yes, the docs are poorly worded if this is the case. I experimented to come to the conclusion the docs are poorly worded and this, from visual inspection, seems to work put the printPaperRectangle into tPaperRect put item 1 of tPaperRect into tPaperLeft put item 2 of tPaperRect

Re: printPaperRectangle LC7

2015-03-21 Thread Terence Heaford
On 21 Mar 2015, at 18:17, J. Landman Gay jac...@hyperactivesw.com wrote: So your printer has a print area of 8,8,834,587 I have just identified an issue. On my first pass through the routines the printPaperRectangle = 18,18,801,577 and the chart is offset to the left. On my second

Re: printPaperRectangle LC7

2015-03-21 Thread J. Landman Gay
On 3/21/2015 3:38 AM, Terence Heaford wrote: The docs state The four numbers represent the left, top, right and bottom of the rectangle being printed to. The rectangle is relative to the top-left of the page, and the left and top will currently always be 0. This isn't very well written. What

Re: printPaperRectangle LC7

2015-03-21 Thread Paul Hibbert
On Mar 21, 2015, at 1:44 PM, Terence Heaford t.heaf...@icloud.com wrote: Why would printPaperRectangle not be 8,8,834,587 after I set the pagesetup to landscape on the first pass? Long answer to a short question, skip this if you're not interested in printing on a Mac… If you changed