Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

View Poll Results: Would you / Could you do a website with Microsoft FP if a cient insisted on it?
I wouldn't 2 40.00%
I couldn't 0 0%
I would charge extra 0 0%
I do most of my work with FP already 1 20.00%
I don't usually work with FP, but I do sometimes so it wouldn't be a problem 2 40.00%
Voters: 5. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-06-2006, 11:32 PM
texxs's Avatar
WebProWorld Veteran
 

Join Date: Jul 2005
Location: Somewhere in scrub of Florida
Posts: 332
texxs RepRank 0
Default A Problem I can't solve yet

I have a client that dropped me a problem I'm having trouble solving.

They use a lot of MS Excel Spreadsheets. He has one that they fill out out over the phone with a client that includes about 50 different fields of information. He wants me to post the spreadsheet on his site (I've done this part w/ other spreadsheets for him, it's problematic, but doable), let the clients figure it out and then send the spreadsheet to his e-mail addy.

I tried to talk him into just a regular HTML form that will send the info to him, but he wants it come in as unique .xls spreadsheets

Anyone have any ideas on how to do this? Or if this can even be done on his Linux web server? I work with php and JavaScript mostly. But I did his website in FP2003 so he could do updates his self.

If nothing else got a nice simple way to explain to him that this is not easy task?
__________________
Take a break and watch some stupid video clips
Reply With Quote
  #2 (permalink)  
Old 01-07-2006, 02:32 AM
southplatte's Avatar
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Colorado
Posts: 381
southplatte RepRank 1
Default

I have a php script that will pull in information from a csv file (save the excel as a csv format) and populate a mysql db with it. I imagine one could be able to find one that would pull from the database and write a csv formatted file that excel could then open as a normal spreadsheet.

I will post a link the importer script below:

http://codewalkers.com/seecode/175.html

Some export examples/info I found:

http://www.modwest.com/help/kb.phtml?qid=135&cat=6

This one below is not oss or free, but looks pretty powerful:

http://www.comdevweb.com/csvdatatool.php?code=CSVIM31

http://www.zend.com/codex.php?id=1036&single=1

http://www.webmasterworld.com/forum88/5504.htm

You could pull the csv into the mysql db, then allow the clients to use it in a form that pulls/adds/modifies/deletes the data that is necessary, then write it to the database, then create the csv file by pulling it from mysql and email it using the mail function. Each row in the csv file would become a mysql row, so it would use the same basic loops that you use for mysql I would think (as far as stepping through each field to read/write the csv file).

Of course, this means that the user that php/apache runs as would have writable access to a directory to create the csv file - which may open a security hole if done improperly.
Reply With Quote
  #3 (permalink)  
Old 01-07-2006, 10:34 AM
texxs's Avatar
WebProWorld Veteran
 

Join Date: Jul 2005
Location: Somewhere in scrub of Florida
Posts: 332
texxs RepRank 0
Default A good try though . . .

I'm thinking he will not be happy with a cvs file, but let me give it a try and see how easy it is to convert it from the cvs to the .xls that he wants. He really wants to be able to open his e-mail and have these .xls's that he already uses all filled out and ready to give to his staff. I just don't think I can do it though.
__________________
Take a break and watch some stupid video clips
Reply With Quote
  #4 (permalink)  
Old 01-10-2006, 05:02 AM
southplatte's Avatar
WebProWorld Veteran
 

Join Date: Jul 2003
Location: Colorado
Posts: 381
southplatte RepRank 1
Default

To get the csv file open in Excel, Excel should be associated with it....it would then work, act and be very similar to the original....the presentation may not be as pretty....as I do not think your csv would have any formatting.....

Here is another link with a 6 page tutorial on exporting directly to the .xsl excel extension format...

http://www.phpfreaks.com/tutorials/114/0.php

as I said though...there is no way to get the formatting, such as borders, colors/shading etc. that I know of....maybe with an MS server running some ASP.Net or VB.Net you could.
Reply With Quote
  #5 (permalink)  
Old 01-10-2006, 08:04 AM
texxs's Avatar
WebProWorld Veteran
 

Join Date: Jul 2005
Location: Somewhere in scrub of Florida
Posts: 332
texxs RepRank 0
Default Hey, that's

Hey now that's pretty good info!

Thanks a ton!
__________________
Take a break and watch some stupid video clips
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , ,



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


Search Engine Optimization by vBSEO 3.2.0