Forum Moderators: coopster
I need to generate a tightly formated excel file from PHP, i've come across PEAR:Spreadsheet_Excel_Writer and it looks interesting.
However the main crux is the ability to merge cells vertically (which i don't think is a problem) and have text written vertically in them.
E.g.
C - Cell B
E - Cell C
L - Cell D
L - Cell E
A
And so on. ( i also need to the text to be flipped 90 degrees as well but can't display that here)
Has anyone got experience with this and is it possible?
Cheers
Hugh
If you wanted to have the first cell contain grouped information, you could always use double quotation marks as string delimiters. So, your first cell you might store as:
$cell1 = "C\nE\n\L\nL";
However, I am not certain how MS Excel will handle that upon import. You would have to test.
+---+--------+
¦ C ¦ Cell B ¦
¦ ¦--------¦
¦ E ¦ Cell C ¦
¦ ¦--------¦
¦ L ¦ Cell D ¦
¦ ¦--------¦
¦ L ¦ Cell E ¦
¦---¦--------¦
¦ A ¦ Cell F ¦
+---+--------+
yup, thats the job. I've not looked at com objects, they scare me so i'm hiding from those. Not sure what you mean about the macro but i'll investigate.
Regarding doing it via HTML, i think this would cause me trouble as the formatting has to be very tight as it's an excell file that is used to print over an already printed order form. I'm passing the product data into the excel file which said person can tweak away in excell and then print over the order already printed form.