Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Printing Files

Printing Files

Scheduled Pinned Locked Moved Visual Basic
help
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cwayman
    wrote on last edited by
    #1

    Hey I am having trouble, i have a filepath and i am trying to ad the following steps to a button click: - Select a Printer By name - Send it my file path - Print file Any help would be greatly appreciated thanks you for your time Chris

    C U D 3 Replies Last reply
    0
    • C cwayman

      Hey I am having trouble, i have a filepath and i am trying to ad the following steps to a button click: - Select a Printer By name - Send it my file path - Print file Any help would be greatly appreciated thanks you for your time Chris

      C Offline
      C Offline
      cwayman
      wrote on last edited by
      #2

      Possibly using a process?

      1 Reply Last reply
      0
      • C cwayman

        Hey I am having trouble, i have a filepath and i am trying to ad the following steps to a button click: - Select a Printer By name - Send it my file path - Print file Any help would be greatly appreciated thanks you for your time Chris

        U Offline
        U Offline
        User 1496336
        wrote on last edited by
        #3

        You can do that with Crystal Report. That´s a VB component to print. Very easy to use.

        L 1 Reply Last reply
        0
        • U User 1496336

          You can do that with Crystal Report. That´s a VB component to print. Very easy to use.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          How to do that? Do you have any document or resource on the web to demonstrate about this technique?


          A thousand mile of journey, begin with the first step. APO-CEDC Save Children Norway-Cambodia Office

          U 1 Reply Last reply
          0
          • L Lost User

            How to do that? Do you have any document or resource on the web to demonstrate about this technique?


            A thousand mile of journey, begin with the first step. APO-CEDC Save Children Norway-Cambodia Office

            U Offline
            U Offline
            User 1496336
            wrote on last edited by
            #5

            You can see this page: http://www.businessobjects.com/products/reporting/crystalreports/appdev.asp . But it is really easy. In VB you have to add the Crystal Report Component; in VB.NET it is named ReportDocument. The file you want to print has to be a crystal report document (you can download the software in the site above). Then you have just to work with properties and methods. Ex in VB.NET: reportDocument1.PrintOptions.PrinterName = ""

            1 Reply Last reply
            0
            • C cwayman

              Hey I am having trouble, i have a filepath and i am trying to ad the following steps to a button click: - Select a Printer By name - Send it my file path - Print file Any help would be greatly appreciated thanks you for your time Chris

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              File path to what kind of document? There printer object cannot interpret every kind of document. Actually, it can't interpret ANY kind of document. What you do depends entirely on what you're trying to print. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              C 1 Reply Last reply
              0
              • D Dave Kreskowiak

                File path to what kind of document? There printer object cannot interpret every kind of document. Actually, it can't interpret ANY kind of document. What you do depends entirely on what you're trying to print. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                C Offline
                C Offline
                cwayman
                wrote on last edited by
                #7

                Hey thanks for the feedback. I have an installed PDF printer that i want to send my documents (MS Office Documents) too and also a 'print' command. The printer will do the rest. Does this make it harder or easier to print the files or is the situation still the same? Thanks Chris

                D 1 Reply Last reply
                0
                • C cwayman

                  Hey thanks for the feedback. I have an installed PDF printer that i want to send my documents (MS Office Documents) too and also a 'print' command. The printer will do the rest. Does this make it harder or easier to print the files or is the situation still the same? Thanks Chris

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  That's better. Word will actually have to do the printing. The PDF printer will just render into a .PDF what Word outputs when it prints. If you're just going to convert Word documents, you can use the Word (Office) automation model to load the document, select the printer, then print the document. It's been covered dozens of times in the forum, just search for Word using the "Search comments" link. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups