2012-04-18 7 views
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(); 
     } 

答えて

0

があなたの発信者ページ上のiframeを使用可能にします。フレームのsrc/hrefとしてpptをロードします。 ユーザーのブラウザ設定で許可されている場合、pptがフレームに表示されます。

これは.NETとは関係ありませんが、私は

+0

ですが、要件に一定の変更を加えました。見てください。 – sarika

関連する問題