The requested page is not available for the requested platform. You are viewing the content for Default platform.

Create Labels and Badges

  • 2 min to read

This tutorial describes the steps to create a label report that contains employee badges.

HowTo - CreateLabels_3

Do the following to create a label report:

  1. Start Microsoft Visual Studio 2010, 2012, 2013, 2015 or 2017 and create a new application under any of the supported platforms, or open an existing one.
  2. Add a new blank report to it and bind the report to the "Employees" table of the sample Northwind database (the nwind.mdb file shipped with the XtraReports installation).
  3. To invoke the Report Wizard, click the report's smart tag, and in the invoked actions list, click Design in Report Wizard... link.

    HowTo - CreateLabels_0

  4. The wizard guides you through the process of creating a label report. For detailed instructions on the wizard's steps, refer to Labels.
  5. After performing the above steps you will see that the report's Detail band is now divided into three differently colored areas. The first area at the left-hand side indicates the actual available band area for controls to be placed within it. The gray area at the right-hand side is intended for the columns in which labels will be displayed, so it cannot be occupied by controls. Finally, the white area specifies an indent between the available and reserved areas.

    HowTo - CreateLabels_1

  6. Drop the required fields from the Field List onto the available Detail band's area, and adjust the layout.

    HowTo - CreateLabels_2

    If required, you can apply mail merge to combine several fields (e.g. FirstName and LastName) within the same XRLabel.

    For the XRPictureBox control bound to the Photo field, you can set its XRPictureBox.Sizing property to ZoomImage.

Your report is now ready to be generated. In Visual Studio, you can view the report by switching to the Preview tab.