Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xls / office loader via wine #20

Open
evilsocket opened this issue Jan 17, 2025 · 0 comments
Open

xls / office loader via wine #20

evilsocket opened this issue Jan 17, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@evilsocket
Copy link
Collaborator

evilsocket commented Jan 17, 2025

It would be cool to implement an Office document loader with something like this https://github.com/xeden3/docker-excel-macro-run

The base image essentially installs Office via a dubious exe hosted on github and then launches it via wine to load the document:

...
    # download office2010 4in1
    curl -o /root/Office2010_4in1_20210124.exe -L https://github.com/xeden3/docker-office-python-core/releases/download/v0.0/Office2010_4in1_20210124.exe && \
    # install office2010, https://www.xb21cn.com/267.html
    xvfb-run winecfg -v win8 && \
    curl -o /opt/wineprefix/drive_c/windows/Fonts/simsun.ttc -L https://github.com/xeden3/docker-office-python-core/releases/download/v0.0/simsun.ttc && \
    xvfb-run wine /root/Office2010_4in1_20210124.exe /S && \
...

The script is using win32com.client.Dispatch("Excel.Application") to execute the given macro. Ideally we'd extend the logic to auto detect the macro name and execute it without its name being explicitly provided.

@evilsocket evilsocket added the enhancement New feature or request label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant