M
Mika M
Hi!
I'm trying to print barcodes paper printings of my VB .NET (2003) Windows
forms application. Earlier I used Code39.TTF (True Type Font) with VB6, and
it was working fine, but now can't get barcodes with VB .NET with the same
font !? I downloaded demo .OTF-barcode font (Open Type Font), and using it
with VB.NET I can get barcode printings using Crystal Reports .rpt-files of
my application, and using Printing.PrintDocument too.
I'm using Printing.PrintDocument-object like...
Private Sub pd_PrintPage(ByVal sender As System.Object, ByVal e As
System.Drawing.Printing.PrintPageEventArgs)
Dim fntText As New Font("Arial", 12)
Dim fntBarc As New Font("DemoFont39", 8)
'// Human readable text
e.Graphics.DrawString("READABLE", fntText, Brushes.Black,
e.MarginBounds.Left, 200)
'// Barcode
e.Graphics.DrawString("*BARCODE*", fntBarc, Brushes.Black,
e.MarginBounds.Left + 200, 200)
e.HasMorePages = False
End Sub
Is this TTF-font support changed in VB.NET or what may be reason for I can't
use it any more? Is the only possibility to use .OTF-barcode font (Open Type
Font) these days - ie. buy other type expensive barcode font because earlier
font is no more working
? Whick font types are supported in .NET?
I'm trying to print barcodes paper printings of my VB .NET (2003) Windows
forms application. Earlier I used Code39.TTF (True Type Font) with VB6, and
it was working fine, but now can't get barcodes with VB .NET with the same
font !? I downloaded demo .OTF-barcode font (Open Type Font), and using it
with VB.NET I can get barcode printings using Crystal Reports .rpt-files of
my application, and using Printing.PrintDocument too.
I'm using Printing.PrintDocument-object like...
Private Sub pd_PrintPage(ByVal sender As System.Object, ByVal e As
System.Drawing.Printing.PrintPageEventArgs)
Dim fntText As New Font("Arial", 12)
Dim fntBarc As New Font("DemoFont39", 8)
'// Human readable text
e.Graphics.DrawString("READABLE", fntText, Brushes.Black,
e.MarginBounds.Left, 200)
'// Barcode
e.Graphics.DrawString("*BARCODE*", fntBarc, Brushes.Black,
e.MarginBounds.Left + 200, 200)
e.HasMorePages = False
End Sub
Is this TTF-font support changed in VB.NET or what may be reason for I can't
use it any more? Is the only possibility to use .OTF-barcode font (Open Type
Font) these days - ie. buy other type expensive barcode font because earlier
font is no more working
