Skip to main content
Solved

Excel Reader and Writer

  • October 10, 2017
  • 2 replies
  • 23 views

Hi,

Could you provide me an example of Excel reader and writer library (https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/xlsx/xlsx.htm)?Is the library MS Excel version dependent (2011, 2013 etc.)? The process involves reading data from some of the geometrical shapes. Is this feature supported?

Thank you !

PS: C++ is preferred.

Best answer by mark2atsafe

Do you mean that there is actually a shape object placed into Excel that you want to read? Or is it spatial information in the form of coordinates? If you have a sample Excel spreadsheet you can provide it would help.

It should be pretty easy to read coordinates and turn them into spatial features. Generally in FME we use a tool called Workbench to do that. If you then absolutely need to do the task programmatically, you can run the workspace using a method called iFMEWorkspaceRunner.

Check out the help and other information in <FME install folder>\\fmeobjects\\cpp - but seriously don't start trying to recreate the Excel reader in C++ unless there's a really good need for that. It's much easier to do in Workbench.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • Best Answer
  • October 10, 2017

Do you mean that there is actually a shape object placed into Excel that you want to read? Or is it spatial information in the form of coordinates? If you have a sample Excel spreadsheet you can provide it would help.

It should be pretty easy to read coordinates and turn them into spatial features. Generally in FME we use a tool called Workbench to do that. If you then absolutely need to do the task programmatically, you can run the workspace using a method called iFMEWorkspaceRunner.

Check out the help and other information in <FME install folder>\\fmeobjects\\cpp - but seriously don't start trying to recreate the Excel reader in C++ unless there's a really good need for that. It's much easier to do in Workbench.


Thank you for the response.

I have attached an image for your reference. Read data from each column including geomertric shapes, write only alphanumerical values to an Excel file. Excel file reading is also included for further processing. Could you please suggest a suitable library?

Regards,

Pooja B