using System; using System.Windows.Forms; using html2img; // 참조에 html2img.dll 을 추가 하시면 됩니다. namespace TEST { public partial class Form1 : Form { public Form1() { InitializeComponent(); } static void p_imgFileCreate(object sender , html2imgEventArgs e) { Console.WriteLine(e.eventData); } private void Form1_Load(object sender, EventArgs e) { html2img.html2imgEvent p = new html2imgEvent(); p.imgFileCreate += new html2imgEvent.html2imgEventHandler(p_imgFileCreate); //html2img.html2imgClass.pLogYN = true; //html2img.html2imgClass.pPhicalDir = @"C:\www.jskwak.pe.kr"; //html2img.html2imgClass.pImgtype = System.Drawing.Imaging.ImageFormat.Png; //html2img.html2imgClass.pFilename = "JSKWAK"; // 일반적인 경우 //html2imgClass.html2image("http://www.daum.net" ,p ); // Height가 Body Height에 없는 경우 //html2imgClass.html2image("http://www.naver.com" ,p ); // Height 가 20000이 넘는 경우 html2imgClass.html2image("http://www.interpark.com/product/ProductOnce.do?_method=getProductDtl&prdNo=4120199329", p ); } } }