Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.dotnet.framework.aspnet,microsoft.public.word.pagelayout,microsoft.public.word.tables
|
|||
|
|||
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
Posted to microsoft.public.dotnet.framework.aspnet,microsoft.public.word.pagelayout,microsoft.public.word.tables
|
|||
|
|||
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
Posted to microsoft.public.dotnet.framework.aspnet,microsoft.public.word.pagelayout,microsoft.public.word.tables
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
in EQUATION EDITION (WORD) change color(color of numbers and symbo | Microsoft Word Help | |||
My color pictures saved to Word don't print in color | Microsoft Word Help | |||
How can I change format color in WORD from shading to solid color | Microsoft Word Help | |||
How Format Painter could copy the font color of a color text? | Microsoft Word Help | |||
Can you add a custom color to the color pallette in Word? | Microsoft Word Help |