Modify

Opened 15 years ago

Closed 15 years ago

#1937 closed Bug (No Bug)

_ExcelReadSheetToArray doesn`t work

Reported by: Tweaky Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.1 Severity: None
Keywords: Cc:

Description

I use Win 7 64 bit and Office 2010 32bit.
$namen = _ExcelreadSheetToArray($oExcel, 1, 1, 10, 20) works fine. I get an array.
$namen = _ExcelreadSheetToArray($oExcel, 5, 1, 10, 20) doesn`t work.
I get @error = 3

Attachments (0)

Change History (8)

comment:1 by Jon, 15 years ago

You have to use 32bit autoit to access 32bit COM objects. Are you doing that?

comment:2 by Tweaky, 15 years ago

Öh, sorry I don`t understand you.
I use the script uncompiled.

comment:3 by Jon, 15 years ago

Are you running the script with AutoIt3.exe or AutoIt3_x64.exe?

comment:4 by Tweaky, 15 years ago

I don`t know.
I press F5 when I am in SciTE an then the script is running

in reply to:  4 comment:5 by Zedna, 15 years ago

Replying to Tweaky:

I don`t know.
I press F5 when I am in SciTE an then the script is running

Copy content of output window in Scite (at bottom), there are all needed information.

comment:6 by Jon, 15 years ago

Try putting this at the top of your script, if it works then you were running the x64 version which can't talk to 32bit COM objects like Excel:

#AutoIt3Wrapper_UseX64=N

comment:7 by Tweaky, 15 years ago

@Zedna

"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "E:\test.au3" /autoit3dir "C:\Program Files (x86)\AutoIt3" /UserParams

+>19:34:24 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0407 Keyboard:00000407 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64)

Running AU3Check (1.54.19.0) from:C:\Program Files (x86)\AutoIt3

+>19:34:24 AU3Check ended.rc:0

Running:(3.3.6.1):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "E:\test.au3"

+>19:34:47 AutoIT3.exe ended.rc:0

Exit code: 0 Time: 24.200

@Jon
the same result

comment:8 by Jon, 15 years ago

Resolution: No Bug
Status: newclosed

You're definately running the x64 version so it's expected that this won't work. Closing the bug. Start a discussion on the forum on how to get your scripts to run using the x86 version of autoit.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.