| View previous topic :: View next topic |
| Author |
Message |
mitchb Newbie

Joined: 14 Jul 2008 Posts: 4 :
Items
|
Posted: Thu Jul 17, 2008 2:22 am Post subject: Export Problem |
|
|
I can do the export fine, the window flashes with the "Click here..." message, but then it appears to attempt to launch MS Excel and it fails with the following error displayed in a new window:
Can not find such path: ../../export.csv
It does create the file.
I am on a shared hosting service.
Please advise--Thank You.
My settings are:
## +---------------------------------------------------------------------------+
## | 3. Printing & Exporting Settings: |
## +---------------------------------------------------------------------------+
## *** set printing option: true(default) or false
$printing_option = true;
$dgrid->allowPrinting($printing_option);
## *** set exporting option: true(default) or false and relative (virtual) path
## *** to export directory (relatively to datagrid.class.php file).
## *** Ex.: "" - if we use current datagrid folder
$exporting_option = true;
$exporting_directory = "";
$dgrid->allowExporting($exporting_option, $exporting_directory);
$exporting_types = array("excel"=>"true", "pdf"=>"true", "xml"=>"true");
$dgrid->allowExportingTypes($exporting_types); |
|
| Back to top |
|
 |
zewa666 Site Moderator


Joined: 01 Feb 2007 Posts: 606 :
Items
|
Posted: Thu Jul 17, 2008 5:51 am Post subject: |
|
|
i think there is some error in the datagrid.class.php
please search for "export.csv" in it and youll find some paths to correct ...
Greetings
Zewa |
|
| Back to top |
|
 |
rima Junior

Joined: 16 Mar 2007 Posts: 27 :
Items
|
Posted: Fri Jul 18, 2008 1:23 am Post subject: |
|
|
Hi,
The simplest solution to avoid that error message is to replace the following line in scripts/download.php
| Code: | | $file_path = "../../".$dir.$file; |
by:
| Code: | | $file_path = "../".$dir.$file; |
I think that there is a problem in passing the $dir variable from the
exportDownloadFile function....
Regards
Rima |
|
| Back to top |
|
 |
mitchb Newbie

Joined: 14 Jul 2008 Posts: 4 :
Items
|
Posted: Sat Jul 19, 2008 7:36 am Post subject: |
|
|
Rima,
Thanks for your help. That solved the problem. |
|
| Back to top |
|
 |
| |
|