Hi all, Could you please advice on how to construct such a thing? I am an occasional Python user and I have failed in my attempts to assemble such a data structure. Reading the archives of this mailing list and comtypes documentation I have managed a 1D SAFEARRAY of VARIANTs, and a 1D SAFEARRAY of 1D SAFEARRAYs of VARIANTs, but that is not what I need.
The innermost VARIANTs could contain different types. For example in a 3x2 structure the first column could be strings, while the second one could be doubles. Also row-vectors and column-vectors are still represented as degenerate 2D structures (not 1D). I am trying to call an in-house library written in C++ for Excel. Excel ranges are conveniently handled as 2D SAFEARRAYs of VARIANTs. So this is my motivation to figure this out. Many thanks for your help, Gorby _________________________________________________________________________________ This email (including any attachments to it) is confidential, legally privileged, subject to copyright and is sent for the personal attention of the intended recipient only. If you have received this email in error, please advise us immediately and delete it. You are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although we have taken reasonable precautions to ensure no viruses are present in this email, we cannot accept responsibility for any loss or damage arising from the viruses in this email or attachments. We exclude any liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided in this email or its attachments, unless that information is subsequently confirmed in writing. _________________________________________________________________________________
_______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users