|
Posted by Djim on 12/21/05 00:33
Hello,
i am starting PHP, and after 2 days of search, i am posting.
MY PURPOSE : opening a XLS files (in MS Excel) on the client side, the
user can update anything, then it will be automaticly saved on the
server again (when client use save button or close Excel).
MY TESTS : I had coded that (in php) :
echo "<FORM METHOD=post TARGET=_blank> ";
echo "<INPUT TYPE='button' VALUE=Open the file'
onClick='ouvrir(\"myfileexcel.xls\")'>";
echo "</FORM>";
--------------------------------------------------------------------------------
Actualy that doesn't work, my button is here but do nothing when you
clic it.
--------------------------------------------------------------------------------
function ouvrir($nomfic)
{
# test to check the call :
echo "COUCOU";
# $workbook = "docs/".$nomfic;
# $sheet = "myshet";
# $ex = new COM("Excel.sheet");
# $wkb = $ex->application->Workbooks->Open($workbook) or Die ("File do
not open");
# $ex->application->ActiveWorkbook->Close("False");
# unset ($ex);
}
MY QUESTION : Anyone know how to do this (with code example plz) ?
PS : i am french so sorry for my bad english.
[Back to original message]
|