473,320 Members | 1,946 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,320 software developers and data experts.

Gridview printing

I have a problem trying to print a gridview in framework 2.0. I have had
quite a lot of experience writing HTML reports and printing (with page
breaks) but I am stumped how to do this with a gridview. Since the report
will almost certainly span more than 1 page, I have tried using a counter as
the datarow is created and inserting a break (H1) in the relevent places, but
I still get a full gridview with all the breaks at the top of the file. I
have also tried to use the rowcreated event to 'Page' through, inserting
breaks like this:

itemcount += itemcount
If itemcount Mod 10 = 0 Then
GridView1.PageIndex = GridView1.PageIndex + 1

End If

this does not seem to work. So any ideas would be great, otherwise I suppose
I will have to reconsider using Crystal!

Thanks in advance
Nov 19 '05 #1
0 3032

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

Similar topics

4
by: CSharpguy | last post by:
My web app is using master pages, On the content page I'm using a GridView. I need to print my GridView and I need to exclude the HyperLink columns. How can I print my content page and exclude the...
6
by: CSharpguy | last post by:
In my gridview I have 2 -3 template fields which are hyperlinks. I allow the user to print this grid. When the grid prints it also prints the links, how can I take the user to a print preview page...
2
by: =?Utf-8?B?ZnJhbms=?= | last post by:
I tried to print gridview. There is one problem I can't fixed: I can't get the color of the header in the output of the printing, Can anybody give me a help
1
by: arun | last post by:
Hi, I have an sql statement that returns some urls. eg:- select 'http://localhost:1000/Sample/Default.aspx?cd=' + dbo.GetIDForObject( 'Test') as TestCasesInTestRunLink from Table When...
3
by: Steve Kershaw | last post by:
Hi, I need to print the contents (rows and columns) of a GridView to the default printer. Is there any way of doing this easly? Thanks Steve
1
by: feltra | last post by:
Hi, The following is from my friend who has only restricted net access from his office and hence cannot post.... ...
2
by: =?Utf-8?B?R2lyaXNo?= | last post by:
Hello All, I am displaying a report in a gridview and also in a separte html table. When the user clicks a print button, I print the report (from gridview or from html table). But I want to repeat...
2
by: Ralf | last post by:
I have a custome request to print a gridview with lots of columns, 31 to be exact. I know how to print out a gridview, done it already for a GV with 6 columns. But, this GV is very wide and will...
2
by: Andez | last post by:
All, I've got a GridView in a scrollable panel (in ASP.NET 2.0), which when printed will remove the scrolling part and expand to fit the whole GridView in which is OK - prints fine. I've also...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.