VB codings to take print out

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreekandan
    New Member
    • Nov 2006
    • 98

    VB codings to take print out

    Hi

    I want the VB6 codings to take the print out.
    So kindly reply me
  • sreekandan
    New Member
    • Nov 2006
    • 98

    #2
    VB Coding

    hi everyone,
    I want the VB6 code to take the print out of whole form.
    So kindly reply me.

    Comment

    • hariharanmca
      Top Contributor
      • Dec 2006
      • 1977

      #3
      Originally posted by sreekandan
      Hi

      I want the VB6 codings to take the print out.
      So kindly reply me

      Don't Repeat Questions

      Specify properly, I gave solutions on that, just Search it
      Ok

      Comment

      • sreekandan
        New Member
        • Nov 2006
        • 98

        #4
        Originally posted by hariharanmca
        Don't Repeat Questions

        Specify properly, I gave solutions on that, just Search it
        Ok
        You have given the codings.I tried that code.But i couldn't connect to the printer.
        So i want code with detail.So kindly reply me

        Comment

        • hariharanmca
          Top Contributor
          • Dec 2006
          • 1977

          #5
          Originally posted by sreekandan
          You have given the codings.I tried that code.But i couldn't connect to the printer.
          So i want code with detail.So kindly reply me
          You din not connect printer???

          ok

          Open App.path & "\NotpadFile.Tx t" For Output As #1 ' Open file for output.
          Print #1, Print String
          Print #1, Print String
          Print #1, Print String
          Print #1, Print String
          Print #1, Print String
          Close #1


          -Print String - will use what you want to print

          If you Open the NotepadFile you can see the printing format

          and to print.... (Use the bellow coding)


          Open App.path & "\BatFile.b at" For Output As #1 ' Open file for output.
          Print #1, "Type " & App.path & "\NotpadFile.Tx t" & ">prn" Close #1



          OR


          Open App.path & "\BatFile.b at" For Output As #1 ' Open file for output.
          Print #1, "copy " & App.path & "\NotpadFile.Tx t" & " " & PrinterShareNam e
          Close #1


          Shell App.path & "\BatFile.b at", vbHide

          Comment

          • sreekandan
            New Member
            • Nov 2006
            • 98

            #6
            Originally posted by hariharanmca
            You din not connect printer???

            ok

            Open App.path & "\NotpadFile.Tx t" For Output As #1 ' Open file for output.
            Print #1, Print String
            Print #1, Print String
            Print #1, Print String
            Print #1, Print String
            Print #1, Print String
            Close #1


            -Print String - will use what you want to print

            If you Open the NotepadFile you can see the printing format

            and to print.... (Use the bellow coding)


            Open App.path & "\BatFile.b at" For Output As #1 ' Open file for output.
            Print #1, "Type " & App.path & "\NotpadFile.Tx t" & ">prn" Close #1



            OR


            Open App.path & "\BatFile.b at" For Output As #1 ' Open file for output.
            Print #1, "copy " & App.path & "\NotpadFile.Tx t" & " " & PrinterShareNam e
            Close #1


            Shell App.path & "\BatFile.b at", vbHide
            Again i have the doubt, Why we have to set the batFile?

            Comment

            • hariharanmca
              Top Contributor
              • Dec 2006
              • 1977

              #7
              Originally posted by sreekandan
              Again i have the doubt, Why we have to set the batFile?
              to triger the commani in dos mode

              Comment

              • Killer42
                Recognized Expert Expert
                • Oct 2006
                • 8429

                #8
                Originally posted by sreekandan
                I want the VB6 code to take the print out of whole form.
                Form1.PrintForm

                Comment

                • MMcCarthy
                  Recognized Expert MVP
                  • Aug 2006
                  • 14387

                  #9
                  Originally posted by Killer42
                  Form1.PrintForm
                  I am merging this thread with your other thread. Please do not double post.

                  ADMIN

                  Comment

                  Working...