PHP Builder Forum IndexPHP Builder
free solutions for web developers
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in            Calendar

NEWS:
Export Problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHP Builder Forum Index -> PHP DataGrid {bugs}
View previous topic :: View next topic  
Author Message
mitchb
Newbie
Newbie


Joined: 14 Jul 2008
Posts: 4
:


Items

PostPosted: Thu Jul 17, 2008 2:22 am    Post subject: Export Problem Reply with quote

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
View user's profile Send private message
zewa666
Site Moderator
Site Moderator


Joined: 01 Feb 2007
Posts: 606
:


Items

PostPosted: Thu Jul 17, 2008 5:51 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
rima
Junior
Junior


Joined: 16 Mar 2007
Posts: 27
:


Items

PostPosted: Fri Jul 18, 2008 1:23 am    Post subject: Reply with quote

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
View user's profile Send private message
mitchb
Newbie
Newbie


Joined: 14 Jul 2008
Posts: 4
:


Items

PostPosted: Sat Jul 19, 2008 7:36 am    Post subject: Reply with quote

Rima,

Thanks for your help. That solved the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHP Builder Forum Index -> PHP DataGrid {bugs} All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
PHP Builder topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group
FREE FORUM HOSTING by AtFreeForum. Terms of Service - Privacy Policy
FASHION ACCESSORIES - BLING BLING - LADIES WATCHES - KOREAN CHILDREN CLOTHING - ONLINE BARGAIN STORE - FASHION JEWELLERIES