2012-04-18 78 views
0

當點擊提交按鈕時,我的網頁中有一個Iframe填充了源代碼。我需要將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(); 
     } 

回答

0

讓你的來電者頁面上可用的iframe中。加載ppt作爲幀的src/href。 如果用戶瀏覽器設置允許,ppt將顯示在框架中。

我相信這無關與.NET雖然

+0

我已經取得了一定的更改requirements.Please期待通過。 – sarika 2012-04-18 10:08:36