"giannis" <zz********@freemail.grschrieb:
Is it correct ?
PrintDocument1.DocumentName = "c:\picture.jpg"
PrintDocument1.Print()
No. Add a handler to the 'PrintDocument' object's 'PrintPage' event and
place the code below in the event handler:
\\\
Using img As Image = Image.FromFile("C:\picture.jpg")
e.Graphics.DrawImage(img, ...)
End Using
///
Then simply call the 'PrintDocument''s 'Print' method.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>