473,668 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

manually insert Page break in Devexpress xtrareport

2 New Member
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).Wid th = 90
cell(index).Tex t = index.ToString( )
row(i).Cells.Ad d(cell(index))
'cell(index).Di spose()
Next
table.Width = 900
table.Rows.Add( row(i))
If i = 5 Then
Detail.PageBrea k = DevExpress.Xtra Reports.UI.Page Break.AfterBand
End If
Next
table.Borders = DevExpress.Xtra Printing.Border Side.All
table.BorderWid th = 1
table.BorderCol or = Color.Black
table.Location = New System.Drawing. Point(0, 0)
DetailPanel.Wid th = 900
DetailPanel.Con trols.Add(table )
Catch ex As Exception
MsgBox(ex.ToStr ing())
End Try

End Function
Jun 27 '07 #1
1 14178
r035198x
13,262 MVP
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).Wid th = 90
cell(index).Tex t = index.ToString( )
row(i).Cells.Ad d(cell(index))
'cell(index).Di spose()
Next
table.Width = 900
table.Rows.Add( row(i))
If i = 5 Then
Detail.PageBrea k = DevExpress.Xtra Reports.UI.Page Break.AfterBand
End If
Next
table.Borders = DevExpress.Xtra Printing.Border Side.All
table.BorderWid th = 1
table.BorderCol or = Color.Black
table.Location = New System.Drawing. Point(0, 0)
DetailPanel.Wid th = 900
DetailPanel.Con trols.Add(table )
Catch ex As Exception
MsgBox(ex.ToStr ing())
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
1725
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
785
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 dynamically displayed based on certain conditions. What I want to do, and I thought this would be pretty easy, is when printing, start each panels content on a new page. It is ok if the content spans multiple pages, just want to start it on a new...
0
1209
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 between each records? Thank you for the help. Below is my code: Response.AddHeader("Content-Disposition", "attachment;
2
2701
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 and Project report consists of number of pages. Thus, on what criteria it should be decided to insert page break? How to keep track of page's empty area before inserting anything? Please guide. -- sachin
1
4799
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 between each records? Thank you for the help. Below is my code: Response.AddHeader("Content-Disposition", "attachment;
1
5637
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 page break and print a new page to continue. The following code segment is what I'm using right now. My question is how to insert a page break in the middle of the loop since I don't find any method in PrintDocument similar to this purpose.
16
8371
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 -- each block contains three rows. this table is destined for paper printing. i would like to tell the browser *not* to bust up my blocks. rather, i would like it to smartly insert a page break inbetween <tbody>s if the last one cannot be rendered...
7
11097
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
2456
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 the second with the footer at the bottom. (the report only has one header and one footer no matter how many pages) All items are in the detail section, header and footer information are in appropriate positions. How I want it to be is: each...
0
8378
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8653
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7398
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6206
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5677
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4376
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2786
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2018
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.