473,466 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Gridlines don't print on page 2 or more

I have a datagrid which I am using as a report in a web
application. When I go to print the page from Internet
Explorer, the gridlines on the first page print but on
subsequent pages the gridlines do not print. On the Print
Preview dialog, they display the same as above with the
gridlines on the first page but not on subsequent pages.

How do I fix this?

Thanks,

Billy Jacobs
Jul 19 '05 #1
3 1937
1. There is no attached page for me to try.
2. It is not only occurring on my machine and it is not
the printer settings.
3.It prints the gridlines on the first page but not on the
second page or any page after that.
4. In print preview it shows the gridlines on the first
page, but not on any other page.

Please help

Thanks,

Billy
-----Original Message-----

Hi Billy,

The attached page works fine. Please try it on your side. If the problemstill occurs, I think the problem may be related to your IE or Printersettings.

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and

confers no rights.
Jul 19 '05 #2
Also: I just checked and it works with a different
datagrid style. The style I am using which I am having the
problem with is "Colorful" with gridlines set to both.

Billy
-----Original Message-----

Hi Billy,

The attached page works fine. Please try it on your side. If the problemstill occurs, I think the problem may be related to your IE or Printersettings.

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and

confers no rights.
Jul 19 '05 #3
Hi Billy,

The code below works fine on my side. Would you please post your code?

<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>

<HTML>

<script language="VB" runat="server">

Dim ds As New DataSet()

Sub Page_Load(Sender As Object, E As EventArgs)
Dim sql as String = "select top 80 CustomerID, CompanyName,
ContactName, ContactTitle from customers"
Dim conn as String = "server=sha-china-xp;database=northwind;user
id=sa;password=1234"
Dim da As New SqlDataAdapter(sql, conn)
da.Fill(ds)
DataGrid1.DataSource = ds.Tables(0).DefaultView
DataGrid1.DataBind()
End Sub

</script>

<body>

<form id="Form1" method="post" runat="server">
<asp:DataGrid id="DataGrid1" CellSpacing="0" runat="server"></asp:DataGrid>
</form>

</body>
</HTML>

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: middletree | last post by:
Like many people here, I've been trying to generate a spreadsheet on an ASP page. In my case, it's Intranet, so I can't provide you with a link. But the problem I have been fighting is a simple...
0
by: Erick | last post by:
Greetings, I have a few staffers using an Access2K database. It's an .mde shared out on a newtwork share. 4 users use it and only one cannot see or print the gridlines from a report that everyone...
0
by: LouV | last post by:
The code below exports a datagrid from a dataset stored in a session variable without a hitch. It prompts the user if they would like to open or save the exported spreadsheet. But when the user...
3
by: Lars Netzel | last post by:
Hi! How can I get ONLY vertical Gridlines WITHOUT a border around the whole grid? I have "GridLines=vertical" and "BorderStyle=None" and still I have a border around the whole grid! /Lars
6
by: Billy Jacobs | last post by:
I have a datagrid which I am using as a report in a web application. When I go to print the page from Internet Explorer, the gridlines on the first page print but on subsequent pages the gridlines...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
2
by: John 3:16 | last post by:
Hello... I have an .aspx page that has a grid control. It works fine but when you print.. the gride lines only show on the 1st page. Has anyone experienced anything like this or can anyone...
2
by: Matt | last post by:
I can not get the horizontal gridlines to show up on a Gridview. I have changed the selection to both and horizontal with no sign of them. Also, when I set the Gridlines property to Vertical or...
7
by: itm | last post by:
I have a mail out to send to a group of owners with multiple accounts. I want to limit the number of accounts that print on the first page to 20. I want remaining accounts to print on a second...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.