Create Excel Workbooks in Mod_Harbour
-
- Posts: 390
- Joined: Sun Nov 06, 2005 3:55 pm
- Location: Southern California, USA
- Been thanked: 1 time
- Contact:
Create Excel Workbooks in Mod_Harbour
Is it possible to access Excel via OLE on Mod_Harbour running on IIS. Any example programs?
Thanks,
Byron ...
Thanks,
Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
Byron Hopp
Matrix Computer Services
- Antonio Linares
- Site Admin
- Posts: 42723
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 93 times
- Been thanked: 106 times
- Contact:
Re: Create Excel Workbooks in Mod_Harbour
Byron,
This works fine with IIS + mod_harbour
This works fine with IIS + mod_harbour
Code: Select all | Expand
function Main()
local oExcel := win_OleCreateObject( "Excel.Application" )
? oExcel:ClassName()
return nil
-
- Posts: 390
- Joined: Sun Nov 06, 2005 3:55 pm
- Location: Southern California, USA
- Been thanked: 1 time
- Contact:
Re: Create Excel Workbooks in Mod_Harbour
Sweet.
Thank you,
Thank you,
Thanks,
Byron Hopp
Matrix Computer Services
Byron Hopp
Matrix Computer Services
- Massimo Linossi
- Posts: 509
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Create Excel Workbooks in Mod_Harbour
Hello Antonio,
can this command work with FastCgi too ?
And what are the methods and classes that can be called ?
Thanks a lot
can this command work with FastCgi too ?
And what are the methods and classes that can be called ?
Thanks a lot
-
- Posts: 390
- Joined: Sun Nov 06, 2005 3:55 pm
- Location: Southern California, USA
- Been thanked: 1 time
- Contact:
Re: Create Excel Workbooks in Mod_Harbour
All,
What is, or is there a difference between:
Win_OleCreateObject
and
CreateObject
functions...
Byron,
What is, or is there a difference between:
Win_OleCreateObject
and
CreateObject
functions...
Byron,
Thanks,
Byron Hopp
Matrix Computer Services
Byron Hopp
Matrix Computer Services
- Antonio Linares
- Site Admin
- Posts: 42723
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 93 times
- Been thanked: 106 times
- Contact:
Re: Create Excel Workbooks in Mod_Harbour
Dear Massimo,
Yes, it should, as that function is provided from Harbour's hbwin.lib and it is linked inside mod_harbour
DATAs and Methods of OLE objects are different for each used OLE object (that belongs to a different OLE class)
In these forums you find many examples for using Excel
Massimo Linossi wrote:Hello Antonio,
can this command work with FastCgi too ?
And what are the methods and classes that can be called ?
Thanks a lot
Yes, it should, as that function is provided from Harbour's hbwin.lib and it is linked inside mod_harbour
DATAs and Methods of OLE objects are different for each used OLE object (that belongs to a different OLE class)
In these forums you find many examples for using Excel
- Antonio Linares
- Site Admin
- Posts: 42723
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 93 times
- Been thanked: 106 times
- Contact:
Re: Create Excel Workbooks in Mod_Harbour
Dear Byron,
Win_OleCreateObject is provided by Harbour's contrib hbwin.lib
CreateObject() is provided by FWH
byron.hopp wrote:All,
What is, or is there a difference between:
Win_OleCreateObject
and
CreateObject
functions...
Byron,
Win_OleCreateObject is provided by Harbour's contrib hbwin.lib
CreateObject() is provided by FWH
- Massimo Linossi
- Posts: 509
- Joined: Mon Oct 17, 2005 10:38 am
- Location: Italy
Re: Create Excel Workbooks in Mod_Harbour
Hi Antonio,
What is the correct sintax for saving a file in Excel ?
Code: Select all | Expand
Sheet1 Error: Argument error
operation: SAVE
[ 1] = C c:/temp/Export_Excel.xlsx
[ 2] = N 51
called from: WIN_OLEAUTO:SAVE, line: 0
called from: pcode.hrb, MAIN, line: 64
called from: HB_HRBDO, line: 0
called from: ..\source\exec.prg, EXECUTE, line: 70
Source:
0062:
0063:
0064 =>oWorkBook:Save(nomefile, 51)
0065: oWorkBook:Close(.T.)
0066: oExcel:Quit()
What is the correct sintax for saving a file in Excel ?
- Antonio Linares
- Site Admin
- Posts: 42723
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 93 times
- Been thanked: 106 times
- Contact: