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

Use pyA2L for export to excel #11

Open
HemanthMChakravarthy opened this issue Mar 10, 2020 · 3 comments
Open

Use pyA2L for export to excel #11

HemanthMChakravarthy opened this issue Mar 10, 2020 · 3 comments

Comments

@HemanthMChakravarthy
Copy link

I'm trying to use pyA2L for exporting the A2L file into excel file. Is there an API for that?
Or could you help me with a sample implementation?

@christoph2
Copy link
Owner

Hi Hemanth,

I've just written a bare minimum
[getting started] (https://github.com/christoph2/pyA2L/tree/master/docs/getting_started.rst), which should you enable to import an A2L file.

Regarding Excel:
I'm pretty sure you're running Windows, so I highly recommend to install pywin32, if not already done.

Now you can "connect" to Excel this way:

from win32com import client
excel = client.Dispatch("Excel.Application")

That's it!
Here is a nice tutorial.

Just ask, how to put the loose ends together :-)

Cheers Christoph

@henkelma
Copy link

henkelma commented Apr 16, 2020

I would recommend using

https://xlsxwriter.readthedocs.io

to generate the excel file. It is pretty easy to use and works out of the box, independent of platform and preinstalled software.

@krishnarayapudi25
Copy link

Hi @HemanthMChakravarthy did you succesfully converted a2l file into excel?if yes, could you help me ,as i was trying to do the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants