Re: Printing the whole whole printable area

Tech-Archive recommends: Fix windows errors by optimizing your registry




Peter Duniho wrote:
On Mon, 18 Jun 2007 02:37:43 -0700, Abhay <abhayjoukani@xxxxxxxxx> wrote:

void pd_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawRectangle(Pens.Black,
e.PageSettings.PrintableArea.X, e.PageSettings.PrintableArea.Y,
e.PageSettings.PrintableArea.Width,
e.PageSettings.PrintableArea.Height);
}


this.is exactly what i want to print and its not showing the BOTTOM
and RIGHT Margins

What happens when you use FillRectangle instead? Or pass Width - 1 and
Height - 1 to DrawRectangle?

Note that, just as is the case in on-screen graphics, the coordinate
system is relative to a virtual grid and your rectangle's lines are drawn
just to the right and below of the intersection on this grid defined by
the coordinates of a given point. This means that the right and bottom of
your rectangle are being drawn just outside of the printable area. You
need to inset the right and bottom by a pixel to get the line into the
boundary of the printable area.

Pete

Thanks for your reply Peter but that is not the case according to me
i tried to reduce the pixel by 1 (around 15 infact) then to it dose'nt
show me the RIGHT and the BOTTOM margin

eg :- if the printable area is (Left,Top,Right,Bottom) :-

(16,16,818,1068) i have to reduce it to say (16,16,803,1053) then only
it prints out the rectangle correctly

.



Relevant Pages

  • Re: Vanskas Beethoven symphonies on BIS
    ... those margins in projection is simply to destroy the movie. ... I always assumed the masking was at the top and bottom -- ... Masking should always be at the sides, not at the top and bottom. ...
    (rec.music.classical.recordings)
  • Re: changing top and bottom margins in Word 2007 error: Settings you chose for left and right margi
    ... On the Page Layout tab, in the Page Setup group, choose Columns. ... bottom of the menu, choose More Columns..., which opens the Columns dialog. ... and bottom margins from 1" to .75" to make the document I am working ... I'm not changing right or left (which the error message ...
    (microsoft.public.word.application.errors)
  • Re: Question for the master Roy G
    ... Roy G wrote: ... and software and Epson hasn't responded for my requests for help. ... I only use it to get equal margins at left and right of Landscape shots. ... Unequal margins at top and bottom of Portraits are not a problem, ...
    (rec.photo.digital)
  • Re: Change paper size; Word changes to invalid margins
    ... Top and bottom 1, ... "One or more margins are set outside the printable ... If Word determines this from the print driver, why can't Word display it to ... change paper size to other custom sizes. ...
    (microsoft.public.word.newusers)
  • Re: Question for the master Roy G
    ... Make your colour Management selections if any and click OK. ... This all means you will get a very slight crop off all sides. ... I only use it to get equal margins at left and right of Landscape shots. ... Unequal margins at top and bottom of Portraits are not a problem, ...
    (rec.photo.digital)