Jump to content

Download didn't start when using IE7 and Vista


cymok

Recommended Posts

Hi All,

 

I am using the following code to create Excel file and prompt user to download it.

 

header("Content-Type: application/vnd.ms-excel; name='excel'");
header("Content-disposition: attachment; filename=report_".date("Y-m-d")."_".$_COOKIE["username"].".xls");

 

The code works on Windows XP but I am facing problem when using Vista.

 

When the user open the screen using IE7 and Vista, the download dialog is show up, but it takes forever to download. Anyway, the user may able to download the excel after trying for many times.

 

I have no idea why this happen. Please give me some direction to solve this problem.

 

Many thanks.

 

Regards,

Mok

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.