vb-form:How to Generate prn files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vamsianil
    New Member
    • Feb 2008
    • 3

    vb-form:How to Generate prn files

    Hi,
    How to generate prn files in vb.net and also print to network printer
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    while printing set the printer name to the full path of the printers location on the network

    printerName = @"\\myNetwork\M yFavouritePrint er";

    you can print it to a file to create a prn using one of the options in the printOptions class (not sure on how to specify the file name)

    Comment

    • vamsianil
      New Member
      • Feb 2008
      • 3

      #3
      thanq but what i want is how to generate(create ) prn files in vb.net



      Originally posted by Shashi Sadasivan
      while printing set the printer name to the full path of the printers location on the network

      printerName = @"\\myNetwork\M yFavouritePrint er";

      you can print it to a file to create a prn using one of the options in the printOptions class (not sure on how to specify the file name)

      Comment

      • Shashi Sadasivan
        Recognized Expert Top Contributor
        • Aug 2007
        • 1435

        #4
        Well, i think the easiest would be to print the document, and set the printOptions so that it prints to a file (you may not need to specify a printername)

        Comment

        • vamsianil
          New Member
          • Feb 2008
          • 3

          #5
          thanq but i want to generate prn files using vb code in windows applications,be cause i want to modify the file according to my requirements.
          so iam asking all of u to generate prn files in vb.net.

          Comment

          Working...