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. .NET (Core and Framework)
  4. PrintDocument

PrintDocument

Scheduled Pinned Locked Moved .NET (Core and Framework)
graphicsquestion
7 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.
  • M Offline
    M Offline
    Martin Beukes
    wrote on last edited by
    #1

    Hi, Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?

    N L S 3 Replies Last reply
    0
    • M Martin Beukes

      Hi, Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Use a scanner and save as bmp ;P


      I know the language. I've read a book. - _Madmatt

      M 1 Reply Last reply
      0
      • N Not Active

        Use a scanner and save as bmp ;P


        I know the language. I've read a book. - _Madmatt

        M Offline
        M Offline
        Martin Beukes
        wrote on last edited by
        #3

        Almost funny. By printdocument i mean System.Drawing.Printing.PrintDocument

        1 Reply Last reply
        0
        • M Martin Beukes

          Hi, Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?

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

          Martin Beukes wrote:

          Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?

          From your own application, or "any" application? I'm guessing that you want this functionality for "all" applications, and in that case you'd have to download the WinDDK to roll your own printer-driver.

          I are Troll :suss:

          M 1 Reply Last reply
          0
          • L Lost User

            Martin Beukes wrote:

            Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?

            From your own application, or "any" application? I'm guessing that you want this functionality for "all" applications, and in that case you'd have to download the WinDDK to roll your own printer-driver.

            I are Troll :suss:

            M Offline
            M Offline
            Martin Beukes
            wrote on last edited by
            #5

            It is in my own application I need to catch the printdocument before it outputs to the printer and get an image of it. Effectivly a bitmap. like printtoimage or something

            L 1 Reply Last reply
            0
            • M Martin Beukes

              It is in my own application I need to catch the printdocument before it outputs to the printer and get an image of it. Effectivly a bitmap. like printtoimage or something

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

              Martin Beukes wrote:

              I need to catch the printdocument before it outputs to the printer and get an image of it.

              I doubt that it's possible to "catch" the output of the driver. The PreviewPrintController[^] might help in creating a print-preview. Another alternative might be the DrawToBitmap method, but that would leave you without distributing the data over multiple pages.

              I are Troll :suss:

              1 Reply Last reply
              0
              • M Martin Beukes

                Hi, Does anyone know of a way to get an image of a print document and save it to a bitmap file? It is even possible?

                S Offline
                S Offline
                Sebastian Br
                wrote on last edited by
                #7

                Maybe you could inspire yourself using this resource: http://omgili.com/newsgroups/microsoft/public/de/german/entwickler/dotnet/vb/F926EA6F-B957-4842-BE93-C862FBC5E9B3microsoftcom.html[^]

                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