473,399 Members | 3,038 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.

manually insert Page break in Devexpress xtrareport

2
Hi,
Iam using devexpress xtrareports with vb.net .I want to insert page break after writting some contents to the Detail area(band). can anybody help me?Thanks in advance
Nandan
I using the following code
Private Function drawtable()
Try
Dim table As XRTable
Dim row() As XRTableRow
Dim cell() As XRTableCell
table = New XRTable

For i As Integer = 1 To 500
ReDim row(i + 1)
row(i) = New XRTableRow
For index As Integer = 1 To 10
ReDim cell(index + 1)
cell(index) = New XRTableCell
cell(index).Width = 90
cell(index).Text = index.ToString()
row(i).Cells.Add(cell(index))
'cell(index).Dispose()
Next
table.Width = 900
table.Rows.Add(row(i))
If i = 5 Then
Detail.PageBreak = DevExpress.XtraReports.UI.PageBreak.AfterBand
End If
Next
table.Borders = DevExpress.XtraPrinting.BorderSide.All
table.BorderWidth = 1
table.BorderColor = Color.Black
table.Location = New System.Drawing.Point(0, 0)
DetailPanel.Width = 900
DetailPanel.Controls.Add(table)
Catch ex As Exception
MsgBox(ex.ToString())
End Try

End Function
Jun 27 '07 #1
1 14040
r035198x
13,262 8TB
Hi,
Iam using devexpress xtrareports with vb.net .I want to insert page break after writting some contents to the Detail area(band). can anybody help me?Thanks in advance
Nandan
I using the following code
Private Function drawtable()
Try
Dim table As XRTable
Dim row() As XRTableRow
Dim cell() As XRTableCell
table = New XRTable

For i As Integer = 1 To 500
ReDim row(i + 1)
row(i) = New XRTableRow
For index As Integer = 1 To 10
ReDim cell(index + 1)
cell(index) = New XRTableCell
cell(index).Width = 90
cell(index).Text = index.ToString()
row(i).Cells.Add(cell(index))
'cell(index).Dispose()
Next
table.Width = 900
table.Rows.Add(row(i))
If i = 5 Then
Detail.PageBreak = DevExpress.XtraReports.UI.PageBreak.AfterBand
End If
Next
table.Borders = DevExpress.XtraPrinting.BorderSide.All
table.BorderWidth = 1
table.BorderColor = Color.Black
table.Location = New System.Drawing.Point(0, 0)
DetailPanel.Width = 900
DetailPanel.Controls.Add(table)
Catch ex As Exception
MsgBox(ex.ToString())
End Try

End Function
You posted this in the cafe/lounge.
I've moved it to the NET forum.
Jun 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: gmnospam | last post by:
How do insert a forced page break to control pagination when I print out the code? This would be someline that is not compiled, only used during code printout. Thanks, gm
1
by: Scanner2001 | last post by:
I am trying to insert a printer page break inside of a form. I do not seem to be able to do this. My form contains 3 asp panels. Each of the panels have dynamically built content, and they are...
0
by: Rudy Ko | last post by:
Hi, All: I'm populating database records into a panel controls and want to render that panel into a HtmlTextWriter which will creating a word document. Do you know how to insert a page break...
2
by: Sachin | last post by:
I am trying to develope a small RTF writer to generate project report at runtime, with a limited RTF writing capability. RTF is one page document only, untill we intentionally put page breaks in it...
1
by: Rudy Ko | last post by:
Hi, All: I'm populating database records into a panel controls and want to render that panel into a HtmlTextWriter which will creating a word document. Do you know how to insert a page break...
1
by: James Wong | last post by:
Dear all, For some reason, I have to write my own code to print a document instead of using report writer. The source is an array with dynamic length. If one page is full, I have to insert a...
16
by: matt | last post by:
hello, ive been trying to figure something out, largely thru trial & error. thought perhaps someone else may have knowledge. i have an html table that consists of blocks of related data --...
7
by: =?Utf-8?B?aXdlYg==?= | last post by:
Can we set page breaks in ASP Pages dynamically based on the data being populated? Akshay.
2
by: matt753 | last post by:
Right now I have an invoice report than works fine for < 10 items on the order, but once there is more it will have the header on the first page with some of the items, then the rest of the items on...
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: 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
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.