Hi All
Is it possible to make excel open full screen instead of just flashing the excel icon on the taskbar.
I use this - oExcel:Visible := TRUE
Regards
Colin
Hi All
Is it possible to make excel open full screen instead of just flashing the excel icon on the taskbar.
I use this - oExcel:Visible := TRUE
Regards
Colin
Hi Jeff
Thanks but I would rather not start playing around with clients terminal server and workstations registry settings.
They will just have to click on the icon to open the spreadsheet.
Cheers
Colin
try this:
BringWindowToTop( FindWindow( 0, "Microsoft Excel - Book1" ) )
Replace Book1 with the name of the document
cFile:="e:\dtd\dtd.xlsx"
oExcel := TOleAuto():New( "Excel.Application" )
oExcel:WorkBooks:Open(ALLTRIM(cFile))
oSheet := oExcel:ActiveSheet()
oExcel:Visible = .T.
hWnd:=oExcel:hWnd
ShowWindow(hWnd, 3) //SW_MAXIMIZE=3 SW_NORMAL=1 SW_MINIMIZE=6
BringWindowToTop(hWnd)