Excel problem

Excel problem

Postby MarcoBoschi » Tue Apr 03, 2012 9:53 am

This is a new today error.
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
 
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: Excel problem S.O.L.V.E.D.

Postby MarcoBoschi » Tue Apr 03, 2012 10:20 am

Dear friends
print spooler was STOPPED
all printers dissappear
Excel disable all page properties

...yesterday I disabled print spooler for a little problem:
in win7 hd led blink every second and in google I searched that the problem is print spooler related.
:shock:
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 83 guests