iecapt.exe在Web服务器上不起作用.
我正在尝试制作一个可以捕获网页的应用程序.为此,我在我的Web应用程序中使用iecapt.exe.当我在本地主机上运行它时,它可以正常工作,但不能在Web服务器上运行.
无论如何,我可以在Web服务器上运行它还是可以在Web服务器上运行?我不确定.
此应用程序的目的是捕获div或页面并将其另存为Imaage文件(Jpeg或Png).
如果有任何其他方式,我可以实现目标.
谢谢
对不起,我想我应该再解释一下我的问题.我在这里想要做的是让用户选择上传要设置为div背景的图像.现在,用户可以在div上放置多个文本编辑器"并输入文本.
现在,我们有了一个带有背景图像和文本的div.现在,我想将该div导出为.png或.jpeg文件.
I am trying to make a app which can capture a webpage. For that i am using iecapt.exe in my web application. When i am running it in my localhost its working fine but its not working on web server.
Is there anyway i can run it on webserver or does it work on webserver?? I am not sure.
The purpose of this app is to capture the div or page and save it as an Imaage file(Jpeg or Png).
If there in any other way i can achieve the goal.
Thanks
Sorry I think i should explain my problem a bit more. What i m trying to do here is I have give option to the user to upload a image which i am going to set as background of a div. Now user can drop multiple Text Editor on the div and input the text.
Now we have a div with a background image and text in it. Now i want to export that div as it is to a .png or .jpeg file.
^ ]是一门教程,基本上,您需要运行Web浏览器控件并将其指向页面,以使所使用的程序正常工作或使任何代码正常工作.您在服务器上且尚未呈现HTML的事实是您的控件无法正常工作的原因.并不在乎您是否在Web服务器上,但确实在乎它希望与指向页面的Web浏览器一起使用,而不是与服务器作为文本发送出去的Web服务器一起使用.
Here[^] is a tutorial, basically you need to run a web browser control and point it to a page, in order for the program you were using to work, or for any code to work. The fact you''re on the server, with HTML that has not yet been rendered, is the reason your control does not work. It does not care that you''re on a web server, but it DOES care that it wants to work with a web browser pointed to a page, not a web server sending one out as text.