-3

I want to print the contents of a group of different Windows Form controls. I've been reading and printing always rely heavily on WinForms (like capturing the screen or using a RichTextBox) or printing a document file directly (like PDF or word doc)

I want to print this current view. Ideally, the layout should be the same when printed:

(Click for larger view)
image

How can I print programmatically? Or if that's not the best way to do it, how can I print the above (screenshot) efficiently?

Sylpheed
  • 267
  • 1
  • 12
  • I have edited your title. Please see, "[Should questions include “tags” in their titles?](http://meta.stackexchange.com/questions/19190/)", where the consensus is "no, they should not". – John Saunders Dec 02 '13 at 15:32
  • How can you do _what_ programmatically? If you've been reading, then you know how printing works. What's your question? – John Saunders Dec 02 '13 at 15:33
  • possible duplicate of [Printing a Form/UserControl in C#](http://stackoverflow.com/questions/19165294/printing-a-form-usercontrol-in-c-sharp) – BartoszKP Dec 02 '13 at 15:36
  • Sorry if my question isn't that clear. I've been wondering how I can print the data behind a group of different controls. The one I've read relies on RichTextBox or it tries to capture the screen. – Sylpheed Dec 02 '13 at 15:37
  • I did this before in visual basic, what I used is crystal reports – Bryan P May 28 '14 at 00:34

1 Answers1

0

There are several options - Non is trivial though (may be except #2):

  1. Report Generator like Crystal Reports. See here here for Crystal Reports download link and other options. Of course you could opt for a 3rd party tool instead.

  2. Generate the data as CSV file and print it from Excel

  3. Write text as RTF

  4. Generate result as HTML

  5. Use MS-Access

  6. Other options...

NoChance
  • 5,632
  • 4
  • 31
  • 45
  • I tried capturing the UserControls for now. I didn't like it but I was able to print it out. #2 - seems very viable for me because I don't really need a fancy-looking report. #1 - I'll take a look at it. Seems promising. Thanks! – Sylpheed Dec 06 '13 at 18:26