Hello,
I am using the great example provided by Milan and I need add the following functionality.
1) Perform Save As without dialog box
2) Change font color
3) Change cell shading
Can anyone help?
Sincerely,
Excel and FWH (Save As, Font Color, Cell shading)
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
Re: Excel and FWH (Save As, Font Color, Cell shading)
This is a working sample:
EMG
Code: Select all | Expand
FUNCTION MAIN()
LOCAL oExcel := CREATEOBJECT( "Excel.Application" )
LOCAL oWorkBook := oExcel:WorkBooks:Add()
LOCAL oSheet := oExcel:ActiveSheet
oSheet:Cells( 1, 1 ):Value = "This is a test"
oSheet:Cells( 1, 1 ):Font:Color = 255
oSheet:Cells( 1, 1 ):Interior:Color = 11184810
oSheet:Cells( 1, 1 ):Font:Shadow = .T.
oWorkBook:SaveAs( "c:\xharbour\newfile.xls" )
oExcel:Quit()
RETURN NIL
EMG
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact: