|
-
Dec 23rd, 2002, 10:05 AM
#1
Thread Starter
Member
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
--------------------------------------
-
Dec 23rd, 2002, 11:04 AM
#2
Frenzied Member
I had some formatting issues too. I placed my grid into a HTML table.
hope this helps
-
Dec 23rd, 2002, 11:11 AM
#3
Thread Starter
Member
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?
-
Dec 23rd, 2002, 11:42 AM
#4
Frenzied Member
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
-
Dec 23rd, 2002, 11:50 AM
#5
Thread Starter
Member
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?
-
Dec 23rd, 2002, 11:54 AM
#6
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|