Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i write excel data to php file ,like this: if the "country" field data is "taiwan" ,so convert to php file to be---set("entry:84/country", "Taiwan");
Posted
Comments
Sandeep Mewara 3-Jun-11 1:08am    
Tried anything?
wisrael 3-Jun-11 3:58am    
what do you mean? first,get data from excel ,then write to be php files."taiwan" is the excel sheet field's data, " set("entry:84/country", "Taiwan"); " is the php mode.

1 solution

Not quite sure what you're asking - are you trying to find out how to query Excel for this data, or are you trying to determine how to format it?

You can query Excel from php using COM. Once you have opened up a COM link to Excel, you can tell it what to do in much the same way as you could if you were running a VBA macro from inside the program itself (or any of the other VBA supported apps - i.e the entire Office suite)

I've used this technique to successfully insert mutli-megabytes of information into excel (over 60,000 rows with some 10 columns - inserted in a single statement, not some horrible 600,000 or 60,000 iteration loop) before sorting it, inserting a blank line at the top, merging the cells and inserting a heading.

Further clarification would be beneficial!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900