Hi Champs 
I am getting the following error while trying to make an excel sheet from 
repeater .

 

Html Imports Error
Problem came up in the following areas during load:
Missing file:C:\Documents and Settings\Style\Application.css

the code i have written is 
public void ExcelReport(string ReportName, Repeater objRepeater)
  {
   string objRptName = ReportName == string.Empty ? "Report 1" : ReportName ;
   Response.Clear();
   Response.AddHeader("content-disposition", 
"attachment;filename="+objRptName+".xls");
   Response.Charset = "";
   Response.Cache.SetCacheability(HttpCacheability.NoCache);
   Response.ContentType = "application/vnd.ms-excel";
   StringWriter _strWriter1=new StringWriter();
   HtmlTextWriter _HtmlTxt1=new HtmlTextWriter(_strWriter1); 
   objRepeater.RenderControl(_HtmlTxt1); 
   Response.Write(_strWriter1.ToString());
  }


Thnaks for a quick solution .

Arindam

                
---------------------------------
 Yahoo! India Matrimony: Find your partner now.

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to