PrintDocument
-
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?
-
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?
Use a scanner and save as bmp ;P
I know the language. I've read a book. - _Madmatt
-
Use a scanner and save as bmp ;P
I know the language. I've read a book. - _Madmatt
Almost funny. By printdocument i mean
System.Drawing.Printing.PrintDocument
-
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?
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:
-
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:
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
-
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
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 theDrawToBitmap
method, but that would leave you without distributing the data over multiple pages.I are Troll :suss:
-
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?
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[^]