Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8934725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:51:07+00:00 2026-06-15T09:51:07+00:00

Thanks to http://www.technipelago.se/content/technipelago/blog/44 It’s possible to access excel cell by through row iterator and

  • 0

Thanks to http://www.technipelago.se/content/technipelago/blog/44
It’s possible to access excel cell by through row iterator and the column name. But it seems that not possible to access by column name where the name contains white-space. Please give me some pointer on how to make it possible in the ExcelBulider context to access cell by even name with white-space.
Here is the examples to illustrate:

new ExcelBuilder("customers.xls").eachLine([labels:true]) {
    print firsname // this already possible
    print <a column name with space> // I wish to have
}

where firstname is a column name. I wish it possible to access another column of name with space.

I could use a dictionary to encapsulate the mapping from column name to column inedx, to implement the logic of access by column outside of the ExcelBuilder, but I’d like it to be more encapsulated in one single place/logic in ExcelBuilder.

Maybe, I have not had enough knowledge of POI and Groovy’s builder techniques.

Please help!

Thanks,

Yu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:51:08+00:00Added an answer on June 15, 2026 at 9:51 am

    This should work:

    new ExcelBuilder("customers.xls").eachLine([labels:true]) {
        print firsname
        print delegate.'a column name with space'
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See http://www.jciuk.org.uk/events/ In IE 7 the main content column is being pushed down and
What delay-load dependencies\functions are meant for in the following document? http://www.dependencywalker.com/faq.html Thanks
Is possible to use ArcSDE API in .NET(C#) ? http://edndoc.esri.com/arcsde/9.2/api/capi/dbconnects/dbconnects.htm Thanks
is there any javascript object database?? Something like http://www.db4o.com/ but for javascript? thanks
I don't know PHP. I don't want the user to go to http://www.example.com/feedback-thanks.html after
http://www.beltal.com/ Thanks for any information!
This tutorial http://www.blocsoft.com/blog/imageshack.asp shows a great way to upload to imageshack and get a
Thanks to cURL's range function, this command outputs 9 pages: curl 'http://www.conquerclub.com/api.php?mode=gamelist&p1un=barrycarter&page=[1-9]' However, if
http://www.hanselman.com/blog/MixMobileWebSitesWithASPNETMVCAndTheMobileBrowserDefinitionFile.aspx To the sake of simplicity, please try out this. Basically, I am trying
I've read http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx and would like to use it in my mvc application; I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.