Set Home| Set Favorite|

WPS Office Forum

 Forgot password?
 Register
Search
View: 4932|Reply: 5

ActiveX COM Automation doesn't seem to work in 2013

[ Promote this link! ]
Post time: 2013-06-07 07:47:37
| Show all posts |!read_mode!
In 2012 KS Spreadsheets app, I could open a spreadsheet with a vbscript file with the following contents.
-----
Set myApp = CreateObject("et.Application")
myApp.visible = true
Set myBook = myApp.workbooks.Open("c:\users\h\desktop\line_chart.xls")
-----
In 2013 KSO, the vbscript returns an object error on et.application - even though the et.exe*32 application is opened and in memory. I have tried this against the professional trial version, so assume it should work.
Reply

Use magic Report

 Author| Post time: 2013-06-14 05:19:47
| Show all posts
Bump!
Post time: 2013-08-15 23:15:45
| Show all posts
Try with
Set myApp = CreateObject("KET.Application")
Post time: 2013-09-06 18:57:12
| Show all posts
I developed Kingsoft Office Automatioon from Visual FoxPro 9

I changed the line

oExcel = CreateObject("et.Application")

For

oExcel = CreateObject("Ket.Application")

And Ran well!!!

Somebody can help me I inserted a Picture in a SpreadSheet but i want to set the property Move and Size with Cells to this picture. In Excel automation i write this code line:

loXlsApp.Selection.Placement = 1

What is the code line to do this in Kingsoft Office?

The complete code is:

miobj = loXlsApp.ACTIVESHEET.PICTURES.INSERT("P:\Image.jpg")
miobj.Select
loXlsApp.Selection.Width = 100
loXlsApp.Selection.Height = 100
loXlsApp.Selection.Placement = 1

The last code line show error:
Ole Error Code 0x80020006: Unknown Name

Thanks!!
Post time: 2014-11-20 15:11:23
| Show all posts
In JavaScript and VBScript it is possible to instantiate ActiveX objects from within a web browser. When you see this error message it normally means the component that it was trying to create an instance of is no longer registered on your machine.
Post time: 2017-01-05 06:51:41
| Show all posts
... thе loan apргоvаl time is maхimized. so уou саn get уоuг instаnt tinyurl.com/jq66zo4#TjOJbyJ no crеdit chеск 1oаns with 1ess рapег wогk mеаn thеse lоаns aге no fаx and no сredit chесk.

installment loans 1 hour direct lenders
cash management solutions
short term loans sydney nsw
citi financial loans
personal loans for no credit history and no cosigner

~~~>>    tinyurl.com/hyucaxy#JlYRqvM
You have to log in before you can reply Login | Register

Points Rules

Dark room|Mobile|Archiver|WPS Office   

2019-07-21 05:06 GMT+8 , !processed_in! 0.100120 !seconds!, 15 !queries! .

Powered by Discuz! X3.2

Release 20151208, © 2001-2019 Comsenz Inc.

MultiLingual version, Rev. 469, © 2009-2019 codersclub.org

!fastreply! To Top !return_list!