Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

Printing in VS2008 C#

I am upgrading my application from vb6 to vs2008 C# using Microsoft.VisualBasic.powerpacks.
How would I go about converting the following code to something that would print a form in C#.
Or is there a better way?

For Each prnPrinter In Printers
    If prnPrinter.DeviceName = gstrReportPrinter Then
        Set Printer = prnPrinter
        Exit For
    End If
Next
PrintForm

I have added: using Microsoft.VisualBasic.PowerPacks.Printing;

Thanks for your help!!
Jerry
0
JDL129
Asked:
JDL129
  • 2
1 Solution
 
Tapan PattanaikSenior EngineerCommented:
0
 
JDL129Author Commented:
tapanpattanaik!!!!!!!!
Thanks for the response!!  

I can't seem to find any of the examples that will print a form in C#.  All that I have found print the text from a text file.

Any other suggestions?

Thanks,
Jerry
0
 
JDL129Author Commented:
Thanks for the attempt!!!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now