Specifying how many labels to print

Stimulsoft Reports.NET discussion
Post Reply
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Specifying how many labels to print

Post by Ink »

Hi,

I have used the label report wizrd report to create a report based on an avery label.
I have place a rich text box onto the first label on the report into which I load a file using the Get Value event.
When I print the report, I only get one label. How do I specify the amount of labels I want to print? I just want the same data to appear on each label, but the count of label may differ each time the report is run.
So I have one rtf file and I want it to repeat on as many labels as I specify. Count data gives me one label in each column, but say I have 3 columns and I want 9 labels I need to be able to specify that I want 3 rows; 3 Columns x 3 Rows = 9 labels.


Thanks,

Jon.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Specifying how many labels to print

Post by HighAley »

Hello, Jon.
Ink wrote:I have used the label report wizrd report to create a report based on an avery label.
I have place a rich text box onto the first label on the report into which I load a file using the Get Value event.
When I print the report, I only get one label. How do I specify the amount of labels I want to print? I just want the same data to appear on each label, but the count of label may differ each time the report is run.
So I have one rtf file and I want it to repeat on as many labels as I specify. Count data gives me one label in each column, but say I have 3 columns and I want 9 labels I need to be able to specify that I want 3 rows; 3 Columns x 3 Rows = 9 labels
Please, set the Count Data property of Data Band to 9 and the Columns property to 3.
See attached report template and image.

Thank you.
Attachments
1341.count-data.png
1341.count-data.png (35.14 KiB) Viewed 2612 times
1340.Report.mrt
(3.69 KiB) Downloaded 298 times
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Specifying how many labels to print

Post by Ink »

Hi Aleksey,
I tried that but I get the following error. I have emailed files to support.

----------------------------
[Customer Explanation]



----------------------------
[General Info]

Application: Stimulsoft Reports.Net
Framework: v4.0.30319
Version: Version: 2011.2.1026 from 18 August 2011
MachineName: JELT
OSVersion: Microsoft Windows NT 6.1.7600.0
UserName: jon.ellis

----------------------------
[Exception Info]
Message: Object reference not set to an instance of an object.

Source: Stimulsoft.Report

StackTrace:
at Stimulsoft.Report.Engine.StiEngine.InternalRenderContainerToColumns(StiContainer container, Boolean isPrintAtBottom, Boolean isFooterOnAllPages)
at Stimulsoft.Report.Engine.StiEngine.InternalRenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents, Boolean& isChildsEnabled)
at Stimulsoft.Report.Engine.StiEngine.RenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents)
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderMaster(StiDataBand masterDataBand)
at Stimulsoft.Report.Engine.StiPageHelper.RenderPage(StiPage page)
at Stimulsoft.Report.Engine.StiRenderProviderV2.RenderReport(StiReport report, StiReport masterReport, StiRenderState state)
at Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.Design.Controls.StiDesignerPreviewControl.btRefresh_Click(Object sender, EventArgs e)

----------------------------
[Assemblies]
mscorlib, Version = 2.0.0.0
Stimulsoft.Base, Version = 2011.2.1026.0
Stimulsoft.Report, Version = 2011.2.1026.0
Stimulsoft.Report.Design, Version = 2011.2.1026.0
System.Windows.Forms, Version = 2.0.0.0
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Specifying how many labels to print

Post by Ink »

Hi Aleksey,
I tried that but I get the following error. I have emailed files to support.

----------------------------
[Customer Explanation]



----------------------------
[General Info]

Application: Stimulsoft Reports.Net
Framework: v4.0.30319
Version: Version: 2011.2.1026 from 18 August 2011
MachineName: JELT
OSVersion: Microsoft Windows NT 6.1.7600.0
UserName: jon.ellis

----------------------------
[Exception Info]
Message: Object reference not set to an instance of an object.

Source: Stimulsoft.Report

StackTrace:
at Stimulsoft.Report.Engine.StiEngine.InternalRenderContainerToColumns(StiContainer container, Boolean isPrintAtBottom, Boolean isFooterOnAllPages)
at Stimulsoft.Report.Engine.StiEngine.InternalRenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents, Boolean& isChildsEnabled)
at Stimulsoft.Report.Engine.StiEngine.RenderBand(StiBand band, Boolean ignorePageBreaks, Boolean allowRenderingEvents)
at Stimulsoft.Report.Engine.StiDataBandV2Builder.RenderMaster(StiDataBand masterDataBand)
at Stimulsoft.Report.Engine.StiPageHelper.RenderPage(StiPage page)
at Stimulsoft.Report.Engine.StiRenderProviderV2.RenderReport(StiReport report, StiReport masterReport, StiRenderState state)
at Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.Design.Controls.StiDesignerPreviewControl.btRefresh_Click(Object sender, EventArgs e)

----------------------------
[Assemblies]
mscorlib, Version = 2.0.0.0
Stimulsoft.Base, Version = 2011.2.1026.0
Stimulsoft.Report, Version = 2011.2.1026.0
Stimulsoft.Report.Design, Version = 2011.2.1026.0
System.Windows.Forms, Version = 2.0.0.0
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Specifying how many labels to print

Post by Ink »

Please disregard. I have rebuilt the report from scratch without using the wizard, and the columns and data count properties now give me just what I need.

Thanks!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Specifying how many labels to print

Post by HighAley »

Hello.

We are glad that all works right.

Have a nice day!

Thank you.
Post Reply