/* * 站点 ---> CSS路径 * "Cnblogs" ---> "div#cnblogs_post_body" * "Csdn" ---> "div#article_content.article_content" * "51CTO" ---> "div.showContent" * "Iteye" ---> "div#blog_content.blog_content" * "ItPub" ---> "div.Blog_wz1" * "ChinaUnix" ---> "div.Blog_wz1" */ private void Frm_Main_Load(object sender, EventArgs e) { this.textBoxUrl.Text = "http://www.cnblogs.com/ice-river/p/4112323.html"; this.textBoxCssPath.Text = "div#cnblogs_post_body"; deles = new TaskDelegate(new ccTaskDelegate(RefreshTask)); }
public HTML2PDF(string strPath, TaskDelegate delesPDF) { m_strPath = strPath; m_delesPDF = delesPDF; }