open existing excel spreadsheet in browser - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > Perl » open existing excel spreadsheet in browser


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-07-2006   #1 (permalink)
destiny
Junior Member
 
Join Date: Jul 2006
Age: 38
Posts: 14
Default open existing excel spreadsheet in browser

I have an excel spreadsheet that lives on the server, I'm trying to get it to open on my browser window.
This is my code (openxl.cgi):

$excel="\/usr\/common\/reportdir\/excelsample.xls";
print "content-type: application/vnd.ms-excel\n";
print "content-disposition: inline\n\n";
print $excel;

The browser opens excel, but I don't get my data, instead all I see is the name of my data file (the /usr/common/...xls) in the first cell.
What am I doing wrong?
Thanks for any help :)
Destiny
destiny is offline   Reply With Quote


Old 07-21-2006   #2 (permalink)
alex
Senior Member
 
alex's Avatar
 
Join Date: Jul 2006
Age: 30
Posts: 124
Default Re: open existing excel spreadsheet in browser

By doing print $excel, all you are doing is telling the script to print the value for $excel

You need to do a print "Location: /reportdir/excelsample.xls\n\n";
alex is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera Browser Life Xpect Technology & Gadgets 19 08-29-2008 07:38 PM
What Browser Do You Use? GuyKels Technology & Gadgets 1 10-18-2006 03:54 PM
Which browser do you use? zewlie All Things General 9 07-31-2006 10:26 PM
Creating an EXCEL template to load data into SQL Database aaron ASP 1 07-14-2006 05:31 AM
How To: Make "Export to Excel" always open excel in a separate Window bradley .NET 0 07-06-2006 05:32 PM


footer left
All times are GMT. The time now is 08:10 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Loans | Free Myspace Layouts | Gardening | Per Insurance | MPAA

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49