Supprimer un message
Clandestino
Je ne sais pas, il faudra que je regarde. Sinon, j'ai toujours ça dans mes bookmarks, ça pourrait peut-être te mettre sur une piste :
http://mashable.com/2007/08/24/web-screenshots/
http://stylizedweb.com/2008/04/26/website-screenshots-services/
http://www.webshotspro.com/
http://www.plentyofcode.com/2007/09/website-screenshot-capture-with-aspnet.html
http://www.ditii.com/2008/04/19/super-screenshot-website-screenshot-creator/
Edith : trouvé ça aussi :
I wrote a simple web service (in 2 minutes - excuse the non-optimal code) that wraps the webshot.exe for use on Windows based servers (http://www.websitescreenshots.com/). You must have webshot.exe installed.
You submit a URL and it returns a link to the captured .png file stored locally on your server.
[WebMethod]
public string HTML2PNG(string URL)
{
string result = "";
string filename = System.Guid.NewGuid().ToString() + ".png";
string destinationURL = "http://your_ip/html2png/"+filename;
string outputPath = "C:Inetpubwwwroothtml2png";
filename = outputPath+filename;
if(URL != "")
{
try
{
string cmdStr = "/url ""+URL+"" /bwidth 800 /bheight 600 /quality 65 /encoder png /out "+filename;
Process myProc;
myProc = Process.Start("C:ProgramFilesWebShotwebshotcmd.exe",cmdStr);
myProc.CloseMainWindow();
result = destinationURL;
}
catch(Exception ex)
{
result = ex.ToString();
}
}
return result;
}
http://mashable.com/2007/08/24/web-screenshots/
http://stylizedweb.com/2008/04/26/website-screenshots-services/
http://www.webshotspro.com/
http://www.plentyofcode.com/2007/09/website-screenshot-capture-with-aspnet.html
http://www.ditii.com/2008/04/19/super-screenshot-website-screenshot-creator/
Edith : trouvé ça aussi :
I wrote a simple web service (in 2 minutes - excuse the non-optimal code) that wraps the webshot.exe for use on Windows based servers (http://www.websitescreenshots.com/). You must have webshot.exe installed.
You submit a URL and it returns a link to the captured .png file stored locally on your server.
[WebMethod]
public string HTML2PNG(string URL)
{
string result = "";
string filename = System.Guid.NewGuid().ToString() + ".png";
string destinationURL = "http://your_ip/html2png/"+filename;
string outputPath = "C:Inetpubwwwroothtml2png";
filename = outputPath+filename;
if(URL != "")
{
try
{
string cmdStr = "/url ""+URL+"" /bwidth 800 /bheight 600 /quality 65 /encoder png /out "+filename;
Process myProc;
myProc = Process.Start("C:ProgramFilesWebShotwebshotcmd.exe",cmdStr);
myProc.CloseMainWindow();
result = destinationURL;
}
catch(Exception ex)
{
result = ex.ToString();
}
}
return result;
}