how to print a dynamically defined table?

Discussion in 'ASP .Net Web Controls' started by benny, Jan 12, 2007.

  1. benny

    benny Guest

    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
     
    benny, Jan 12, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oodini
    Replies:
    1
    Views:
    1,785
    Keith Thompson
    Sep 27, 2005
  2. Angel Tsankov
    Replies:
    1
    Views:
    872
    Victor Bazarov
    Apr 5, 2006
  3. keto
    Replies:
    0
    Views:
    976
  4. Replies:
    1
    Views:
    509
    Sion Arrowsmith
    Jul 10, 2008
  5. David Cournapeau

    print a vs print '%s' % a vs print '%f' a

    David Cournapeau, Dec 30, 2008, in forum: Python
    Replies:
    0
    Views:
    366
    David Cournapeau
    Dec 30, 2008
Loading...

Share This Page