Two different problems. One at a time. Second will be posted once first is solved.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MelinaPayne
    New Member
    • Feb 2010
    • 1

    Two different problems. One at a time. Second will be posted once first is solved.

    here's my code for c#

    private void printButton_Cli ck(object sender, EventArgs e)
    {
    //print form on printer
    Form1.Print = System.Drawing. Printing.PrintA ction.PrintToPr eview;
    Form1.Print();


    i'm trying to print the entire project (Form1), as if it were one picture, but the code isn't working. is it typed wrong?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Well, Forms don't contain Print() methods that I can see.
    So you should probably start by not calling imaginary functions.

    Try going through this article on printing:
    Learn how to programmatically print a copy of the current Windows Form by using the CopyFromScreen method.

    Comment

    • RedSon
      Recognized Expert Expert
      • Jan 2007
      • 4980

      #3
      Dont post your second question in here. Post a new thread with your other question. We don't combine questions into one thread. It makes it impossible to find later.

      Comment

      Working...