private void btnPreview_Click(object sender, EventArgs e)
 {
     using (XRpBarCode report = new XRpBarCode())
     {
         //report.xrBarCodeItem.Text = lueItems.EditValue.ToString();
         if (tbCount.Text == string.Empty)
             report.LoadDataSource(LoadbarcodeTable(1));
         else
             report.LoadDataSource(LoadbarcodeTable(Convert.ToInt32(tbCount.Text)));
         report.xrBarCodeItem.ShowText = cbShowText.Checked;
         ((Code128Generator)report.xrBarCodeItem.Symbology).CharacterSet = (Code128Charset)cbCode128Charset.SelectedIndex;
         report.xrBarCodeItem.AutoModule = cbAutoModule.Checked;
         report.xrBarCodeItem.Width = GetWidth();
         report.xrBarCodeItem.Height = GetHeight();
         //report.lblModelNo.Location = new Point(report.xrBarCodeItem.Location.X + (report.xrBarCodeItem.Size.Width - report.lblModelNo.Size.Width), report.lblModelNo.Location.Y);
         report.ShowPreviewDialog();
     }
 }
Beispiel #2
0
 private void btnPreview_Click(object sender, EventArgs e)
 {
     using (XRpBarCode report = new XRpBarCode())
     {
         //report.xrBarCodeItem.Text = lueItems.EditValue.ToString();
         if (tbCount.Text == string.Empty)
         {
             report.LoadDataSource(LoadbarcodeTable(1));
         }
         else
         {
             report.LoadDataSource(LoadbarcodeTable(Convert.ToInt32(tbCount.Text)));
         }
         report.xrBarCodeItem.ShowText = cbShowText.Checked;
         ((Code128Generator)report.xrBarCodeItem.Symbology).CharacterSet = (Code128Charset)cbCode128Charset.SelectedIndex;
         report.xrBarCodeItem.AutoModule = cbAutoModule.Checked;
         report.xrBarCodeItem.Width      = GetWidth();
         report.xrBarCodeItem.Height     = GetHeight();
         //report.lblModelNo.Location = new Point(report.xrBarCodeItem.Location.X + (report.xrBarCodeItem.Size.Width - report.lblModelNo.Size.Width), report.lblModelNo.Location.Y);
         report.ShowPreviewDialog();
     }
 }