Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.dotnet.framework.aspnet,microsoft.public.word.pagelayout,microsoft.public.word.tables
Dave[_3_] Dave[_3_] is offline
external usenet poster
 
Posts: 2
Default why is the color not rendered in Word?

Hi,

i don't know whether it's a Word problem or asp.net problem. So i post it in
both.

I have an asp.net application which produces a html page (see attachment)
with a table containing a gray background colour and another background
colour (red) above this with variable length, representing a value. I pasted
it from IE to here below, but just like in Word, the red colour is not
rendered.
In the attachment, you can see as it is rendered in IE (with the red
colour).

The code of that html page is:
table align="Center" border="0" style="border-width:0px;"
trth
style="font-family:verdana;font-size:6pt;width:100px;"______100%______/th/tr
trtd align="left" style="background-color:LightSlateGray;"span
style="display:inline-block;background-color:Red;width:15px;"/span/td/tr
/table

______100%______








My question is: is there any way to render this table in Word as it's
rendered in IE (with red colour)? Maybe by changing something in the code
....?
Thanks for help
Dave




  #2   Report Post  
Posted to microsoft.public.dotnet.framework.aspnet,microsoft.public.word.pagelayout,microsoft.public.word.tables
Bob Buckland ?:-\) Bob   Buckland ?:-\) is offline
external usenet poster
 
Posts: 2,073
Default why is the color not rendered in Word?

Hi Dave,

Just a quick look at this, but it appears that you've defined single cell table rows with multiple (layered) colors as 'backgrounds'
for each cell and no cell content. Word doesn't really know how to do partial cell color fills for background, so what you're seeing
is the table background 'shading'.

Ifyou work from the other direction to build the table in Word using the table tools, you'll note that the shading (background)
choices available are for selections at the levels of

Table
Cell
Paragraph
Text

Using File=Web Page Preview then View source in the browser will give you the structure of the Word table). You'll note that Word
cut out the inline-block coding you had when it opened your table, basing things on its own internal 'Table Normal' base style.

A couple of ways to work this might be to divide the row into multiple, borderless cells (colums) for the width of the data you're
looking to represent and color/fill each cell, or you could keep the single column/cell rows and fill with the appropriate count of
non-break spaces and apply shading to the text, or even place a colored shape in the table of the right width. Shaded text will
usually overlay the table background colors.

============
"Dave" wrote in message ...
Hi,

i don't know whether it's a Word problem or asp.net problem. So i post it in
both.

I have an asp.net application which produces a html page (see attachment)
with a table containing a gray background colour and another background
colour (red) above this with variable length, representing a value. I pasted
it from IE to here below, but just like in Word, the red colour is not
rendered.
In the attachment, you can see as it is rendered in IE (with the red
colour).

The code of that html page is:
table align="Center" border="0" style="border-width:0px;"
trth
style="font-family:verdana;font-size:6pt;width:100px;"______100%______/th/tr
trtd align="left" style="background-color:LightSlateGray;"span
style="display:inline-block;background-color:Red;width:15px;"/span/td/tr
/table

______100%______


My question is: is there any way to render this table in Word as it's
rendered in IE (with red colour)? Maybe by changing something in the code
....?
Thanks for help
Dave
--

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*


  #3   Report Post  
Posted to microsoft.public.dotnet.framework.aspnet,microsoft.public.word.pagelayout,microsoft.public.word.tables
Dave[_4_] Dave[_4_] is offline
external usenet poster
 
Posts: 2
Default why is the color not rendered in Word?

Thanks Bob

"Bob Buckland ?:-)" 75214.226(At Beautiful Downtown)compuserve.com schreef
in bericht ...
Hi Dave,

Just a quick look at this, but it appears that you've defined single cell
table rows with multiple (layered) colors as 'backgrounds'
for each cell and no cell content. Word doesn't really know how to do
partial cell color fills for background, so what you're seeing
is the table background 'shading'.

Ifyou work from the other direction to build the table in Word using the
table tools, you'll note that the shading (background)
choices available are for selections at the levels of

Table
Cell
Paragraph
Text

Using File=Web Page Preview then View source in the browser will give
you the structure of the Word table). You'll note that Word
cut out the inline-block coding you had when it opened your table, basing
things on its own internal 'Table Normal' base style.

A couple of ways to work this might be to divide the row into multiple,
borderless cells (colums) for the width of the data you're
looking to represent and color/fill each cell, or you could keep the
single column/cell rows and fill with the appropriate count of
non-break spaces and apply shading to the text, or even place a colored
shape in the table of the right width. Shaded text will
usually overlay the table background colors.

============
"Dave" wrote in message
...
Hi,

i don't know whether it's a Word problem or asp.net problem. So i post it
in
both.

I have an asp.net application which produces a html page (see attachment)
with a table containing a gray background colour and another background
colour (red) above this with variable length, representing a value. I
pasted
it from IE to here below, but just like in Word, the red colour is not
rendered.
In the attachment, you can see as it is rendered in IE (with the red
colour).

The code of that html page is:
table align="Center" border="0" style="border-width:0px;"
trth
style="font-family:verdana;font-size:6pt;width:100px;"______100%______/th/tr
trtd align="left" style="background-color:LightSlateGray;"span
style="display:inline-block;background-color:Red;width:15px;"/span/td/tr
/table

______100%______


My question is: is there any way to render this table in Word as it's
rendered in IE (with red colour)? Maybe by changing something in the code
...?
Thanks for help
Dave
--

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
in EQUATION EDITION (WORD) change color(color of numbers and symbo francis is thanks to you . . . Microsoft Word Help 1 November 29th 06 03:45 PM
My color pictures saved to Word don't print in color Lillians Microsoft Word Help 1 July 23rd 06 06:51 AM
How can I change format color in WORD from shading to solid color jdavids Microsoft Word Help 5 April 27th 06 02:28 PM
How Format Painter could copy the font color of a color text? Miksmith69 Microsoft Word Help 1 August 27th 05 06:43 PM
Can you add a custom color to the color pallette in Word? lowen Microsoft Word Help 2 July 30th 05 06:09 AM


All times are GMT +1. The time now is 05:19 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"