Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 27-Aug-12 5:15am
v3
Comments
ZurdoDev 27-Aug-12 10:09am    
Just a guess, but you are probably missing its dll on the webserver or some configuration setting in your web.config.
[no name] 27-Aug-12 10:38am    
Since iecapt, I believe, is a program for the client side to capture a webpage, it should be any surprise at all that it does not work as you expect on a webserver.
Ravi_Raturi 27-Aug-12 10:43am    
Hi Wes
Is there any other way i can accomplish the task.
[no name] 27-Aug-12 10:50am    
Sorry the only way I can think of is writing an active x control to do this. I honestly do not think that anyone would allow you to take screenshots of their computer. That is a high security risk operation.
Christian Graus 27-Aug-12 12:06pm    
I don;'t think he wants screenshots of their computer. He wants to turn the HTML he is sending to the client, to an image.

1 solution

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.
 
Share this 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