Re: Fails to open Excel

From: ZW (anonymous_at_discussions.microsoft.com)
Date: 01/05/05


Date: Wed, 5 Jan 2005 06:44:06 -0800

IE 6 (sp1) and Office 2000.

BTW I tried IE in one computer with Office 97, it seems OK.

>-----Original Message-----
>What version of IE, and what version of Office do you
have installed?
>
>"ZW" <anonymous@discussions.microsoft.com> wrote in
message
>news:132a01c4f295$99be9730$a301280a@phx.gbl...
>> Hi Don,
>>
>> Thanks for the reply.
>>
>> However, it doesn't work.
>>
>> Although I didn't mention, I already use
>> datagrid.RenderControl(HtmlTextWriter) put data to
>> StringWriter in DataGrid page and save the data in
>> Session, then in the excel report page retrieve the data
>> and write to Response. As I mentioned, the weird thing
is
>> it works fine in Netscape, but not work for IE.
>>
>> ZW
>>>-----Original Message-----
>>>remove the line ClearControls from my method.
>>>
>>>"ZW" <anonymous@discussions.microsoft.com> wrote in
>> message
>>>news:046101c4f279$b8d5f210$a601280a@phx.gbl...
>>>> Hi there,
>>>>
>>>> I use following code to convert a datagrid data to
>> Excel.
>>>> However, if I use IE to access the page, it opens an
>> empty
>>>> excel page. If I access it by Netscape, it can open it
>>>> with excel (or save it). Does any one have experience
to
>>>> fix the problem?
>>>>
>>>> //
>>>> Response.ClearContent();
>>>> Response.ClearHeaders();
>>>> Response.ContentType = "application/vnd.ms-excel";
>>>> //Response.ContentType = "application/x-msexcel"; //
>> Same
>>>> result
>>>> Response.Charset = string.Empty ;
>>>> this.EnableViewState = false;
>>>> object content = Session["datagrid"];
>>>> if (content != null)
>>>> {
>>>> Response.Write(content.ToString());
>>>> Response.End();
>>>> }
>>>>
>>>>
>>>> TIA
>>>>
>>>> ZW
>>>
>>>
>>>.
>>>
>
>
>.
>



Relevant Pages

  • Re: Outlook Express 6.0 SP-1
    ... Was bedeutet BTW? ... Der Header meines OE lautet ganz einfach Microsoft Outlook Express ... Wenn das der OE 6 SP1 ist: ... Wie kann ich dieses SICHERHEITS-Problem lösen? ...
    (microsoft.public.de.german.inetexplorer.ie6.outlookexpress)
  • RE: Programmatic Interaction with a TFS Installation
    ... Team Explorer is required to be installed on the machine, ... using TFS Object Model. ... You should also apply SP1 on VS 2008. ... BTW, if your application is running on x64 machine, please make sure that ...
    (microsoft.public.vsnet.enterprise.tools)
  • RE: Programmatic Interaction with a TFS Installation
    ... Team Explorer is required to be installed on the machine, ... using TFS Object Model. ... You should also apply SP1 on VS 2008. ... BTW, if your application is running on x64 machine, please make sure that ...
    (microsoft.public.vsnet.enterprise.tools)
  • Re: ms03-049 exploit xp sp0
    ... I didn't run into this problem in my version of the (XP SP1) attack, btw. ... Most curious is the Unicode encoding differences between SP0 and SP1. ...
    (Vuln-Dev)
  • Re: A new Paradox symptom
    ... I noticed you're using Paradox 9 SP1. ... BTW, you should try to get hold of P9 SP3. ... Reverse parts of the user name and ISP name for my e-address ...
    (comp.databases.paradox)