COM implementation

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
3 posts • Page 1 of 1
User avatar
aorange
Posts: 147
Joined: Thu Nov 04, 2010 10:07 am

COM implementation

Post by aorange »

Could anyone tell me if the Qt COM implementation changed in WinCC-OA 3.10? I am using the createComObject() function call to access data in stored in Excel files and the properties worksheet.item(1).value2 does not seem to work any longer.

I had this problem a while ago when running my script in a CTRL manager and I was told that the COM implementation of this type of manager is different to that of the UI manager. Now none of them seem to work properly for me.

Here is a snippet of what I am trying to do:

Code: Select all

idispatch xl;
idispatch xlWorkbooks;
idispatch xlWorkbook;
idispatch xlWorksheets;
idispatch xlWorksheet;
idispatch xlRange;

xl = createComObject("Excel.Application");

xlWorkbooks = xl.Workbooks;
xlWorkbook  = xlWorkbooks.Open(fileName);
xlWorksheets = xlWorkSheets.Item(1);

DebugN(xl.Range("A1").Value2 )

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: COM implementation

Post by leoknipp »

Hello Mr. Garcia!

Please notice that the ETM Portal does not substitute the common WinCC OA support.
Therefore please send such detailled questions to your official software contact.

The official address for companies having a valid contract with ETM is support.automation@siemens.com

For details please have a look at the ETM homepage
http://www.etm.at/index_e.asp?id=9&sb1=27

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
aorange
Posts: 147
Joined: Thu Nov 04, 2010 10:07 am

Re: COM implementation

Post by aorange »

Thanks Leopold, I've now sent it to the support team.

Regards

Jonathan

Post Reply
3 posts • Page 1 of 1