473,799 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table formatting on a web form

Greetings. I am having some difficulty with formatting a table on a web form
and hope someone can help. Currently the table has a single column.

Desired output format (X = text , X = number)

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXX.
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXX.
XXXXXXXXXX ####
XXXX ########

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXX.
Etc.

Current output:
Text XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXX.
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXX.
XXXXXXXXXX ####
XXXX ########

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXX.
Etc.

I have two issues with doing this:
1. Inserting a blank row: currently I have the row number being placed into
rox(x).col(0) and then turning forecolor to white which looks good on the
screen but when the page is printed the number shows. Is there a way to
insert a blank row?

2. Indent formatting of selected rows. I have tried having leading and
trailing spaces ie
“ XXXXX ####” but the spaces are all removed at
runtime. I have tried having 4 columns and then set the colspan to 4 on the
rows and put the indented data in col(1) and col(2) but it give me the
following result

XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX .
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX

So I either need to find out how to allow spaces in the text or make the
colspan work correctly, any help would be appreciated.

Thanks,
Mike
Jul 21 '05 #1
2 1818
The lines that are not indented do a ColSpan = 2. The indented lines place
to <td width=100>&nbsp ;</td><td>XXXX #####</td>

That should do the trick.
Chris

"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:F6******** *************** ***********@mic rosoft.com...
Greetings. I am having some difficulty with formatting a table on a web
form
and hope someone can help. Currently the table has a single column.

Desired output format (X = text , X = number)

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXX.
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXX.
XXXXXXXXXX ####
XXXX ########

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXX.
Etc.

Current output:
Text XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXX.
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXX.
XXXXXXXXXX ####
XXXX ########

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXX.
Etc.

I have two issues with doing this:
1. Inserting a blank row: currently I have the row number being placed
into
rox(x).col(0) and then turning forecolor to white which looks good on the
screen but when the page is printed the number shows. Is there a way to
insert a blank row?

2. Indent formatting of selected rows. I have tried having leading and
trailing spaces ie
" XXXXX ####" but the spaces are all removed at
runtime. I have tried having 4 columns and then set the colspan to 4 on
the
rows and put the indented data in col(1) and col(2) but it give me the
following result

XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX .
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX

So I either need to find out how to allow spaces in the text or make the
colspan work correctly, any help would be appreciated.

Thanks,
Mike

Jul 21 '05 #2
Thanks Chirs, "The Master of the thing that was significant to me..."

Worked like a charm....

Mike

"Chris, Master of All Things Insignifican" wrote:
The lines that are not indented do a ColSpan = 2. The indented lines place
to <td width=100> </td><td>XXXX #####</td>

That should do the trick.
Chris

"Mike" <Mi**@discussio ns.microsoft.co m> wrote in message
news:F6******** *************** ***********@mic rosoft.com...
Greetings. I am having some difficulty with formatting a table on a web
form
and hope someone can help. Currently the table has a single column.

Desired output format (X = text , X = number)

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXX.
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXX.
XXXXXXXXXX ####
XXXX ########

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXX.
Etc.

Current output:
Text XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXX.
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXX.
XXXXXXXXXX ####
XXXX ########

XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXXXXXXXXXXXX XXX.
Etc.

I have two issues with doing this:
1. Inserting a blank row: currently I have the row number being placed
into
rox(x).col(0) and then turning forecolor to white which looks good on the
screen but when the page is printed the number shows. Is there a way to
insert a blank row?

2. Indent formatting of selected rows. I have tried having leading and
trailing spaces ie
" XXXXX ####" but the spaces are all removed at
runtime. I have tried having 4 columns and then set the colspan to 4 on
the
rows and put the indented data in col(1) and col(2) but it give me the
following result

XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX .
XXXXXXXXXXXXX ###
XXXXXXXX ######
XXXXXXXXXXXXX ####
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX
XXXXXXXXXXXXXXX XXXXX

So I either need to find out how to allow spaces in the text or make the
colspan work correctly, any help would be appreciated.

Thanks,
Mike


Jul 21 '05 #3

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

Similar topics

2
2919
by: Asad | last post by:
I have a form on a page that has several textareas, and textboxes inside a table (so the table containing the textboxes is also inside the FORM tag). I want to replace the textareas with simple text instead. But I want to keep the format of my page EXACTLY the same. However, the problem is that ... 1) Javascript won't let me create say a one-cell TABLE containing some text (e.g. textarea's value) and then insertBefore an element in the
3
1028
by: milkyway | last post by:
Hello, I am trying to make the following on an HTML page FIRST NAME LAST NAME ADDRESS CITY STATE ZIPCODE BUTTON(CONTINUE) .......
4
2715
by: deko | last post by:
I've heard it's best not to have any formatting specified for Table fields (except perhaps Currency), and instead set the formatting in the Form or Report. But what about Yes/No fields? When I create a Yes/No field in a Table the default format is "Yes/No". If I clear or change the Format property in the General Tab (and keep the default "Checkbox" in the Lookup tab), the field still looks the same when I open the table in Datasheet...
4
2083
by: Dave Brydon | last post by:
Access 2003 I have a combo box in my personnel table, which draws its data from a trade code table; the original field in the code table, is numeric, Long Integer, and formatted with 5 zero's . The FK in the personnel table is also Long Integer, and formatted as the original field with zero's. Data Example: Original: 5, 9, 15, 99, 128, etc.
2
2611
by: Richard Hollenbeck | last post by:
I use a temporary table to assemble unrelated data for specific forms and reports. After each use of this table, I have a delete query which empties the table out for its next use. I have one field I want to populate with the record number as it appears in the form. That way I can use a comparison with Me.CurrentRecord to change the background color of the text boxes for the OnCurrent property. I'm doing this because I want the record...
10
3164
by: Coleen | last post by:
Hi all :-) I have a weird formatting problem with an HTML table that I am populating using VB.Net and HTML. Here is the snippet of code for the cell I'm trying to format: Dim ld_tot_pet_clean_fee_calc As Double ld_tot_pet_clean_fee_calc = li_net_total_calc * 0.0075 ld_tot_pet_clean_fee = lo_misc_func.FormatMC(ld_tot_pet_clean_fee_calc, "D") Session("tot_pet_clean_fee") = lo_misc_func.FormatMC(ld_tot_pet_clean_fee, "D")...
2
279
by: Mike | last post by:
Greetings. I am having some difficulty with formatting a table on a web form and hope someone can help. Currently the table has a single column. Desired output format (X = text , X = number) XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX. XXXXXXXXXXXXX ### XXXXXXXX ######
4
2943
by: manwslohand | last post by:
Newbie here. Stupid question follows. Please be kind. I'm using c#.net 2003 and have a web form that uses a datagrid to display a list from a table. It's working okay but I want to expand the features of the data being displayed. I've tried the datagrid and data repeater but I can't customize it to the level I want. I need to be able to, depending on the data in the table, turn on/off certain graphics on each line and would selectively...
139
14242
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
0
9686
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9540
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10475
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.