我在网页中有一个 iframe,当单击提交按钮时,它的源被填充。我需要将 iframe 源保存为桌面上的图像。如何做到这一点。继承人的代码:
<iframe id="IFAEventPerformance" name="IFAEventPerformance" scrolling="auto" runat="server"
width="100%" height="403" class=""></iframe>
和cs文件:
protected void lnkBTNSubmit_Click(object sender, EventArgs e)
{
this.IFrame1.Attributes.Add("src", "https:\\anotherwebsitename");
}
function for export to ppt is:
protected void imgBTNExportPPT_Click(object sender, ImageClickEventArgs e)
{
//WebsiteToImage websiteToImage = new WebsiteToImage("http://www.google.co.in", @"C:\Users\312220\Desktop\myscreenshot.jpg");
//websiteToImage.Generate();
WebsiteToImage websiteToImage = new WebsiteToImage("C:\\Users\\304485\\Desktop\\Login.htm",(@"D:\\my\\chocos\\sample.jpg"));
websiteToImage.Generate();
TextBox txtTextBoxRetailGroup = (TextBox)uscRetailParameters.FindControl("txtRetailCustomerGroup");
TextBox txtTextBoxPPGroup = (TextBox)uscRetailParameters.FindControl("txtProductGroup");
TextBox txtTextBoxEventID = (TextBox)uscEventParameters.FindControl("txtEventId");
string RetailGrp;
RetailGrp = txtTextBoxRetailGroup.Text;
string PPGrp;
PPGrp = txtTextBoxPPGroup.Text;
string EventID;
EventID = txtTextBoxEventID.Text;
ShowPresentation();
GC.Collect();
}