CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Excel Output

Print topic Send  topic

Author Message
Ivan Rego
Posted: 11/28/2002, 1:58 PM

Using PHP and Template : on Event 'Before Show'
I type the following code ( i picked this up from a tip )

$header_filename="";
$footer_filename="";
Header("Content-type:application/vnd.ms-excel");

The resulting file is in html format ..

What do I need to do in order to get an Excel formated file ?

thanks

Ivan Rego
Daniel
Posted: 11/29/2002, 3:47 PM

I don't know PHP...this is what I use for ASP...maybe it can give you an idea to make a couple of tries:

Response.ContentType = "application/msword"
Response.AddHeader "content-disposition","attachment;filename=directory.doc"

Daniel

   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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