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 7803025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:26:20+00:00 2026-06-02T01:26:20+00:00

I generate my spreadsheet with xslt and want a cell with wrapped text (or

  • 0

I generate my spreadsheet with xslt and want a cell with wrapped text (or better: a text with a line break in it).

So my xslt generates the following XML for the sheetdata:

<sheetData>
  <row r="1">
    <c r="A1" t="inlineStr">
      <is>
        <t>
          a simple string
          line break jeeeehaaa
        </t>
      </is>
    </c>
  </row>
</sheetData>

After I’m finished building my Workbook, I open it in Excel; and there’s no line break, just a simple one-line string in A1.

has anyone a solution to this? Doesn’t have to be in xml or xslt (but would be nice). I could also do some things in c#

  • 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-02T01:26:22+00:00Added an answer on June 2, 2026 at 1:26 am

    In excel, all style related information is stored in style.xml file.
    So, the wrapping information should be stored in style.xml and the style Id should be referred in <c r="A1" t="inlineStr"> as one more attribute ‘s’ (which means style). Let me show what do I mean by this..

    I do have an excel with some text and the cell is wrapped indeed.

    If I see its sheet.xml data it would have s="1" attribute-value item in <c> tag.

    So, if I open style.xml and see the cell style info I’ll get <cellXfs> tag and a <xf> child tag where I get a <alignment> tag with wrapText attribute with value as “1” (“true” indeed).

    I’m unable to post images since I’m new to SO. Hope this helps 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the following Spreadsheet gem to generate an excel sheet from ruby-on-rails..
I have a 3rd Party tool that generates an xml spreadsheet (*.xls). I have
For document exchange, I would like to generate OpenOffice.org text and spreadsheet documents. So
I want to generate an excel spreadsheet with three horizontal panes. Report Header Report
To generate the following markup: <label class=foo>Bar</label> The PHP will look something like: <?php
I generate a figure in MATLAB with large amount of elements (100000+) and want
In java, Is there a elegant way to Generate Excel spreadsheet from List?
I'm using Coldfusion 9 to generate an Excel spreadsheet. I'm using the new functions,
We generate an Excel spreadsheet in our C# .net website by writing out an
I'm using cfspreadsheet to generate an excel spreadsheet. I'm adding rows one by one.

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.