473,386 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Excel wrap inside cell

What ASP code can I use, for an ASP-generated spreadsheet, to force a cell
to wrap if the content is longer than the width I have specified for that
cell?
Sep 16 '05 #1
6 5665

middletree wrote:
What ASP code can I use, for an ASP-generated spreadsheet, to force a cell
to wrap if the content is longer than the width I have specified for that
cell?


Here's the style that I use for that:

..text {mso-number-format:General; text-align:general;white-space:
normal;mso-spacerun: yes }

Sep 19 '05 #2
Didn't work for me.
<la**********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

middletree wrote:
What ASP code can I use, for an ASP-generated spreadsheet, to force a cell to wrap if the content is longer than the width I have specified for that cell?


Here's the style that I use for that:

.text {mso-number-format:General; text-align:general;white-space:
normal;mso-spacerun: yes }

Sep 19 '05 #3

middletree wrote:
Didn't work for me.
<la**********@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...

middletree wrote:
What ASP code can I use, for an ASP-generated spreadsheet, to force a cell to wrap if the content is longer than the width I have specified for that cell?


Here's the style that I use for that:

.text {mso-number-format:General; text-align:general;white-space:
normal;mso-spacerun: yes }


You put it in the TD?? I.e.

<td class="text"></td>

Sep 20 '05 #4
>
You put it in the TD?? I.e.

<td class="text"></td>

Yes, that's exactly what I did. Put the style code in the head section (no
external CSS for this page)

Sep 20 '05 #5

middletree wrote:

You put it in the TD?? I.e.

<td class="text"></td>

Yes, that's exactly what I did. Put the style code in the head section (no
external CSS for this page)


We should also be clear, this is for Excel right? What version?

This works for me with 2000 and higher.

What I do when I'm trying to figure out what code to use for a
particular Excel formatting is to create a 1 cell excel file, and save
as a web page. Then inspect the code to see what style it generates
for that cell.

Sep 21 '05 #6
I'm using Excel 2003. I'll be glad to post my ASP code if that will help.
Sep 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Norman Fritag | last post by:
Hi there, 1) I is there a more elegant way, more professionally way this export could done, as I have written some code for the first time? 2) who could I wrap text cell a1 a3 via code ? 3) is...
6
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C#...
0
by: Carlos Lozano | last post by:
Hi, I have an application that creates Excel files and I ma having trouble formatting cells. I fill all cells required, sewt fonts and everything, but have a cell that contains multiple text...
1
by: Glen Vermeylen | last post by:
Hi, For a project at school we have to automate the assignment of seats in classrooms to students during the exams. The lady who previously did everything manually kept the layouts of the...
8
by: Sam | last post by:
Hi All, I posted this message few days ago. No one has answered so far. I just would like to know if it is possible to do or not. Even if you can not tell me how to do this, maybe you know which...
6
by: Kevin Humphreys | last post by:
Hi There, I am trying to export a recordset to an excel file using the Content Type below in the header. Response.ContentType = "application/vnd.ms-excel" Which works fine however the...
0
by: Bryan Ax | last post by:
I'm trying to fix a bug in someone else's code. He's got a string saved in a database such as: <xsl:variable name="Var1"> <xsl:choose> <xsl:when test="@SomeAttribute &gt; 1'"> <xsl:value-of...
6
by: McKirahan | last post by:
I an using ASP to read a database table and generate an HTML table which is save via FSO with a file extension of .xls which opens up in MS-Excel. I am inserting several lines of text into a cell...
2
by: Brian Parker | last post by:
I need to format text in cell in an Excel worksheet and I need to do this using C#. I've seen code that will set the format for the whole cell, but I just need to format one character in that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.