how can I print a report of the page if it has a many text boxes that I want to print it in one decoment

Printing One Text Box:

public void PrintDocument()
{
        //Create an instance of our printer class
        PCPrint printer = new PCPrint();
        //Set the font we want to use
        printer.PrinterFont = new Font("Verdana", 10);
        //Set the TextToPrint property
        printer.TextToPrint = Textbox1.Text;
        //Issue print command
        printer.Print();
}

As you can see in the above example, all we are doing is printing a string. So to print more than one format your string in the desired style... simples :)
e.g.
printer.TextToPrint = String.Format("{0}\n{1}", Textbox1.Text, Textbox2.Text);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.