在vb 2008中打印图像 [英] printing an image in vb 2008

查看:67
本文介绍了在vb 2008中打印图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在vb 2008中打印图像.我想使用图像,但我不希望它来自我的用户区域,因为软件将被刻录到cd,并且我希望图像在打印时显示在页面上用户单击打印.

感谢您的任何提前帮助

amir



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

推荐答案

如果您有图像以及图像的路径,则可以从任何可读的位置打印图像,即不仅仅是从您拥有的区域打印图像
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.


您可以将图像添加到您的应用程序资源,从那里加载它,然后打印它.
You can add an image to your app resources, load it from there, and print it.


所以如果我说打印来自"C://users/..."的图像,则打印将始终查找指定的文件,不是吗?但是我想将图像放在vb的Windows窗体中,所以我可以告诉它从Windows窗体打印图像.我该怎么办?
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?


这篇关于在vb 2008中打印图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆