Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Bug #2823 Inpropper results from writeUrl() method
Submitted: 2004-11-24 21:08 UTC
From: justin at astutecomputing dot com Assigned: xnoguer
Status: Closed Package: Spreadsheet_Excel_Writer
PHP Version: 4.3.6 OS: Linux (Red Hat 7.2)
Roadmaps: (Not assigned)    
Subscription  


 [2004-11-24 21:08 UTC] justin at astutecomputing dot com
Description: ------------ I'm using Spreadsheet_Excel_Writer to create two Excel files (file A and file B), each with one worksheet. I'm trying to place a hyper-link in File A that maps to file B. When the user clicks on the link in File A, File B should open to the correct worksheet and cell. The hyperlink is created, but the file name is excluded from the path. Reproduce code: --------------- <?php require_once("/usr/local/lib/php/Spreadsheet/Excel/Writer.php"); $workbook1 = new Spreadsheet_Excel_Writer('temp/activity.xls'); $worksheet1 =& $workbook1->addWorksheet('activity'); $worksheet1->write(0, 0, 'this is the data linked to'); $workbook1->close(); // Creating a workbook for the prospects and write to the server. $workbook = new Spreadsheet_Excel_Writer('temp/prospects.xls'); $worksheet =& $workbook->addWorksheet('prospects'); $worksheet->writeUrl(0, 0, "external:activity.xls#activity!A1", 'this is the link'); $workbook->close(); print "done"; exit(0); ?> Expected result: ---------------- I expect two files. The file prospects.xls should have one worksheet containing a link. That link should open the activity worksheet in activity.xls. Actual result: -------------- The file are created as expected, but the link in the prospects file does not open the activity file.

Comments

 [2005-11-12 03:35 UTC] xnoguer at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Seems to work now, as long as you don't use cell ranges for the url. Please test the cvs version.
 [2008-06-04 15:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!