Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 and Excel
Message
From
03/07/2003 12:55:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00806542
Message ID:
00806622
Views:
12
>Cetin
>
>Thanks for being so patient
>
>I dropped an olecontrol and a button on a form
>
>I tried your code as follows in the button click
>
>With thisform.OleControl1
> .Navigate2('file://c:\global\mertest.xls')
> Do While .ReadyState # 4 && Wait for ready state
> EndDo
>endwith
>
>oXLS = thisform.OleControl1.object.document
>oExcel = oXLS.Application
>* Test setting column A,B to red
>oExcel.ActiveWorkbook.ActiveSheet.Range('A:B').Interior.ColorIndex = 3
>
>
>I get ole error code 0x80020006 unknown name against the navigate line.
>The file exists
>
>What have I done wrong?
>
>Thanks
>
>Colin

An OLE control or Web browser control from 'Activex controls' ?
Check control's OleClass. It should read Shell.Explorer.2

PS: When dropped on form displays a 'windows' logo image on a black backgroudn (like webbrowser4)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform