Results 1 to 3 of 3

Thread: VB Equivilant of Printer.Print

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262

    VB Equivilant of Printer.Print

    Guys,

    I am beginning the move from VB to .Net and am going for C# as my language of choice. I have converted an application that I wrote in VB6 and cleaned it all up and made it so much more efficient with C# but I am at a loss for trying to get some info printed.

    In the VB6 app, I just used Printer.Print and printed out a neat looking form for internal use here at work, quick and dirty and fast. I dont need anything fancy. The app has text boxes that calculates some figures for engineering, then I need to print whats in the text boxes so it can be used elsewhere.

    How can I do this in C#. I have looked in a lot of places and cant seem to find out what I am looking for. Do I need to use a data report or anything like that? I searched the C# forum but came up empty.

    Thanks in advance and I would appreciate any help or nudging in the right direction to help get me going.

    Thanks,

    Jerel

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Check into the System.Drawing.Printing namespace, specifically the PrintDocument class.

    Here's a link to get you started.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262
    Thanks alot. I will head that direction.

    Jerel

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