-
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
--------------------------------------
-
I had some formatting issues too. I placed my grid into a HTML table.
hope this helps
-
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?
-
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
-
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?
-