CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Export web reports to Excel/PDF

Print topic Send  topic

Author Message
tfertil

Posts: 43
Posted: 12/04/2010, 9:16 AM

Hi everyone,

Has anyone exported a web report to Excel or PDF?

I'm using PHPExcel to export datasets (queries) to Excel.

But... how can I export a web reports to Excel?

Thanks
View profile  Send private message
caryarit_ferrer

Posts: 1
Posted: 11/24/2011, 5:56 AM

using this on the before show
$name= mifilename
header("Content-type: application/vnd.ms-excel");
header('Content-Disposition: filename="'.$name.'.XLS";');
_________________
y si nos bajamos del carro y volvemos a entrar?
View profile  Send private message
tfertil

Posts: 43
Posted: 11/24/2011, 6:20 AM

Thank Caryarit_Ferrer, for your reply.

I tried that, and it works, but now I have a problem with the CSS files. When I try to open an Excel file created this way, Excel looks for the CSS file from the CodeCharge template, and give me an error message because it can't find the file.

I changed the CSS reference to an absolute, complete one, like this

http://www.mysite.com/css/mycssfile.css

But... if I open the Excel file without internet connection, again I got an error message and an ugly report (not my carefully designed colors, fonts, etc.).

Any idea will be appreciated.

Thanks.
View profile  Send private message

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.