تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
[C#.NET] vb.net code
#1
i need vb.net code for barcode print but not as image . can any one help
الرد }}}
تم الشكر بواسطة:
#2
Barcode not detected through barcode scanner after printing

PHP كود :
string Barcode "*"+txtCode.Text+"*";
 
           string price txtPprice.Text;
 
           string pname txtPname.Text;

 
           using (Bitmap bitmap = new Bitmap(350220))
 
           {
 
               bitmap.SetResolution(240240);
 
               using (Graphics graphics Graphics.FromImage(bitmap))
 
               {
 
                   Font font = new Font("IDAutomationHC39M"10FontStyle.RegularGraphicsUnit.Point);

 
                   graphics.Clear(Color.White);
 
                   StringFormat stringformat = new StringFormat(StringFormatFlags.NoWrap);
 
                   graphics.TextRenderingHint TextRenderingHint.AntiAliasGridFit;
 
                   graphics.TextContrast 10;
 
                   SolidBrush black = new SolidBrush(Color.Black);
 
                   SolidBrush white = new SolidBrush(Color.White);
 
                   PointF TextPosition = new PointF(45F10F);
 
                   SizeF TextSize graphics.MeasureString(BarcodefontTextPositionstringformat);
 
                   PointF pointPrice = new PointF(90f125f);
 
                   Font newfont2 = new Font("Cambria"8FontStyle.RegularGraphicsUnit.Point);
 
                   Font newfont3 = new Font("Arial Black"10FontStyle.RegularGraphicsUnit.Point);
 
                   graphics.DrawString("" pname ""newfont3blackpointPrice);
 
                   PointF pointPname = new PointF(200f170f);
 
                   graphics.DrawString("" price " L.E."newfont3blackpointPname);
 
                   PointF pointBcode = new PointF(35f170f);
 
                   graphics.DrawString("" Barcode ""newfont2blackpointBcode);
 
                   if (TextSize.Width bitmap.Width)
 
                   {
 
                       float ScaleFactor = (bitmap.Width - (TextPosition.2)) / TextSize.Width;
 
                       graphics.InterpolationMode InterpolationMode.HighQualityBicubic;
 
                       graphics.ScaleTransform(ScaleFactorScaleFactor);
 
                   }

 
                   graphics.DrawString(Barcodefont, new SolidBrush(Color.Black), TextPositionStringFormat.GenericTypographic);

 
                   bitmap.Save(@"barcode.png"ImageFormat.Png);
 
                   this.pictureBox1.Image = (Bitmap)bitmap.Clone();
 
                   font.Dispose();
 
               }
 
           
الرد }}}


المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  طلب برنامج Code Builder v4.2 maxruined 0 1,347 27-07-21, 11:33 AM
آخر رد: maxruined
  خطأ not all code paths return a value فارس الأصيل 1 1,035 16-05-20, 10:02 PM
آخر رد: khodor1985
  [C#.NET] Ascii code الخاص بالأزرار 739906433 1 1,782 19-11-18, 08:44 AM
آخر رد: elgokr
  عندي source code C# adel500 2 1,998 25-10-17, 02:21 PM
آخر رد: adel500
  Hide your app Code أبو عمر 0 1,606 21-09-15, 03:26 AM
آخر رد: أبو عمر
Exclamation [C#.NET] code amx 1 2,154 21-01-15, 12:30 AM
آخر رد: المبرمج الطموح88
  [سؤال] WPF Code hoob computer 1 2,673 20-03-14, 08:58 AM
آخر رد: smss

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم