OCX Modul in Visual Basic .Net |
AxBarcode1.BarcodeType = BARCODELib.enumBarcodeType.CODE_128 AxBarcode1.ModulBreite = BARCODELib.enumModulBreite.breite_577_µm AxBarcode1.Data = TextBox1.Text |
Private Sub
PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim hDC As IntPtr hDC = e.Graphics.GetHdc() AxBarcode1.Draw(hDC.ToInt32(), 6, 10, 10, 60, 50) e.Graphics.ReleaseHdc() End Sub |