Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8011243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:58:20+00:00 2026-06-04T18:58:20+00:00

SO I want to create multiple XR objects, and add a page-break in between

  • 0

SO I want to create multiple XR objects, and add a page-break in between each object initialization. I’ve wrote a small example to demonstrate:

Inside of the XtraReportsClass I have this…

int k =0; 
public void addLabel()
{
    XRLabel l = new XRLabel();
    l.Text = "iteration:" + k;
    l.LocationF = new PointF(20, 200);
    k++;
    Detail.PageBreak = DevExpress.XtraReports.UI.PageBreak.AfterBand;
    Detail.Controls.Add(l);
}

So my logic is to create a label each time and call the label say from the main form like…

private void button1_Click(object sender, EventArgs e)
{
    xrReport r = new xrReport();
    r.addLabel();
    r.addLabel();
    r.addLabel();
    r.addLabel();
    r.ShowRibbonPreview();
}

And so I would expect to have a label on each page, at Location(20,200) with an output of “iteration:{value of k} ” Unfortunately they are all punched up together at the same position and not moving to the next page…

I have already tried the,

private void Detail_BeforePrint(object sender, PrintEventArgs e)

event, Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:58:21+00:00Added an answer on June 4, 2026 at 6:58 pm

    Dev Express has answered my question @ –> http://www.devexpress.com/Support/Center/Question/Details/Q404605

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create multiple versions of print-friendly pages from a single page. I
I want to create an array that has multiple index and in each index
How do I create an array of multiple dimensions? For example, I want an
Currently I have a function which loops to create multiple HTML objects. Each time
I want to dynamically create multiple Process es, where each instance has a queue
I`v come across a need where I want to create multiple list items from
I have an XML file (on the left) and I want to create multiple
hey i want to be able to create multiple shapes and store them perhaps
I want to create a UI that uses a tab control to display multiple
I want my code to automatically try multiple ways to create a database connection.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.