Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » PHP read excel template?
Search Topic:
Uniqs:
670
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Which Programming Language? »
« Block users from downloading images?  
AuthorAll Replies
-

Shark_615

join:2006-01-17
Pickering, ON

reply to johnnyboyct
Re: PHP read excel template?

If the sheets are that big and complex then the script will time out as using Excel naively on PHP is slow; brutally, noticeably slow. COM is basically a windows thing that allows apps to talk to other apps... If you want to try it start:

»ca.php.net/manual/en/book.com.php
»devzone.zend.com/article/3336-Re···with-php

Non COM option that requires PHP5:
»www.eephp.com/

haven't used it...yet... but if you find success with it let me know.


yock
TFTC
Premium
join:2000-11-21
Fairfield, OH
reply to johnnyboyct
I presume that "can't" is because of looming year-end festivities?


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to yock
Well thats the goal, and Ive done 4 of 5 sheets, but the last sheet is a nightmare. Ive recreated 80% of it with ajax and JS, but really its overkill. They cant address the real issues atm so I end up recreating a flawed spreadsheet...
--
Connecticut Web Design and Development


yock
TFTC
Premium
join:2000-11-21
Fairfield, OH

reply to johnnyboyct
Excel spreadsheets are limited to 65,535 lines, but I get your point. In all honesty, Excel shouldn't be levereged in this way. Though it is technically capable, it isn't designed for highly complex and/or mission critical financial calculations. I've seen entire accounting departments running on Excel/VBA solutions, but that doesn't make it right.

If you're already producing the input data for this application, why not implement a web application that replaces this spreadsheet entirely?


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
Not really,

Right now, they use a spreedsheet for this big long project process that consists of about 5 tabs. My app does 4 of 5.

But there's a ton of calculations on the next tab of the sheet that the web app doesn't do.

Id like to read the file with formatting, and calcs, and just fill in the blanks. The only way I have found so far is to:

in excel output the sheet as XML
Regenerate that xml with my blanks filled in

But its like 100000 lines
--
Connecticut Web Design and Development


yock
TFTC
Premium
join:2000-11-21
Fairfield, OH
reply to johnnyboyct
Let me see if I understand. You have an Excel spreadsheet that you with to open as a web page, modify, and save the modifications back to a web page? You're esentially using Excel as the data back-end for a web application?


johnnyboyct

join:2003-06-11
Newington, CT
reply to Shark_615
Hmmm, any links describing the com thing? I have no clue what to google.

Shark_615

join:2006-01-17
Pickering, ON

reply to johnnyboyct
If you are running PHP on a Windows server I believe you can open excel docs naively using COM or something. Its slow and horrible but would probably work.

Outside of that improbably setup there really isn't a way and I have researched it a bit.


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

reply to johnnyboyct
Ive found some stuff that works to read or write, but nothing that works well both ways. We have a few REALLY complex sheets and so far the only thing I can do is save it as xml, then customize the xml with data from the app. Its a pain in the ass though.
--
Connecticut Web Design and Development


theedj
Right Back At-Cha
Premium
join:2002-12-12
Calgary
clubs:
reply to johnnyboyct
I've never found anything PHP related that can directly handle input from an XLS...I've also had to convert to a CSV. If you're looking to make the template web based, wouldn't it be easier to recreate it online?


johnnyboyct

join:2003-06-11
Newington, CT
·Cox HSI

Whats the best way to read an excel sheet with the formating and formulas left in place?

I have no problem writing, but Id like to use a template as a base
--
Connecticut Web Design and Development
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersWhich Programming Language? »
« Block users from downloading images?  


Tuesday, 01-Dec 21:58:52 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [129] Comcast Releasing Promised Usage Meter
· [67] Baltimore To Ban Lazy Cable Installs
· [56] Broadband Killed The Game Console
· [48] Rogers Unveils The ISP Dream Model
· [40] Rural Carriers Quickly Embracing Fiber
· [39] Latest Consumer Reports Survey Not Kind To AT&T
· [35] Charter Exits Chapter 11
· [34] ACTA: Global Three Strikes
· [33] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
· [24] Midcontinent Socked With Easement Lawsuit
Most people now reading
· IMG 1.7 (IMG Updates and Discussion) [Verizon FIOS TV]
· Am I the only one that loves to work in IT? [No, I Will Not Fix Your #@$!! Computer]
· Data Usage Meter Launched [Comcast HSI]
· Heating - my dad gave me this advice... [Home Repair & Improvement]
· [Newsgroups] Newzleech down? [Filesharing Software]
· UBB round 2 at the CRTC [Canadian Broadband]
· Ooma changing features [VOIP Tech Chat]
· [Business] how to bridge a smc 8014 business class modem [Comcast HSI]
· Windows 7 boot manager editing questions [Microsoft Help]
· Considering Leaving Vonage, who should I Consider? [VOIP Tech Chat]