473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 1936
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.