I don't know your answer, but I do know that your code
is creating a Word doc, not a an Excel spreadsheet.
:)
--- Arindam <[EMAIL PROTECTED]> wrote:
>
> Hi
> I am in a problem if anyone kindly solve the issue,
> i will be grateful to him/her.
>
> While converting a repeater into a excel sheet ,
> facing a few probem
>
> Problem is that the entire page (with all control )
> is being rendered and coming into excel-sheet.
> which i dont want. i need only the repeater to be
> rendered into my excel sheet.
>
>
>
> Is very Urgent ....
>
>
> if i get a proper solution ...will be great ..
>
>
>
> Thnaks
> code is given bellow.
> AC
>
>
> private void WordReport(string ReportName, Control
> objControl)
> {
> string objRptName = ReportName == string.Empty ?
> "Report 1" : ReportName ;
> Response.Clear();
> Response.ClearContent();
> Response.ClearHeaders();
> Response.AddHeader("content-disposition",
> "attachment;filename="+objRptName+".doc");
> Response.Charset = "";
>
>
Response.Cache.SetCacheability(HttpCacheability.NoCache);
> Response.ContentType = "application/vnd.msword";
> StringWriter _strWriter1=new StringWriter();
> HtmlTextWriter _HtmlTxt1=new
> HtmlTextWriter(_strWriter1);
> objControl.RenderControl(_HtmlTxt1);
> Response.Write(_strWriter1.ToString() );
> //Response.Write(_strWriter1.ToString());
>
>
> }
>
>
>
>
> Arindam Chakraborty
> Software Developer,
> Mumbai,
> India
>
>
>
>
>
> ---------------------------------
> Yahoo! India Matrimony: Find your partner now.
>
> [Non-text portions of this message have been
> removed]
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Fair play? Video games influencing politics. Click
> and talk back!
>
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
>
--------------------------------------------------------------------~->
>
>
>
> Yahoo! Groups Links
>
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>
>
> [EMAIL PROTECTED]
>
>
>
>
>
------------------------ 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/