是否可以通过 Windows Phone 7 以编程方式填充网页上的输入字段,然后保存输出图像?
我正在尝试寻找一个免费的在线服务,当我输入数字(UPC 等)时,该服务将为我生成条形码图像。到目前为止,我只找到了这个网站:
和他们并没有真正的API。他们在该页面上确实有一个表单,我想知道是否有一种方法可以让我的 Windows Phone 应用程序以编程方式将信息输入到表单中,然后在手机屏幕上显示生成的图像。该页面确实将条形码生成器列为“免费服务”,我不会反对在我的应用程序中为它们提供道具。
经过进一步检查,它看起来像是一个 javascript 函数正在调用一个 asp 文件,如下所示:
var cp = new cpaint();
...
cp.call('buildbarcode.asp', 'BuildBarcode', BuildBarcodeCallback, barcode, symbology, fileFormat);
直接从我的应用程序调用 buildbarcode.asp 是否公平(甚至可能)? c# 中是否有相当于 cpaint 的工具?
I'm trying to find a free online service that will generate a barcode image for me, when I enter the number (UPC, etc). So far I have only found this site:
and they don't really have an api. They do have a form on that page, and I was wondering if there was a way my windows phone app could programmatically enter information into the form, and then show the resulting image on the phone screen. The page does list the the barcode generator as "a free service", and I would not be averse to giving them props in my app.
On further inspection, it looks like a javascript function is calling an asp file, like so:
var cp = new cpaint();
...
cp.call('buildbarcode.asp', 'BuildBarcode', BuildBarcodeCallback, barcode, symbology, fileFormat);
Would it be fair (or even possible) to call buildbarcode.asp directly from my app? Is there an equivalent of cpaint for c#?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为在您的应用程序中生成条形码会更容易。 codeplex 上有许多开源条形码工具。甚至还有一款可以使用 Wp7 相机读取条形码。
I think it would be easier to generate the barcodes in your application. There are a number of open source barcode tools at codeplex. There's even one there for reading barcodes with the Wp7 camera.
我不知道是否需要填写一些字段并截取屏幕截图,但您也许可以使用类似此库的内容来生成条形码:
http://www.codeproject.com/KB/graphics/BarcodeLibrary.aspx
I dont know if there's something to fill in the fields and take a screenshot, but you might be able to use something like this library for generating barcodes:
http://www.codeproject.com/KB/graphics/BarcodeLibrary.aspx