CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 export grid to csv

Print topic Send  topic

Author Message
vinny710

Posts: 1
Posted: 12/05/2016, 8:38 AM

Is there a simple way in codecharge to get this done? I'd prefer PHP, but I'd accept JQuery or Javascript. I have a page with multiple tables, I am only trying to export one of them.
I've tried methods involving buttons and links with PHP or Jquery that I've found online, but either I get a browser error, or everything looks good, but when I click the button or link nothing happens.

Thank you!
_________________
Thanks!
Vinny710
View profile  Send private message
solesz

Posts: 137
Posted: 12/09/2016, 2:32 AM

Hi,

There is an example on the codecharge example site exactly here:
http://examples.codecharge.com/ExamplePack/ExportToExcel/ExportToExcel.php

There is a step-by-step tutorial.

Basically all is about to redirect the output using the HTML header, telling to the browser that the content gonna be xls or xlsx. As far as I know, for this solution EXCEL has to be installed on the client computer.

Cheers

Solesz
View profile  Send private message
autefrum

Posts: 9
Posted: 08/15/2017, 11:48 PM

To temper expectations a little, this export technology is not a true Excel export. It is a saving a render of the HTML page with an XLS extension, which Excel queries with a message, but successfully opens.
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.

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.