나는 웹 사이트의 screeshot을 받고있다. 문제는 내가 화면에 텍스트 상자가 있습니다. 스크린 샷을 찍을 때 텍스트 상자의 값이 나타나지 않습니다. 다른 사람이 코드를 재정렬하는 데 도움을 줄 수 있습니까? 당신이 기대하는 것을, 실제로 존재하지 않는, 당신은 단지 페이지의로드 할 - 당신이asp.net의 웹 페이지 스크린 샷 #
protected void Button1_Click(object sender, EventArgs e)
{
MailMessage msg = new MailMessage(txt_From.Text, txt_To.Text);
try
{
msg.Subject = txt_Subject.Text;
msg.Body = "<br /><b>form:</b> " + form1 + "<br /><b>From:</b> " + txt_From.Text + "<br /><b>To:</b> " + txt_To.Text + "<br /><br /><br /><br /><b>Name:</b><hr />" + TextBox1.Text + "<br /> <br /><b>Date:</b><br /><hr /><br />" + TextBox2.Text + "<br /><br />";
msg.IsBodyHtml = true;
WebRequest mywebReq;
WebResponse mywebResp;
StreamReader sr;
string strHTML;
StreamWriter sw;
// Put user code to initialize the page here
mywebReq = WebRequest.Create("http://localhost:4101/WebForm2.aspx");
mywebResp = mywebReq.GetResponse();
sr = new StreamReader(mywebResp.GetResponseStream());
//sr = new StreamReader(mywebResp.GetResponseStream(), System.Text.Encoding.ASCII);
strHTML = sr.ReadToEnd();
sw = File.CreateText(Server.MapPath("Report.htm"));
sw.WriteLine(strHTML);
sw.Close();
Response.WriteFile(Server.MapPath("Report.htm"));
Attachment objAttachment = new Attachment(@"C:\Users\2714\Documents\Visual Studio 2010\Projects\Certificate\Certificate\Report.htm");
msg.Attachments.Add(objAttachment);
System.Net.Mail.SmtpClient objSmtpClient = new SmtpClient("10.238.52.200", 25);
objSmtpClient.Send(msg);
}
catch (Exception ex)
{
throw ex;
}
}
당신이 http://slodive.com/inspiration/showcase/50-captivating-horizontal-websites/ 같은 뭔가를하려고 노력하고 있습니까? –
페이지를 XPS 파일로 인쇄하고 이메일로 보내지 않는 이유는 무엇입니까? http://code.msdn.microsoft.com/CSASPNETPrintPartOfPage-afc45915 –
원본 파일이 렌더링 될 때 인쇄하는 것을 볼 수 있습니다. –