Yesterday this there wasn't.
Path and name: C:\cdx\excel1.exe (32 bits)
Size: 1,996,800 bytes
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 04/03/12, 11:46:33
Error description: Error Excel.Application:ACTIVESHEET:PAGESETUP/3 DISP_E_MEMBERNOTFOUND: _ORIENTATION
Args:
[ 1] = N 2
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:_ORIENTATION(0)
Called from: excel1.prg => MAIN(11)
This is the source code of excel1.exe
- Code: Select all Expand view
#include "fivewin.ch"
#define xlLandscape 2
FUNCTION MAIN()
LOCAL oExcel
LOCAL oAs
oExcel := CreateObject( "Excel.Application" )
oExcel:WorkBooks:Add()
oAS := oExcel:ActiveSheet()
Excel Office 7
Any hints
oAs:PageSetup:Orientation := xlLandscape // LINE 11
oAs:PageSetup:CenterHorizontally = .T.
oExcel:visible := .T.
RETURN NIL