C#.net : Print issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pioneer

    C#.net : Print issue

    Hi,
    I got to print a Windows form, which span across 2-3 pages.

    This form is output of C# program.

    How to do this in C#?

    The solutions I got till now, were all pointing to taking a
    screenprint programmaticall y and then printing it.

    this would not work in my case.

    Could you point to me to appropriate solution?

    Thanks
    Pioneer
  • =?ISO-8859-1?Q?G=F6ran_Andersson?=

    #2
    Re: C#.net : Print issue

    Pioneer wrote:
    Hi,
    I got to print a Windows form, which span across 2-3 pages.
    >
    This form is output of C# program.
    >
    How to do this in C#?
    >
    The solutions I got till now, were all pointing to taking a
    screenprint programmaticall y and then printing it.
    >
    this would not work in my case.
    >
    Could you point to me to appropriate solution?
    >
    Thanks
    Pioneer
    If you want to print the form, you use the DrawToBitmap method to draw
    the form on a Bitmap object, which you then can print parts of.

    If you want to put the contents of the form onto printed pages, you do
    just that. Get the values you want from the form and draw them using the
    graphics object that is provided for printing.

    --
    Göran Andersson
    _____
    Göran Anderssons privata hemsida.

    Comment

    Working...