Sorry for the engligh... > > Don't suppose that Paint.Width or Paint.Height are points. But you can be > sure that the number of units of Paint.Width equals Printer.PaperWidth in > millimeters (provided that FullPage is set of course). > > > Then M.Cs say : what about printer natural margins ? How to know them > > ? Is there a way to retrive them ? > > Logically yes, but if I didn't do it, I would say there is a problem. > > Anyway, I have designed and printed a lot of reportS of hundreds of pages on > many many different printers in my previous job. Trust me, you should not > take these margins into account, and always use the full page to print. > > > For exemple he have a paper pattern (caneva) he need to place exactly > > text on it ... on different printers.. but the natural printers > > margins are not taked into account . > > > > For reports or others, we need to be sure to start from O,O to > > pagetolalW, pagetotalH without any margins. But we need to know > > margins to alert the user when he draw sometning > > This is up to the printer driver normally. > > Users know there is a non-printable margin. If they don't, they will learn > quickly at the first print. By not using what the printer driver may report > about its margins, the user have to define its own ONES, and so its > printing will be the same whatever the printer is. WHICH IS A VERY IMPORTANT > THING! > > And think about generating a PDF and then sending it to the printer. When > are the printer margins taken into account? Do you have a margin inside > the PDF, and then ONE MORE margin when printing? > > So, don't use printer margins. Use user-defined margins. > > Of course, if I find a way to get these printer margins accurately, I will > add the needed properties to the Printer class. > > But as I said loudly, this is not a good idea. I'm even thinking about > removing the FullPage property and set it to TRUE by default!
-- Benoît Minisini ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user