-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: shri
Message 2 in Discussion

Hi,   In one of the project, I had used the concept of printing the barcode as 
well as the barcode being transfered to a word file using VB.NET. Depending on 
the format the scanner recognizes, you can choose the respective DLL. Typically 
most of the latest instrument (scanners) uses 128 format; you can use the  
"TAL12832.DLL".   Declare Function TALCODE39 Lib "TALC3932.DLL" (ByRef BarCode 
As TALBarCode, ByRef MetaPict As MetaFilePict) As Integer  
Declare Function TALCODE128 Lib "TAL12832.DLL" (ByRef BarCode As TALBarCode, 
ByRef MetaPict As MetaFilePict) As Integer 
Once you have done with this, you can set the various parameters such as 
height, width, font etc of the barcode. Some sample code is copied below: 
Dim hdc As IntPtr = ev.Graphics.GetHdc()
TestBarCode.OutputhDC = hdc
TestBarCode.MessageBuffer = StringToPrint
TestBarCode.MessageLength = Len(StringToPrint)
TestBarCode.OutputOption = 3
TestBarCode.XPosInInches = 0.2
TestBarCode.YPosInInches = 0.8 
TestBarCode.NarrowBarWidth = Wide%
TestBarCode.BarWidthReduction = BWR1%
TestBarCode.Orientation = 0
TestBarCode.BarCodeHeight = 5080
TestBarCode.NarrowBarWidth = 41
TestBarCode.NarrowToWideRatio = 20 
x = TALCODE128(TestBarCode, MyMetaPict) 
'' Release handle to device context.
ev.Graphics.ReleaseHdc(hdc) 
  
  
Hope this helps............. 
Regards,
shri

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to