Click here to Skip to main content
12,952,273 members (43,635 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a windows form with lables, tables and textboxes, it looks like an invoice.
im trying to find any funktion to print out the form as it is, it will look like as an invoice.
or another idea is to fins any funktion to export the tabels filles with data to a pdf file that i can print out
Posted 14-Sep-12 4:51am
Joan Murt 14-Sep-12 11:05am
Have you tried anything? are you stuck in any specific issue? we won't give you the code for any of those two things, it is not our way to do things here and moreover your question is too general...

Use the green link "Improve question" that is just under your question to improve it, add more detail and we will be able to help.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can check these[^] for help in general printing, and there are plenty of PDF print drivers available. You can also investigate using one of the free libraries such as iTextSharp[^] for creating PDF direct.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


You can do that in C# using the Visual Basic Power Packs.[^]

The Visual Basic Power pack will add a new group in your toolbox, just drag a PrintForm control on your form.

To print is is very easy :

printForm1.Print(this, PrintForm.PrintOption.ClientAreaOnly);

If you want to show the print preview window just add that line before:
printForm1.PrintAction = System.Drawing.Printing.PrintAction.PrintToPreview;


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,239
CHill60 3,490
Maciej Los 3,083
Jochen Arndt 1,975
ppolymorphe 1,880

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100