Results 1 to 6 of 6

Thread: Printing question...

  1. #1

    Thread Starter
    Member Ooogaleee's Avatar
    Join Date
    Nov 2002
    Location
    Jacksonville, FL
    Posts
    52

    Post Printing question...

    Funny little problem I'm having. I am passing a session variable containing a querystring to a "printer-friendly" page (black and white datagrid, small font, no graphics, etc...). When the datagrid is larger than one printed page, the second is losing the borders between the cells. Very wierd...

    Anyone else come across this, or does anyone have any ideas?

    Here's the code if it helps...

    Thanks....Ooogs

    -------------------------------------

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Try
    lbl1.Text = Session("what") & " sorted by " & Session("sortee")
    hl1.NavigateUrl = Session("fromwhere")
    hl2.NavigateUrl = "main.aspx"
    OleDbConnection1.Open()
    Dim cmd As New OleDb.OleDbCommand()
    cmd.Connection = OleDbConnection1
    cmd.CommandText = Session("thequery")
    Dim datareader As OleDb.OleDbDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
    dg1.DataSource = datareader
    dg1.DataBind()
    OleDbConnection1.Close()
    Catch ex As OleDb.OleDbException
    lblError.Text = "There has been an error. Please advise MIS of this error message: " & ex.Message
    End Try
    End Sub

    --------------------------------------

  2. #2
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    I had some formatting issues too. I placed my grid into a HTML table.

    hope this helps

  3. #3

    Thread Starter
    Member Ooogaleee's Avatar
    Join Date
    Nov 2002
    Location
    Jacksonville, FL
    Posts
    52

    printing...

    Do you mean place the datagrid into the single cell of an HTML (1x1) table control? Should it be an ASP table? Does it matter?

  4. #4
    Frenzied Member EyeTalion's Avatar
    Join Date
    Jul 2000
    Location
    New York
    Posts
    1,075
    yes, thats what I did. HTML table and dragged the grid into a single cell. You can delete the table rows you aren't using.

    good luck

  5. #5

    Thread Starter
    Member Ooogaleee's Avatar
    Join Date
    Nov 2002
    Location
    Jacksonville, FL
    Posts
    52

    HTML table

    OK, maybe I'm being dense, but how do I remove the "extra" 8 cells that come up on the default HTML table control?

  6. #6

    Thread Starter
    Member Ooogaleee's Avatar
    Join Date
    Nov 2002
    Location
    Jacksonville, FL
    Posts
    52
    I figured it out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width