Modify

#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, on May 28, 2011 at 11:27:13 PM

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

comment:2 by Tweaky, on May 29, 2011 at 9:34:23 AM

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

comment:3 by Jon, on May 29, 2011 at 11:18:40 AM

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

comment:4 by Tweaky, on May 29, 2011 at 5:24:22 PM

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, on May 29, 2011 at 11:37:13 PM

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, on May 30, 2011 at 10:25:54 AM

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, on May 30, 2011 at 6:44:14 PM

@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, on May 30, 2011 at 9:21:38 PM

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.