Reading a button on Excel using PHP - php

I'm working with the site which is required to read the excel file cell data using PHP. And I'm successfully made it using the PHP EXCEL. As the progress moved, My client require me to read the button on the excel file which is an excel macro button. So he can able to trigger it, using the site, without signing in to the server.
Is this possible? Is there anyone can give me an idea regarding this task?

Form data (such as buttons) and macros are not supported by PHPExcel.
To access buttons and execute macros, you'd need a solution based on MS Excel itself (I don't believe Open/Libre Office supports MS Excel macros or VBA Script) which limits you to COM and a Windows platform

Related

Refresh Excel PowerQuery Table before import at ftp via PHP

Hello i try to set up automate cron import to prestashop using excel power query table. The problem is i have table edited at my computer fetching data from external source. I need to write a script in PHP that will refresh the xlsx file before sending it to import php.
Now the steps are, Open Excel, Press Refresh All, Save, Upload to FTP, Run Import.
I want to automate these steps for PHP.
Thank you.

How to upload spreadsheet with script and enable triggers remotely?

I'd like to be able to upload a new spreadsheet to my drive remotely from my server as needed (using Google's PHP Drive API, say), and it to trigger to run once daily at a given time, then read that spreadsheet remotely once a day after the script runs. I want to fully automate this. I don't want to have to manually install the sheet and set up the trigger for each.
The guides, API, tutorials I've found have not been very clear about how to specifically upload a spreadsheet with an associated script and set triggers. Is this possible? And how do I go about it? If there are some good resources I've missed, much appreciate pointing me to them.
Thanks.
There is no way yo "upload" a Google spreadsheet from a local server since they are online documents. You could use a template that has an embedded script but the script would require authorization to run so it won't fit your requirement neither.
Why don't you use a standalone script (or an embedded script in a "master sheet") that would do what you need to do in all the spreadsheets you create (or even upload/convert from ods or excel files with data) ?
One single script can access any number of spreadsheets and do about everything an embedded script can do in these sheets while requiring only one single authorization. This script could create the files and work on a daily timer to do the job.

Send a File Directly for Printing

I have an app to make and the basic idea is that a client sits on the master computer whilst a server on the other. You drag and drop a file from one of the child computers, enter the number of copies and send it. (VIA TCP) it is received on the other end and printed.
The problem I am facing is that HOW TO send the FILE (.docx, .pdf, .png, .pptx, etc. ANY FORMAT) for printing.
I can use .NET (ANY), JSP and PHP :)
See this question for an answer on how to automate printing documents using acrobat reader. Basically, you would upload the file to the server and then call the respective acrobat reader command to print the document on a specified printer. To do the same in word, it's a bit more complex, because you'll have to use DDE (dynamic data exchange). Consult the MSDN for further information, I haven't been using it before.

Interfacing PHP with an Excel spreadsheet / VBA Script

I have a client that has developed an Excel spreadsheet to calculate various statistics using VBA Script (Excel/VBA is not my forte to say the least). He wants me to create a web front-end for this (I will be using PHP / CakePHP) that will have a simple form for inputting cell values, will query the spreadsheet and return the values for display on the website.
The client does not want to convert the Excel/VBA script to another language - he wants to keep it in a 'silo' and just have the website query the existing script.
Is this possible? Any libraries that can help? How could I go about this?
You'd need to run MS Excel itself, and use COM... it's the only method of which I'm aware that would allow you to run VBAScript within the Excel workbook from your PHP. You couldn't even use OpenOffice for this, so it limits you to a Windows Server with MS Excel installed

Read online data into Excel - from PHP server?

I want to connect Excel to my web site, as an external data source, and thereby run reports on the data that is fetched from my website. I have heard that this should be possible to do and Excel seems to support it, but I have little knowledge on how I actually should build the backend on my PHP server to serve the data. How do I do it?
I am well aware of the fact of being able to create and read Excel files on a PHP server, but that's not what I am after.
Excel supports IQY, internet queries.
You may define one in excel pointing at your webserver and get the data right into excel.
You may use formatted html-tables at your server. Colors will be preserved.
the iry-format is described at:
http://support.microsoft.com/kb/157482
and supports both post/get and parameters.
regards
//t

Categories