Re: Print picture from file
You could print it yourself in code or you could use Process.Start to have the file printed externally by the default application. The second option is equivalent to right-clicking the file in Windows Explorer and selecting Print. Note that you don't get to choose the app though. Do you have a preference?
Re: Print picture from file
How would it work if i print it in code?
I don't want any dialog box to appear. i just want it to print.
thanks!:)
Re: Print picture from file
Quote:
Originally Posted by
vbginner
How would it work if i print it in code?
I don't want any dialog box to appear. i just want it to print.
thanks!:)
You would create a PrintDocument, call its print method, handle its PrintPage event and then call e.Graphics.DrawImage in the event handler. Merrion has posted a beginners guide to printing in the VB.NET CodeBank forum, so you might like to check that out for some guidance.
Re: Print picture from file
Hi thanks for the help, but i'm a newbie, so i don't quite understand what your'e saying. Can you please give me an example in code to make things easier?
thanks alot!:)
Re: Print picture from file
No, I'm not going to provide an example when I've already directed you to where you can find the information you need.
Quote:
Merrion has posted a beginners guide to printing in the VB.NET CodeBank forum, so you might like to check that out for some guidance.
Have you gone to the VB.NET CodeBank forum and looked for it? There's a link to that forum at the top of the VB.NET forum home page or you can use the list of all forums on the site home page. Finding that information has nothing to do with programming so being a newbie is not a problem. If you can use the web, you can find that printing guide.