0
送信ボタンがクリックされたときにソースが埋め込まれたWebページにIframeがあります。デスクトップにイメージとして保存する必要があります。 HERESにコード: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();
}
ですが、要件に一定の変更を加えました。見てください。 – sarika