Results 1 to 5 of 5

Thread: [RESOLVED] VS 2008 Print a form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2012
    Location
    Omaha
    Posts
    17

    Resolved [RESOLVED] VS 2008 Print a form

    Hi All,

    I need to print a form in VB.net 2008. I get my data from a SQL table and it displays well. For the Summary, I can simply use PrintDocument and it works very well.

    My problem is in the Detail Report. For each Supervisor, I have to add the actual workers and their data. A supervisor could have 3 or 30 workers. So then the issue is that it runs onto multiple pages. I need to add a header (title of report one line only) and then a footer with the page number and the date/time of printing.

    Attached is what the Summary looks like now.

    For each employee, I need to add a row with their number, name and hire date
    then rows like below. Each worker could have 4 or 5 rows depending on the op codes they worked in that week and I need a total of all.
    type(total or detail) / Op Code / Goal Units / Units Proc / Unit Errors / On Std Hrs / Off Std Hrs / Performance / Accuracy / On Std %

    So my question is how do I make VS 2008 print that report for me?

    All your help is greatly appreciated.

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,196

    Re: VS 2008 Print a form

    It's really your decision. You can do it with PrintDocument but it's not a simple task. Or, you could create a rdlc report (reportviewer) or a Crystal Report or some other third party reporting tool. btw - Crystal Report does not work with the VB Express edition.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2012
    Location
    Omaha
    Posts
    17

    Re: VS 2008 Print a form

    Thank you. I am not familiar with the reportviewer. I will google it and see if I can find some help. If you have any other hints to point me in the correct direction I appreciate it!

  4. #4
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,196

    Re: VS 2008 Print a form

    I don't know which version of vs 2008 you have but Reportviewer usually comes with it. You shouldn't have any problems finding example online.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Nov 2012
    Location
    Omaha
    Posts
    17

    Re: VS 2008 Print a form

    Thank you! Got me headed in the right direction!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width