title: Set the size of crystal report print image for printing Barcode sticker
body: <p>I use crystal report to print barcode in sticker but need to change the height and width. So change height and width in the page set up and make it 3.5 X 2.5 cm. But now it prints a blank page after every sticker and scanner cannot read the barcode anymore.
  Here is my code:</p>
  
  <pre><code>System.Drawing.Image imageIn = barcode.Encode(iType, product.BarCode, barcode.ForeColor, barcode.BackColor, width, height);
              byte[] value = this.imageToByteArray(imageIn);
              CommonDataSet commonDataSet = new CommonDataSet();
              reportDocument.Load(System.IO.Path.Combine(base.Server.MapPath("~/Reporting/RptFiles/Configuration"), "RptBarcodewise.rpt"));
  
                  CommonDataSet.ProductWiseBarcodePrintDataTableRow productWiseBarcodePrintDataTableRow = commonDataSet.ProductWiseBarcodePrintDataTable.NewProductWiseBarcodePrintDataTableRow();
  
  
                  productWiseBarcodePrintDataTableRow["ProductNameA"] = product.ProductName;
                  productWiseBarcodePrintDataTableRow["BarcodeA"] = value;
  
  
                  commonDataSet.ProductWiseBarcodePrintDataTable.AddProductWiseBarcodePrintDataTableRow(productWiseBarcodePrintDataTableRow);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9WT1z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9WT1z.png" alt="after decrease size rpt design look like this:"></a></p>
  
  <p>Any kind of help is highly appreciated.</p>