Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# PDF printing form
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
Comments
Joan Murt at 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
good
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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hello,
 
You can do that in C# using the Visual Basic Power Packs.
 
http://msdn.microsoft.com/en-us/vstudio//bb735936.aspx[^]
 
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;
 

Valery.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 370
1 Sergey Alexandrovich Kryukov 195
2 Prakriti Goyal 177
3 jlopez788 134
4 _Amy 110
0 OriginalGriff 6,762
1 Sergey Alexandrovich Kryukov 5,539
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2014
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