how to print tables with dynamical content?

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, but when i
print it (with a colorprinter), everything is printed except that cell 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

Forum statistics

Threads
474,262
Messages
2,571,049
Members
48,769
Latest member
Clifft

Latest Threads

Top