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

Reporting for printing Labels

3 Answers 55 Views
This is a migrated thread and some comments may be shown as answers.
Joseph Baker
Top achievements
Rank 2
Joseph Baker asked on 02 Apr 2015, 03:37 PM
Hello,
I am using Telerik Reporting for web to create shipping labels and it looks great to print out one label at a time but if I want to print in a different position based on a parameter. I am using Avery label (template number is 5264) and it has 6 (2x3) labels on a sheet. Currently the label is a static design

How can I do it? 

For example,
----------
| A | B |
| C | D |
| E | F |
---------

Thanks

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 02 Apr 2015, 03:49 PM
Hello Joseph,

Though I am not aware how you are controlling the layout based on a parameter value, the described layout seems similar to the one demonstrated in the How to: Create Multi-Column Report - Across the Page and Then Down KB article. You might find useful the approach in the article which is achieved using a List item and row/column groups.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Joseph Baker
Top achievements
Rank 2
answered on 02 Apr 2015, 08:03 PM
hello Nasko,
Thank you for responding. I have created a multi-column report using across the page and then down article example. I put in the row/columns groups but it is not working. What I am trying to do is pass a parameter to the report to display the label in position B instead of position.

        private void InitializeComponent()
        {
            Telerik.Reporting.TableGroup tableGroup1 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup2 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.Group group1 = new Telerik.Reporting.Group();
            Telerik.Reporting.ReportParameter reportParameter1 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter2 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter3 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.ReportParameter reportParameter4 = new Telerik.Reporting.ReportParameter();
            Telerik.Reporting.Drawing.StyleRule styleRule1 = new Telerik.Reporting.Drawing.StyleRule();
            Telerik.Reporting.Drawing.StyleRule styleRule2 = new Telerik.Reporting.Drawing.StyleRule();
            Telerik.Reporting.Drawing.StyleRule styleRule3 = new Telerik.Reporting.Drawing.StyleRule();
            Telerik.Reporting.Drawing.StyleRule styleRule4 = new Telerik.Reporting.Drawing.StyleRule();
            Telerik.Reporting.Drawing.StyleRule styleRule5 = new Telerik.Reporting.Drawing.StyleRule();
            this.MailingLabels = new Telerik.Reporting.SqlDataSource();
            this.detail = new Telerik.Reporting.DetailSection();
            this.lstAvery5264 = new Telerik.Reporting.List();
            this.panel1 = new Telerik.Reporting.Panel();
            this.lblShipmentId = new Telerik.Reporting.TextBox();
            this.textBox1 = new Telerik.Reporting.TextBox();
            this.lblCarrierPro = new Telerik.Reporting.TextBox();
            this.textBox2 = new Telerik.Reporting.TextBox();
            this.lblShipper = new Telerik.Reporting.TextBox();
            this.ShipperName = new Telerik.Reporting.TextBox();
            this.lblShipperPickupDate = new Telerik.Reporting.TextBox();
            this.ShipperPickupDate = new Telerik.Reporting.TextBox();
            this.ShipperAddress1 = new Telerik.Reporting.TextBox();
            this.ShipperAddress2 = new Telerik.Reporting.TextBox();
            this.ShipperCityStateZip = new Telerik.Reporting.TextBox();
            this.lblShipperContactName = new Telerik.Reporting.TextBox();
            this.lblShipperPhone = new Telerik.Reporting.TextBox();
            this.ShipperPhone = new Telerik.Reporting.TextBox();
            this.ShipperContactName = new Telerik.Reporting.TextBox();
            this.lblShipperReference = new Telerik.Reporting.TextBox();
            this.ShipperReference = new Telerik.Reporting.TextBox();
            this.shape1 = new Telerik.Reporting.Shape();
            this.lblConsignee = new Telerik.Reporting.TextBox();
            this.ConsigneeName = new Telerik.Reporting.TextBox();
            this.lblConsigneeEstDeliveryDate = new Telerik.Reporting.TextBox();
            this.ConsigneeDeliveryDate = new Telerik.Reporting.TextBox();
            this.ConsigneeAddress1 = new Telerik.Reporting.TextBox();
            this.ConsigneeAddress2 = new Telerik.Reporting.TextBox();
            this.ConsigneeCityStateZip = new Telerik.Reporting.TextBox();
            this.lblConsigneePhone = new Telerik.Reporting.TextBox();
            this.ConsigneePhone = new Telerik.Reporting.TextBox();
            this.lblConsigneeContact = new Telerik.Reporting.TextBox();
            this.ConsigneeContactName = new Telerik.Reporting.TextBox();
            this.lblConsigneeReference = new Telerik.Reporting.TextBox();
            this.ConsigneeReference = new Telerik.Reporting.TextBox();
            this.PageCount = new Telerik.Reporting.TextBox();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // MailingLabels
            // 
            this.MailingLabels.ConnectionString = "ReportLibrary.Properties.Settings.RRSmartFreightSolutions";
            this.MailingLabels.Name = "MailingLabels";
            this.MailingLabels.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] {
            new Telerik.Reporting.SqlDataSourceParameter("@shipment_id", System.Data.DbType.AnsiString, null)});
            this.MailingLabels.SelectCommand = "GetLTLFullLabel";
            this.MailingLabels.SelectCommandType = Telerik.Reporting.SqlDataSourceCommandType.StoredProcedure;
            // 
            // detail
            // 
            this.detail.Height = Telerik.Reporting.Drawing.Unit.Inch(4.5D);
            this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.lstAvery5264});
            this.detail.Name = "detail";
            // 
            // lstAvery5264
            // 
            this.lstAvery5264.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Telerik.Reporting.Drawing.Unit.Inch(3.2499210834503174D)));
            this.lstAvery5264.Body.Rows.Add(new Telerik.Reporting.TableBodyRow(Telerik.Reporting.Drawing.Unit.Inch(4.3000001907348633D)));
            this.lstAvery5264.Body.SetCellContent(0, 0, this.panel1);
            tableGroup1.Groupings.Add(new Telerik.Reporting.Grouping("=Fields.Index%2"));
            tableGroup1.Name = "ColumnGroup";
            this.lstAvery5264.ColumnGroups.Add(tableGroup1);
            this.lstAvery5264.DataSource = this.MailingLabels;
            this.lstAvery5264.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.panel1});
            this.lstAvery5264.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9339065551757812E-05D), Telerik.Reporting.Drawing.Unit.Inch(3.9339065551757812E-05D));
            this.lstAvery5264.Name = "lstAvery5264";
            this.lstAvery5264.NoDataMessage = "";
            tableGroup2.Groupings.Add(new Telerik.Reporting.Grouping("= Fields.Index/3"));
            tableGroup2.Name = "RowGroup1";
            this.lstAvery5264.RowGroups.Add(tableGroup2);
            this.lstAvery5264.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(3.2499210834503174D), Telerik.Reporting.Drawing.Unit.Inch(4.3000001907348633D));
            this.lstAvery5264.NeedDataSource += new System.EventHandler(this.lstAvery5264_NeedDataSource);
            // 
            // panel1
            // 
            this.panel1.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.lblShipmentId,
            this.textBox1,
            this.lblCarrierPro,
            this.textBox2,
            this.lblShipper,
            this.ShipperName,
            this.lblShipperPickupDate,
            this.ShipperPickupDate,
            this.ShipperAddress1,
            this.ShipperAddress2,
            this.ShipperCityStateZip,
            this.lblShipperContactName,
            this.lblShipperPhone,
            this.ShipperPhone,
            this.ShipperContactName,
            this.lblShipperReference,
            this.ShipperReference,
            this.shape1,
            this.lblConsignee,
            this.ConsigneeName,
            this.lblConsigneeEstDeliveryDate,
            this.ConsigneeDeliveryDate,
            this.ConsigneeAddress1,
            this.ConsigneeAddress2,
            this.ConsigneeCityStateZip,
            this.lblConsigneePhone,
            this.ConsigneePhone,
            this.lblConsigneeContact,
            this.ConsigneeContactName,
            this.lblConsigneeReference,
            this.ConsigneeReference,
            this.PageCount});
            this.panel1.Name = "panel1";
            this.panel1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(3.2499210834503174D), Telerik.Reporting.Drawing.Unit.Inch(4.3000001907348633D));
            // 
            // lblShipmentId
            // 
            this.lblShipmentId.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9339065551757812E-05D), Telerik.Reporting.Drawing.Unit.Inch(3.9339065551757812E-05D));
            this.lblShipmentId.Name = "lblShipmentId";
            this.lblShipmentId.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.8999212384223938D), Telerik.Reporting.Drawing.Unit.Inch(0.19996070861816406D));
            this.lblShipmentId.Value = "Shipment ID:";
            // 
            // textBox1
            // 
            this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.90003937482833862D), Telerik.Reporting.Drawing.Unit.Inch(0D));
            this.textBox1.Name = "ShipmentID";
            this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.1000000238418579D), Telerik.Reporting.Drawing.Unit.Inch(0.20000004768371582D));
            this.textBox1.Style.Font.Bold = true;
            this.textBox1.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(12D);
            this.textBox1.Value = "= Fields.SHIPMENT_ID";
            // 
            // lblCarrierPro
            // 
            this.lblCarrierPro.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(2.0001182556152344D), Telerik.Reporting.Drawing.Unit.Inch(0D));
            this.lblCarrierPro.Name = "lblCarrierPro";
            this.lblCarrierPro.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.40000024437904358D), Telerik.Reporting.Drawing.Unit.Inch(0.20000004768371582D));
            this.lblCarrierPro.Value = "Pro:";
            // 
            // textBox2
            // 
            this.textBox2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(2.4103775024414062D), Telerik.Reporting.Drawing.Unit.Inch(0D));
            this.textBox2.Name = "CarrierPro";
            this.textBox2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.68958312273025513D), Telerik.Reporting.Drawing.Unit.Inch(0.20000004768371582D));
            this.textBox2.Value = "= Fields.CARPRO";
            // 
            // lblShipper
            // 
            this.lblShipper.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(0.30000004172325134D));
            this.lblShipper.Name = "lblShipper";
            this.lblShipper.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.2000001668930054D), Telerik.Reporting.Drawing.Unit.Inch(0.20000004768371582D));
            this.lblShipper.Style.Font.Bold = true;
            this.lblShipper.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(12D);
            this.lblShipper.Value = "SHIPPER:";
            // 
            // ShipperName
            // 
            this.ShipperName.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9378803194267675E-05D), Telerik.Reporting.Drawing.Unit.Inch(0.60000008344650269D));
            this.ShipperName.Name = "ShipperName";
            this.ShipperName.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.0999212265014648D), Telerik.Reporting.Drawing.Unit.Inch(0.20000004768371582D));
            this.ShipperName.Value = "= Fields.ORIGN_NAME";
            // 
            // lblShipperPickupDate
            // 
            this.lblShipperPickupDate.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(1.5001182556152344D), Telerik.Reporting.Drawing.Unit.Inch(0.60000008344650269D));
            this.lblShipperPickupDate.Name = "lblShipperPickupDate";
            this.lblShipperPickupDate.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.90000009536743164D), Telerik.Reporting.Drawing.Unit.Inch(0.20000004768371582D));
            this.lblShipperPickupDate.Value = "Pickup Date:";
            // 
            // ShipperPickupDate
            // 
            this.ShipperPickupDate.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(2.4499213695526123D), Telerik.Reporting.Drawing.Unit.Inch(0.60000008344650269D));
            this.ShipperPickupDate.Name = "ShipperPickupDate";
            this.ShipperPickupDate.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.65003937482833862D), Telerik.Reporting.Drawing.Unit.Inch(0.20000004768371582D));
            this.ShipperPickupDate.Value = "=Fields.ORIGN_EST_DATE_TIME.Month+\"/\"+ Fields.ORIGN_EST_DATE_TIME.Day+\"/\"+ Fields" +
    ".ORIGN_EST_DATE_TIME.Year";
            // 
            // ShipperAddress1
            // 
            this.ShipperAddress1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(0.80000013113021851D));
            this.ShipperAddress1.Name = "ShipperAddress1";
            this.ShipperAddress1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.1000000238418579D), Telerik.Reporting.Drawing.Unit.Inch(0.19999997317790985D));
            this.ShipperAddress1.Value = "= Fields.ORIGN_ADDRESS_1";
            // 
            // ShipperAddress2
            // 
            this.ShipperAddress2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(1.0000001192092896D));
            this.ShipperAddress2.Name = "ShipperAddress2";
            this.ShipperAddress2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.1000000238418579D), Telerik.Reporting.Drawing.Unit.Inch(0.19999997317790985D));
            this.ShipperAddress2.Value = "= Fields.ORIGN_ADDRESS_2";
            // 
            // ShipperCityStateZip
            // 
            this.ShipperCityStateZip.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(1.2000000476837158D));
            this.ShipperCityStateZip.Name = "ShipperCityStateZip";
            this.ShipperCityStateZip.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.4000000953674316D), Telerik.Reporting.Drawing.Unit.Inch(0.19999997317790985D));
            this.ShipperCityStateZip.Value = "= Fields.ORIGN_CITY+\", \"+ Fields.ORIGN_STATE+\" \"+ Fields.ORIGN_POSTAL_CODE";
            // 
            // lblShipperContactName
            // 
            this.lblShipperContactName.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9339065551757812E-05D), Telerik.Reporting.Drawing.Unit.Inch(1.5D));
            this.lblShipperContactName.Name = "lblShipperContactName";
            this.lblShipperContactName.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.70000004768371582D), Telerik.Reporting.Drawing.Unit.Inch(0.19999997317790985D));
            this.lblShipperContactName.Value = "Contract:";
            // 
            // lblShipperPhone
            // 
            this.lblShipperPhone.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(1.5001182556152344D), Telerik.Reporting.Drawing.Unit.Inch(0.80000013113021851D));
            this.lblShipperPhone.Name = "lblShipperPhone";
            this.lblShipperPhone.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.49992117285728455D), Telerik.Reporting.Drawing.Unit.Inch(0.19999997317790985D));
            this.lblShipperPhone.Value = "Phone:";
            // 
            // ShipperPhone
            // 
            this.ShipperPhone.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(2.1166274547576904D), Telerik.Reporting.Drawing.Unit.Inch(0.80000013113021851D));
            this.ShipperPhone.Name = "ShipperPhone";
            this.ShipperPhone.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.9833332896232605D), Telerik.Reporting.Drawing.Unit.Inch(0.19999997317790985D));
            this.ShipperPhone.Value = "= Fields.ORIGN_CONTACT_PHONE";
            // 
            // ShipperContactName
            // 
            this.ShipperContactName.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.79996061325073242D), Telerik.Reporting.Drawing.Unit.Inch(1.5D));
            this.ShipperContactName.Name = "ShipperContactName";
            this.ShipperContactName.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.1000000238418579D), Telerik.Reporting.Drawing.Unit.Inch(0.19999997317790985D));
            this.ShipperContactName.Value = "= Fields.ORIGN_CONTACT_NAME";
            // 
            // lblShipperReference
            // 
            this.lblShipperReference.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(1.7000789642333984D));
            this.lblShipperReference.Name = "lblShipperReference";
            this.lblShipperReference.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.800000011920929D), Telerik.Reporting.Drawing.Unit.Inch(0.19999980926513672D));
            this.lblShipperReference.Value = "Reference:";
            // 
            // ShipperReference
            // 
            this.ShipperReference.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.79996061325073242D), Telerik.Reporting.Drawing.Unit.Inch(1.7000789642333984D));
            this.ShipperReference.Name = "ShipperReference";
            this.ShipperReference.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.1000000238418579D), Telerik.Reporting.Drawing.Unit.Inch(0.19999980926513672D));
            this.ShipperReference.Value = "= Fields.PO";
            // 
            // shape1
            // 
            this.shape1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(2D));
            this.shape1.Name = "shape1";
            this.shape1.ShapeType = new Telerik.Reporting.Drawing.Shapes.LineShape(Telerik.Reporting.Drawing.Shapes.LineDirection.EW);
            this.shape1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(3.0999605655670166D), Telerik.Reporting.Drawing.Unit.Inch(0.1000000610947609D));
            // 
            // lblConsignee
            // 
            this.lblConsignee.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9339065551757812E-05D), Telerik.Reporting.Drawing.Unit.Inch(2.100078821182251D));
            this.lblConsignee.Name = "lblConsignee";
            this.lblConsignee.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.99992126226425171D), Telerik.Reporting.Drawing.Unit.Inch(0.19992096722126007D));
            this.lblConsignee.Style.Font.Bold = true;
            this.lblConsignee.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(12D);
            this.lblConsignee.Value = "Consignee:";
            // 
            // ConsigneeName
            // 
            this.ConsigneeName.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(3.9339065551757812E-05D), Telerik.Reporting.Drawing.Unit.Inch(2.3999998569488525D));
            this.ConsigneeName.Name = "ConsigneeName";
            this.ConsigneeName.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.2999212741851807D), Telerik.Reporting.Drawing.Unit.Inch(0.19999980926513672D));
            this.ConsigneeName.Value = "= Fields.DEST_NAME";
            // 
            // lblConsigneeEstDeliveryDate
            // 
            this.lblConsigneeEstDeliveryDate.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(1.4002761840820313D), Telerik.Reporting.Drawing.Unit.Inch(2.3999998569488525D));
            this.lblConsigneeEstDeliveryDate.Name = "lblConsigneeEstDeliveryDate";
            this.lblConsigneeEstDeliveryDate.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.99984234571456909D), Telerik.Reporting.Drawing.Unit.Inch(0.19999980926513672D));
            this.lblConsigneeEstDeliveryDate.Value = "Est Deliv Date:";
            // 
            // ConsigneeDeliveryDate
            // 
            this.ConsigneeDeliveryDate.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(2.4103775024414062D), Telerik.Reporting.Drawing.Unit.Inch(2.3999998569488525D));
            this.ConsigneeDeliveryDate.Name = "ConsigneeDeliveryDate";
            this.ConsigneeDeliveryDate.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.68958312273025513D), Telerik.Reporting.Drawing.Unit.Inch(0.19999980926513672D));
            this.ConsigneeDeliveryDate.Value = "= Fields.DEST_EST_DATE_TIME.Month+\"/\"+ Fields.DEST_EST_DATE_TIME.Day+\"/\"+ Fields." +
    "DEST_EST_DATE_TIME.Year";
            // 
            // ConsigneeAddress1
            // 
            this.ConsigneeAddress1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(2.6000001430511475D));
            this.ConsigneeAddress1.Name = "ConsigneeAddress1";
            this.ConsigneeAddress1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.3000000715255737D), Telerik.Reporting.Drawing.Unit.Inch(0.20000012218952179D));
            this.ConsigneeAddress1.Value = "= Fields.DEST_ADDRESS_1";
            // 
            // ConsigneeAddress2
            // 
            this.ConsigneeAddress2.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(2.8000791072845459D));
            this.ConsigneeAddress2.Name = "ConsigneeAddress2";
            this.ConsigneeAddress2.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.3000000715255737D), Telerik.Reporting.Drawing.Unit.Inch(0.19992096722126007D));
            this.ConsigneeAddress2.Value = "= Fields.DEST_ADDRESS_2";
            // 
            // ConsigneeCityStateZip
            // 
            this.ConsigneeCityStateZip.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(3D));
            this.ConsigneeCityStateZip.Name = "ConsigneeCityStateZip";
            this.ConsigneeCityStateZip.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.3000000715255737D), Telerik.Reporting.Drawing.Unit.Inch(0.20000012218952179D));
            this.ConsigneeCityStateZip.Value = "= Fields.DEST_CITY+\", \"+ Fields.DEST_STATE+\" \"+ Fields.DEST_POSTAL_CODE";
            // 
            // lblConsigneePhone
            // 
            this.lblConsigneePhone.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(1.3999606370925903D), Telerik.Reporting.Drawing.Unit.Inch(2.7000000476837158D));
            this.lblConsigneePhone.Name = "lblConsigneePhone";
            this.lblConsigneePhone.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.5D), Telerik.Reporting.Drawing.Unit.Inch(0.19999980926513672D));
            this.lblConsigneePhone.Value = "Phone:";
            // 
            // ConsigneePhone
            // 
            this.ConsigneePhone.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(1.9457941055297852D), Telerik.Reporting.Drawing.Unit.Inch(2.7000000476837158D));
            this.ConsigneePhone.Name = "ConsigneePhone";
            this.ConsigneePhone.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.1541271209716797D), Telerik.Reporting.Drawing.Unit.Inch(0.19999980926513672D));
            this.ConsigneePhone.Value = "= Fields.DEST_CONTACT_PHONE";
            // 
            // lblConsigneeContact
            // 
            this.lblConsigneeContact.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(3.3999998569488525D));
            this.lblConsigneeContact.Name = "lblConsigneeContact";
            this.lblConsigneeContact.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.60000008344650269D), Telerik.Reporting.Drawing.Unit.Inch(0.20000012218952179D));
            this.lblConsigneeContact.Value = "Contact:";
            // 
            // ConsigneeContactName
            // 
            this.ConsigneeContactName.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.60003930330276489D), Telerik.Reporting.Drawing.Unit.Inch(3.3999998569488525D));
            this.ConsigneeContactName.Name = "ConsigneeContactName";
            this.ConsigneeContactName.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.0999213457107544D), Telerik.Reporting.Drawing.Unit.Inch(0.20000012218952179D));
            this.ConsigneeContactName.Value = "= Fields.DEST_CONTACT_NAME";
            // 
            // lblConsigneeReference
            // 
            this.lblConsigneeReference.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(-3.9418537198798731E-05D), Telerik.Reporting.Drawing.Unit.Inch(3.6000001430511475D));
            this.lblConsigneeReference.Name = "lblConsigneeReference";
            this.lblConsigneeReference.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.800000011920929D), Telerik.Reporting.Drawing.Unit.Inch(0.20000012218952179D));
            this.lblConsigneeReference.Value = "Reference:";
            // 
            // ConsigneeReference
            // 
            this.ConsigneeReference.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.79996061325073242D), Telerik.Reporting.Drawing.Unit.Inch(3.600078821182251D));
            this.ConsigneeReference.Name = "ConsigneeReference";
            this.ConsigneeReference.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(0.90000009536743164D), Telerik.Reporting.Drawing.Unit.Inch(0.19992129504680634D));
            this.ConsigneeReference.Value = "= Fields.PO";
            // 
            // PageCount
            // 
            this.PageCount.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.0999605655670166D), Telerik.Reporting.Drawing.Unit.Inch(4D));
            this.PageCount.Name = "PageCount";
            this.PageCount.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.9000787734985352D), Telerik.Reporting.Drawing.Unit.Inch(0.30000010132789612D));
            this.PageCount.Style.Font.Bold = true;
            this.PageCount.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(12D);
            this.PageCount.Value = "= PageNumber+\" of \"+ PageCount";
            // 
            // MailingLabel
            // 
            this.DataSource = this.MailingLabels;
            group1.Name = "group";
            this.Groups.AddRange(new Telerik.Reporting.Group[] {
            group1});
            this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.detail});
            this.Name = "MailingLabel";
            this.PageSettings.ColumnCount = 2;
            this.PageSettings.Landscape = false;
            this.PageSettings.Margins = new Telerik.Reporting.Drawing.MarginsU(Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D));
            this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
            reportParameter1.Name = "shipmentid";
            reportParameter1.Value = "SM00125468";
            reportParameter2.Name = "StartingPosition";
            reportParameter2.Type = Telerik.Reporting.ReportParameterType.Integer;
            reportParameter2.Value = "1";
            reportParameter3.Name = "PageCount";
            reportParameter3.Type = Telerik.Reporting.ReportParameterType.Integer;
            reportParameter3.Value = "2";
            reportParameter4.Name = "CurPage";
            reportParameter4.Type = Telerik.Reporting.ReportParameterType.Integer;
            reportParameter4.Value = "1";
            this.ReportParameters.Add(reportParameter1);
            this.ReportParameters.Add(reportParameter2);
            this.ReportParameters.Add(reportParameter3);
            this.ReportParameters.Add(reportParameter4);
            this.Style.BackgroundColor = System.Drawing.Color.White;
            styleRule1.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
            new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.TextItemBase)),
            new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.HtmlTextBox))});
            styleRule1.Style.Padding.Left = Telerik.Reporting.Drawing.Unit.Point(2D);
            styleRule1.Style.Padding.Right = Telerik.Reporting.Drawing.Unit.Point(2D);
            styleRule2.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
            new Telerik.Reporting.Drawing.StyleSelector("Title")});
            styleRule2.Style.Color = System.Drawing.Color.Black;
            styleRule2.Style.Font.Bold = true;
            styleRule2.Style.Font.Italic = false;
            styleRule2.Style.Font.Name = "Tahoma";
            styleRule2.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(18D);
            styleRule2.Style.Font.Strikeout = false;
            styleRule2.Style.Font.Underline = false;
            styleRule3.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
            new Telerik.Reporting.Drawing.StyleSelector("Caption")});
            styleRule3.Style.Color = System.Drawing.Color.Black;
            styleRule3.Style.Font.Name = "Tahoma";
            styleRule3.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(10D);
            styleRule3.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
            styleRule4.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
            new Telerik.Reporting.Drawing.StyleSelector("Data")});
            styleRule4.Style.Font.Name = "Tahoma";
            styleRule4.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(9D);
            styleRule4.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
            styleRule5.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
            new Telerik.Reporting.Drawing.StyleSelector("PageInfo")});
            styleRule5.Style.Font.Name = "Tahoma";
            styleRule5.Style.Font.Size = Telerik.Reporting.Drawing.Unit.Point(8D);
            styleRule5.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
            this.StyleSheet.AddRange(new Telerik.Reporting.Drawing.StyleRule[] {
            styleRule1,
            styleRule2,
            styleRule3,
            styleRule4,
            styleRule5});
            this.Width = Telerik.Reporting.Drawing.Unit.Inch(3.77496075630188D);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }
0
Nasko
Telerik team
answered on 06 Apr 2015, 12:04 PM
Hello Joseph,

We are missing the MailingLabels data source used in your example. Note that the previously provided KB article also contains a code sample which you can use to test and apply the approach. In case you experience any issues, please open a new support ticket and attach a runnable project with test data to it, which we can run locally and advise accordingly. Also describe the desired result in detail in the support ticket.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Asked by
Joseph Baker
Top achievements
Rank 2
Answers by
Nasko
Telerik team
Joseph Baker
Top achievements
Rank 2
Share this question
or