473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

COM excel SaveAs - Web Page?

Hi,

I am trying to allow my Intranet users to upload their Microsoft Office
Documents
and then have them viewed as .html files.

So far, through COM i am able to get WORD documents to convert via this
method

function method_convert_word (){
$_object_word_app = new COM
("Word.application");
$_object_word_doc = new COM
("Word.document");

$_object_word_doc =
$_object_word_app->Documents->Open ($this->path_doc);
$_object_word_doc->SaveAs
($this->path_html,8);

$_object_word_doc = null;
$_object_word_app->Quit();
$_object_word_app = null;

}

But how would i get this to work on an EXCEL document? This is as far as i
have got:

function method_convert_excel (){
$_object_excel_sheet = new COM
("Excel.sheet");
$_object_excel_sheet->Application->Visible = 0;

$_object_excel_sheet->Application->DisplayAlerts = 0;

$_object_excel_workbook =
$_object_excel_sheet->application->Workbooks->Open ($this->path_doc);

$_object_excel_sheet->Application->ActiveWorkBook->SaveAs($this->path_html);
// Here lies my problem!!!!


$_object_excel_sheet->Application->ActiveWorkbook->Close ("False");
unset ($_object_excel_sheet);
}

Can anyone help?
And does anyone know where i can find a set of PHP COM commands for EXCEL.

Thanks for your time
Kyle

email - kward_sunint_co_za
Jul 16 '05 #1
0 2410

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Vikram | last post by:
Hi, Given below is my task. An user can open the xls file from my website (loaded on the top frame). After filling the Excel, he can click a send button at the bottom frame. By clicking the...
1
by: u7djo | last post by:
Hi, I'm currently building a function in Access that creates an Excel spreadsheet but it doesn't look like the Excel object is being destroyed correctly as the Excel module is still showing in the...
6
by: Coleen | last post by:
Hi All :-) I'm using .Net Framework 1.1, VB and need to be able to download the data from a datagrid into an Excel 2000 spreadsheet for our accounting users. Can anyone please point me to a good...
5
by: =?Utf-8?B?U3R1YXJ0?= | last post by:
Hi There I have been having a play around with the following code to display a datagrid in Excel (all from Steve Orr's site): Private Sub btnTechServAccred_Click(ByVal sender As System.Object,...
4
by: =?Utf-8?B?QnJpYW5ESA==?= | last post by:
Hi Does anyone know of a way (via code behind) to pull a single sheet out of a Excel workbook and convert it to a stand alone html document? Thanks Brian
0
by: DPK | last post by:
Hello friends!!! I made a prog. to make the excel. It is running well but when it saves the excel file it open the save dialog box to save the file. Becasue I am using SAVE function here instead...
10
by: Hendri Adriaens | last post by:
Hi, I'm trying to automate the creation of an excel file via COM. I copied my code below. I read many articles about how to release the COM objects that I create. The code below runs just fine...
3
by: =?Utf-8?B?Um9k?= | last post by:
The applicacion sends me the next message "Method not found: Excel._Worksheet.SaveAs (..." I thinks that its about permissions but I do not know how to fix it. I have the same source in two...
3
by: girlswannahavefun | last post by:
Hi, This is my first post on these forums and I am very new to c# and .Net, so please be gentle:) I have an ASP application that is supposed to put data into a workbook and then save it and open...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.