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.shee t");
# $wkb = $ex->application->Workbooks->Open($workbook ) or Die ("File do
not open");
# $ex->application->ActiveWorkbo ok->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. 8 4606 je************* @province-sud.nc says... 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).
Impossible to be able to do if the client has even the smallest ideas
about security of their own computer. I will NEVER allow a web site to
spawn an executable program on my client, let alone know to where on my
file system I may choose to save it as a download.
You are using the wrong application methodology, trying to hammer a nail
with a screwdriver. What you need to achieve this is MS Terminal Server
or Citrix.
Geoff M
it's an intranet (not internet) so security isn't my problem.
Plus i already hammered a nail with a screwdriver.... several times,
it's painfull (specialy for my fingers) but can be done.. ;-))
Djim.
If you pass the browser an xls file, it will auto open most client's
excel (or an excel plugin) to read the doc..
Yes it open my file, but user can't save it back directly on the server.
Djim wrote: 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.shee t"); # $wkb = $ex->application->Workbooks->Open($workbook ) or Die ("File do not open"); # $ex->application->ActiveWorkbo ok->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.
PHP se lance chez le serveur. Lorsque l'utilisateur voit le bouton, PHP
s'est évanoué.
Seulement un système au client, p.e. Javascript, peut se lancer par
onClick - mais il n'aura pas accès aux fichiers sur le serveur.
Si l'utilisateur demande une nouvelle page ( par submit ou par un lien )
le PHP de cette page pourra ouvrir et afficher un fichier. Mais ça ne
permettra pas que l'utilisateur y puisse faire des changements au
fichier. Le script peut l'envoyé comme download, puis l'utilisateur
pourra lancer son propre Excel s'il y en a, mais il n'y aura aucun
methode de rentre le fichier changé au serveur.
Je ne sais aucun moyen d'arriver à ce que vous voulez.
Colin
Désolé pour ma mauvaise français.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Djim wrote: Yes it open my file, but user can't save it back directly on the server.
Use a PUT-enabled webserver (webdav-like), and make sure that the client app
(i.e. excel) is able to save to http:// URLs.
At least, any KDE app can do it...
- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Give a man a fish, he owes you one fish.
Teach a man to fish, you give up your monopoly on fisheries.
(read on slashdot.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDqLn43jc Q2mg3Pc8RApSuAJ 9wUeEEHFvJF3rNz EBciBfx7zg/egCeJ8P+
Qi6aIAJNxmIn5J6 zJF6hNCk=
=c10+
-----END PGP SIGNATURE-----
For the level of integration you desire, you will probably need to use
an ActiveX control, that in turn hosts the Excel ActiveX control. With
a RAD tool like Borland Delphi or VB, you can do it fairly easily. Drag
an Excel control and a web access component, add a few lines of code,
then bingo!
Ok thx all for the tips, and specialy Colin with nice french ;-)) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Miguel Orrego |
last post by:
Hi,
Does anybody know some code that opens a spreadsheet in excel rather than
the browser? If possible something that can be used with response.redirect,
however this isn't essential. I have a script that creates an excel report,
and people then open this report from a link. However I've been asked
whether it could be opened in excel.
Cheers.
|
by: Jane |
last post by:
I have a web application, it opens up excel when you click on a button. It
works fine on my local machine. But when I upload the application to the
server, i get this error message:
COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not
valid or not registered
Do I need to install Microsoft Office in my production server?
Is there anyway to bypass it? and allow client machines to open the excel
file if they have...
|
by: Fred |
last post by:
Hi.
How do I import while mapping an excel table to an access table please???
I've searched around and all I can find is a software product or code that
does the same thing as the access wizard.....
If I have to write vb code, where is a sample???
Or do I import the excel in to a new spreadsheet and then
write some kind of querey to move the data from that table
|
by: Yohancef Chin |
last post by:
Hi,
Being fairly new to .NET I am looking for a way to call
MS
Word from an event on a webform, and after the user is
finished save that created document to an SQL Server
database. Has anyone done this? Does it seem possible? I
followed the instructions from a sample on the Microsoft
knowledge base but it only seems to work when creating a
VB.NET Windows .EXE, not an VB.NET ASP app.
|
by: Matt Hamilton |
last post by:
I have an application page with a datagrid with a checkbox on each row. The
user should check the rows they want to modify and then click a button. When
the button is clicked, I have a Click handler that builds a url and then
registers a startup script to open a modal dialog window. With XP SP2
installed the pop-up blocker stops the windows from displaying. Is there any
way around this? My users are too stupid to turn off the popup blocker...
| |
by: Steve Richter |
last post by:
I am getting error in a vbscript:
ActiveX component cant create object: Excel.Application.
The vbscript code is:
Dim objExcel
Set objExcel = CreateObject("Excel.Application")
I am pretty sure it is a permission issue because the script works when
I point the browser directly at the .htm file on the c: drive:
c:\inetpub\wwwroot\DemoSite\VbScriptTest.htm
|
by: Mark Rae |
last post by:
Hi,
My client has asked me to provide a "quick and dirty" way to export the
contents of a DataGrid to both Excel for analysis and Word for editing and
printing, so I'm investigating client-side automation.
N.B. the environment is a totally enclosed intranet, all the client machines
have WinXP, IE6 and Office Pro 2003 with all the latest SPs, and the IE
security settings are sufficient to allow the Local Intranet Zone to
instantiate...
|
by: T |
last post by:
Currently there is an excel shortcut available on the network with
links to 30 or so access db (97 & 2003), since the users are
complaining about all the messages from excel (already open, do you
want to save etc), I thought about creating a html file that would
accomplish the same thing, exept now I get the message do you want to
save the file, and of course I don't. What is the quickest / easist
way to create an interface on the...
|
by: mohitpande |
last post by:
i am using windows 2003 server and iis 5.1 for hosting my web application
and windows xp as client OS
i ahv excel reports in my web application which are not opening in client machine
i hav already configured dcom for excel application
by using Interactive excel reports are opening in server not in client
i hav also tested launching user and this user property
but not working
i hav to open excel report in client machine
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |