472,125 Members | 1,418 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

export to excel problem with IPAddress in URL but working correct with localhost url

Hi All,

I am getting export to excel problem when I am giving IPAddress in URL, but it is working correct when am giving localhost and page name.

eg : when I am writing My machine IP address and aspx pagename like 192.xxx.xxx.xx/exporttoexcell.aspx then popup page is not working. the popup page is being closed automatically , and export to excel option is not comming.

for some reason when it opens within a scripted popup (js: window.open()), it flashes and then closes immediately without any excel trigger.

but when I am giving my machine name mustaque/exporttoexcell.aspx then popup page is working properly and export to excel is working . I am being unable to understand what may be the problem ,

I am writing here my code

// I am getting the value in sBody and exporting it to excel .

string sBody = cExcel.ExportToMSExcel(true, true, 2,false, false);

Response.Buffer = true; Response.Charset = "";
Response.AppendHeader("Content-Type", "application/vnd.ms-excel");

Response.AppendHeader("Content-disposition", "attachment; filename=AcHeadMaster.xls");


please help me.

My OS is Vista . Dotnet vn 2.0

Thanks in Advance

Mustaque Ahmad

Software Engineer
Apr 2 '08 #1
0 1461

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Droopy | last post: by
6 posts views Thread by Elena | last post: by
3 posts views Thread by Jerry Spence1 | last post: by
13 posts views Thread by Hemant Sipahimalani | last post: by
3 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
19 posts views Thread by cj2 | last post: by
5 posts views Thread by Reggie | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.