CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Export to excel with SSL

Print topic Send  topic

Author Message
MB
Posted: 12/02/2004, 6:03 PM

I have a grid with the option to export to excel
that works fine until I try it with SSL

It tells me it can't find the file

Any Ideas

CCS 2.3, IIS6, PHP ISAPI

MB
Posted: 12/03/2004, 6:45 AM

Never mind I figured it out
Damian Hupfeld
Posted: 12/04/2004, 4:05 AM

These responses are always helpful!
It would be great if you posted your solution - even if it was just a user
error, in case other people have same problem :)

regards
Damian Hupfeld
http://www.itng.com.au/services.php

"MB" <MB@forum.codecharge> wrote in message
news:541b07c1f4282c@news.codecharge.com...
> Never mind I figured it out
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

MB
Posted: 12/04/2004, 4:43 AM

This applys to IE only no changes were needed for firefox browser and did not test any others
Use this in Open event
the no-cache was removed from Header(Pragma: no-cache");

$header_filename = "";
$footer_filename = "";
Header("Content-type: application/vnd.ms-excel");
Header("Content-Disposition: attachment; filename=example.xls");
Header("Pragma: ");
Header("Expires: 0");
Cherry
Posted: 02/16/2005, 11:11 PM

Hi,
I tried to use the sample code for excel export:

Header("Content-type: application/vnd.ms-excel");
Header("Content-Disposition: attachment; filename=example.xls");
Header("Pragma: ");
Header("Expires: 0");

My problem is, when I clicked on the export to excel button, and chose Open (instead of save) and excel application isn't opened yet, the file couldn't be found. But if you open first the excel application, then click on the export to excel button, the file is successfully opened.

Please help!!! Thanks! =)


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.