Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ONG ONG is offline
external usenet poster
 
Posts: 7
Default Export to Excel API

Hi all,

I found that in many reporting software, they also have a built-in function
to export their report in Excel format, no matter the PC have Excel installed
or not. I searched in web and found that most of the sample code is creating
the Excel COM object (Excel.Application, Excel.Workbook etc....) and then
write their contect into each cell and finally close/release all the
reference. However, is it the way those reporting software I have mentioned
before export their report into Excel format ?
If not, how they can do that ? Is it there is some API which I can call to
achieve it ?

Thanks in advance

ong
  #2   Report Post  
Posted to microsoft.public.excel.programming
ONG ONG is offline
external usenet poster
 
Posts: 7
Default Export to Excel API

Sorry for dupicate post.

Please ignore this message.


"ong" wrote:

Hi all,

I found that in many reporting software, they also have a built-in function
to export their report in Excel format, no matter the PC have Excel installed
or not. I searched in web and found that most of the sample code is creating
the Excel COM object (Excel.Application, Excel.Workbook etc....) and then
write their contect into each cell and finally close/release all the
reference. However, is it the way those reporting software I have mentioned
before export their report into Excel format ?
If not, how they can do that ? Is it there is some API which I can call to
achieve it ?

Thanks in advance

ong

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Export to Excel API

The excel file format would be pretty difficult to create.

But you could create a comma separated value file (plain text file) in your
application.

If excel is on a pc, then the .csv extension will be owned by excel (if the user
hasn't changed it).

If you really want to try, you may want to review the posts by Tom Ogilvy in
this thread:

http://groups.google.co.uk/groups?th...gp13.phx .gbl

ong wrote:

Hi all,

I found that in many reporting software, they also have a built-in function
to export their report in Excel format, no matter the PC have Excel installed
or not. I searched in web and found that most of the sample code is creating
the Excel COM object (Excel.Application, Excel.Workbook etc....) and then
write their contect into each cell and finally close/release all the
reference. However, is it the way those reporting software I have mentioned
before export their report into Excel format ?
If not, how they can do that ? Is it there is some API which I can call to
achieve it ?

Thanks in advance

ong


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Export to Excel API

Ong -

It seems to me that this approach would not work unless Excel is installed on the
host machine. How else does the software activate the Excel object?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

ong wrote:

Hi all,

I found that in many reporting software, they also have a built-in function
to export their report in Excel format, no matter the PC have Excel installed
or not. I searched in web and found that most of the sample code is creating
the Excel COM object (Excel.Application, Excel.Workbook etc....) and then
write their contect into each cell and finally close/release all the
reference. However, is it the way those reporting software I have mentioned
before export their report into Excel format ?
If not, how they can do that ? Is it there is some API which I can call to
achieve it ?

Thanks in advance

ong


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Export to Excel API

He is asking if this is how "commercial" software works -- he describes how
software found on the web does it (using Automation). The answer is No -
"commercial" software writes to the Excel file spec, since as you say,
automation/COM requires Excel to be present.

--
Regards,
Tom Ogilvy

"Jon Peltier" wrote in message
...
Ong -

It seems to me that this approach would not work unless Excel is installed

on the
host machine. How else does the software activate the Excel object?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

ong wrote:

Hi all,

I found that in many reporting software, they also have a built-in

function
to export their report in Excel format, no matter the PC have Excel

installed
or not. I searched in web and found that most of the sample code is

creating
the Excel COM object (Excel.Application, Excel.Workbook etc....) and

then
write their contect into each cell and finally close/release all the
reference. However, is it the way those reporting software I have

mentioned
before export their report into Excel format ?
If not, how they can do that ? Is it there is some API which I can call

to
achieve it ?

Thanks in advance

ong




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export excel to ACT Gus Excel Discussion (Misc queries) 1 January 21st 10 11:22 PM
Export Excel tuncating leading zeros while export to excel from da RHBKV Setting up and Configuration of Excel 1 July 15th 09 01:48 PM
export re-order input fields to export file [csv] madisonpete Excel Worksheet Functions 0 November 30th 07 03:51 PM
Excel export to XML Stephen Excel Discussion (Misc queries) 3 May 30th 07 07:22 PM
Export from excel Maria Excel Discussion (Misc queries) 5 March 29th 05 07:51 PM


All times are GMT +1. The time now is 01:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"