简体   繁体   English

从Web浏览器控件打印图像/页面

[英]Printing images/pages from web browser control

I have a form that pulls a static map from google maps in the web browser control (access 2010). 我有一个表单,可从网络浏览器控件(访问2010)中的Google地图中提取静态地图。 The format of the image is .png. 图片格式为.png。 I need for this map image to print when I print the forms. 我在打印表单时需要打印该地图图像。

Can I somehow save the image (embed) with the record? 我可以以某种方式保存图像(嵌入)和记录吗? Link an image control to url? 将图片控件链接到网址吗? Use XML to grab the file from the web and store in the database? 使用XML从Web上获取文件并存储在数据库中?

I'd rather not have to download/link to the images each time. 我不想每次都下载/链接到图像。 I'm running out of ideas and the web is coming up empty. 我的想法不多了,网络空无一人。

Here is an example URL 这是一个示例网址

http://maps.google.com/maps/api/staticmap?center=37.386052,-122.083851&zoom=13&markers=37.386052,-122.083851&size=500x300&sensor=false http://maps.google.com/maps/api/staticmap?center=37.386052,-122.083851&zoom=13&markers=37.386052,-122.083851&size=500x300&sensor=false

and this is the image link/xml 这是图像链接/ xml

<img style="-webkit-user-select: none" src="http://maps.google.com/maps/api/staticmap?center=37.386052,-122.083851&amp;zoom=13&amp;markers=37.386052,-122.083851&amp;size=500x300&amp;sensor=false"> 

Thanks for any advice/tips! 感谢您的任何建议/提示!

You could try downloading the image separately from the web browser control. 您可以尝试从网络浏览器控件中单独下载图像。 As access can't do this natively, have a look at this ... 由于访问不能做到这一点本身,看看这个 ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM