Giter Site home page Giter Site logo

exceltypes's Introduction

This module is no longer necessary for doing Real Time Data in Excel with Python. See https://www.pyxll.com/docs/userguide/rtd.html

exceltypes

The exceltypes package is a set of C++ Python types wrapping a sub-set of the Excel COM types. It is an extension to pywin32 and so pythoncom.PyIUnknown instances can be cast to exceltypes types using the QueryInterface method.

The motivation behind this package is that although the Excel object model can be used via the wrappers generated by win32com's makepy wrappers, these all rely on the IDispatch.Invoke method and at least one type (IRTDUpdateEvent) only works when called via the vtable binding and not when called via its IDispatch interface.

Building

Build using the included setup.py. Use the --help and --help-commands options for more information about available options.

python setup.py install

Examples

Cast a pythoncom.PyIDispatch object to an excel.PyIRTDUpdateEvent object:

import exceltypes

# cast an object to a PyIRTDUpdateEvent instance using QueryInterface
#obj = <a PyIDispatch object passed from Excel>
update_event = obj.QueryInterface(exceltypes.IID_IRTDUpdateEvent)

References

exceltypes's People

Contributors

tonyroberts avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.