This is a migrated thread and some comments may be shown as answers.

Create labels in codebehind

7 Answers 198 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kris Nobels
Top achievements
Rank 2
Kris Nobels asked on 18 Nov 2012, 09:45 PM
Hello,

When i create a new report. In The wizard you can choose 2 types/

Standard to create a general type of report or
Label if you would like to create a special purpose report such as one for printing labels for mailing envelopes.

I selected the second. (14 labels on the A4-page)

I have this object with properties mostly text

Know one property is a number of labels that is needed to printed

What is the best way to generarte for example 100 labels with the same text ?

thanks

7 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 21 Nov 2012, 07:33 PM
Hello,

If the labels are with the same text (e.g. static text) you can create this label report with the predefined data and then just bind the report DataSource to a dummy data, just to force the detail section to repeat as many times as you need e.g. this.DataSource = new int[3]; would repeat 3 times.

All the best,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Tony Vainikos
Top achievements
Rank 1
answered on 02 May 2014, 06:49 PM
I have yet to have the wizard ask me about labels. Am I doing something wrong? I create the Class Library and then select the Report Wizard, but it takes me through all the steps but telling it I want to create labels. I'm so lost, please help!!!
0
Nasko
Telerik team
answered on 07 May 2014, 01:29 PM
Hello Tony,

It is not clear which version of Telerik Reporting you are using and if it supports this functionality.
This video demonstrates the Report Wizard window allowing you to select a report type using the latest version of Telerik Reporting - Q1 2014.
You can also review all of the Report Wizard steps in the Report Wizard help article.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
L. M. Pathan
Top achievements
Rank 1
answered on 04 Jun 2014, 06:20 AM
Hello Kris,

I have the same requirement to create Label number of times with same data. I am new to reporting. Could you please provide your report that I can use as a reference and based on that I can create my own. Any help is appreciated. Thank you.
0
Kris Nobels
Top achievements
Rank 2
answered on 04 Jun 2014, 06:46 AM
it's easy,
 
just create a list with the ammount of labels you need to display in code behind.

In that list add the content you need to show. (your text for example)

Then in the document bind the report label to the list. that's it.

I do not have access to that report. But i know how i did it. :-)

I hope this info helps

0
L. M. Pathan
Top achievements
Rank 1
answered on 04 Jun 2014, 08:24 AM
Thank you Kris for prompt reply.

I already have data coming from SQL Database. I guess I don't need to create list for data, right? The problem that I am facing is designing the report. Please find sample attached. We need 5 columns and 13 rows on each A4 page. How do I set number of columns and rows I need on report and we need report be printed in ST-65 A4 Label sheet. Thank you for your co-operation.
0
Stef
Telerik team
answered on 04 Jun 2014, 10:42 AM
Hello Pathan,

You can create a Multi-Column Report by applying proper PageSettings for the report, or use a Table item as in the How to: Create Multi-Column Report - Across the Page and Then Down KB article.

Regards,
Stef
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Kris Nobels
Top achievements
Rank 2
Answers by
Steve
Telerik team
Tony Vainikos
Top achievements
Rank 1
Nasko
Telerik team
L. M. Pathan
Top achievements
Rank 1
Kris Nobels
Top achievements
Rank 2
Stef
Telerik team
Share this question
or