how to print a dynamically defined table?

B

benny

Hi,

The aspx file produces a table with several cells in each row.
One column has cells contains a label of variable length with a
backgroundcolor, in function of a parameter (x) defined in the code behind,
like this:

l = New Label
l.BackColor = Drawing.Color.Red
l.Width = Math.Round(x)
c.Controls.Add(l)

When running it in the browser, everything is rendered correctly.
When viewing the 'print preview', i see only the tables without
backgrouncolor and the cell containing the variable label is blanco.
When i copy/paste to Word, everything is rendered except the cell with the
variable label which remains blanco.

I can read following code in the browser:

<td align="left" style="background-color:LightSlateGray;"><span
style="display:inline-block;background-color:Red;width:19px;"></span></td>

Any idea how to print the whole table correclty?
Thanks for help
Benny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top