Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
hi,

i want to print an image in vb 2008. i want to use an image but i don't want it to come from my user area as the software will be burned to a cd and i want the image to print on the page when the user clicks print.

thanks for any help in advance

amir
Posted

If you have an image, and a path to it, you can print it from anywhere you can read, that is, not just from the areas you have write access to.
 
Share this answer
 
You can add an image to your app resources, load it from there, and print it.
 
Share this answer
 
so if i say print an image from "C://users/..." then the print will always look for that file specified wont it? but i want to have the image somewhere within the windowsform of vb so i can just tell it to print the image from the windowsform. how can i do that?
 
Share this answer
 
Comments
Christian Graus 16-Jul-10 18:00pm    
Don't press 'answer' to ask questions, edit your post, or comment on mine.
Sandeep Mewara 17-Jul-10 1:19am    
Reason for my vote of 1
Not an answer. Should be a comment to an answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900