Rotating text on output of printer?

Hi!

I am making this small application for my company that is basicly just for filling out a pre-printed form.

Here's what i use to do the printing on the paper


Answer this question

Rotating text on output of printer?

  • MA2005

    I assume you mean 90 degrees. Try setting the PageSettings.Landscape property.


  • musafir-a Voyager

    Ah,

    I have tried to play around with all kinds of different settings. But it seems like if i change for example

    e.Graphics.DrawString(TextBox2.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(65, 137, 74, 20))

    to

    e.Graphics.DrawString(TextBox2.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(665, 137, 74, 20))

    And set the printer to print in landscape mode, i don't get anyting printed on the paper. The printer acts like its going to print but it's just blank. If i set the y-parameter to a lower number it prints, in landscape and everything, but not on the proper cords.

    Basicly this is a folded A4 which the text needs to be fitted to the right hand side of the paper.

    Can i somehow set the margin widths and then use the same drawstring cords as before

    If someone has the time to do this i would appriciate an example on how to do this.

    Best regards,

    Math


  • Rotating text on output of printer?