By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,589 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,589 IT Pros & Developers. It's quick & easy.

Print font not available after assigning PrinterName

P: n/a
Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on a
windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer, it
does not show the fonts i want. If i cahnge the printer to the printer that
has the font that i want, the font i want shows up in the font selections.
This seems to be true for any program that allows me to select a font for
printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the name
of the printer that has the fonts that i want to print with. After that i
set the print font to the font i want, which is associated with the printer
in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It uses
the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up the
right printer from PrinterSettings.InstalledPrinters. I can change to other
fonts that are installed for the default printer and it prints in those
fonts. I just can't change to a font for the Zebra printer even though i
set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that i
am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony
Dec 24 '06 #1
Share this Question
Share on Google+
24 Replies


P: n/a
Please show your code you are doing for this.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on
a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the printer
that has the font that i want, the font i want shows up in the font
selections. This seems to be true for any program that allows me to select
a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with the
printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It uses
the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change to
other fonts that are installed for the default printer and it prints in
those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony


Dec 24 '06 #2

P: n/a
Hello vbnetdev.

As requested, here is the code that i use:

Dim labelPrintDocument As New PrintDocument
labelPrintDocument = Me.barcodeLabelPrintDocument

labelPrintDocument.PrinterSettings.PrinterName =
PrinterSettings.InstalledPrinters.Item(0).ToString

If labelPrintDocument.PrinterSettings.IsValid Then
Dim y As String
y = labelPrintDocument.DocumentName
End If

drawingPrintFont = New Font("Arial Black", 12)
barcodePrintFont = New Font("Code 39 Std and Extended", 24)
underLinePrintFont = New Font("Arial Black", 10,
System.Drawing.FontStyle.Underline)
labelPrintDocument.DefaultPageSettings.Landscape = True

Dim labelDialog As New PrintPreviewDialog
labelDialog.Document = labelPrintDocument
labelDialog.ShowDialog()

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:ud**************@TK2MSFTNGP02.phx.gbl...
Please show your code you are doing for this.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
>Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the
printer that has the font that i want, the font i want shows up in the
font selections. This seems to be true for any program that allows me to
select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with
the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change
to other fonts that are installed for the default printer and it prints
in those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony



Dec 24 '06 #3

P: n/a
I believe that Visual Basic .NET supports only TrueType and OpenType fonts.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on
a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the printer
that has the font that i want, the font i want shows up in the font
selections. This seems to be true for any program that allows me to select
a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with the
printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It uses
the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change to
other fonts that are installed for the default printer and it prints in
those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony


Dec 25 '06 #4

P: n/a
Check out the following topic in the MSDN library for code that enumerates
all of the valid fonts on your computer:

http://msdn2.microsoft.com/en-us/library/0yf5t4e8.aspx

If it is not listed, you can't use it.

This is my experience and perhaps someone else may have a more acceptable
answer for you.

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on
a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the printer
that has the font that i want, the font i want shows up in the font
selections. This seems to be true for any program that allows me to select
a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with the
printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It uses
the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change to
other fonts that are installed for the default printer and it prints in
those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony


Dec 25 '06 #5

P: n/a
You might also try another approach, that is to automate your report from
Excel. In my experience I can make things work while automating under Excel
object that I can't necessarily do straight from vb.net. If you need
assistance with this contact me off list. My email here is valid.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322 on
a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the printer
that has the font that i want, the font i want shows up in the font
selections. This seems to be true for any program that allows me to select
a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with the
printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It uses
the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change to
other fonts that are installed for the default printer and it prints in
those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony


Dec 25 '06 #6

P: n/a
Hello vbnetdev.

Happy Holidays.

I don't think this is true. Is "3 of 9 Barcode" a truetype font? I tried
using that font in VB.NET and it worked.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:un**************@TK2MSFTNGP04.phx.gbl...
>I believe that Visual Basic .NET supports only TrueType and OpenType fonts.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
>Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the
printer that has the font that i want, the font i want shows up in the
font selections. This seems to be true for any program that allows me to
select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with
the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change
to other fonts that are installed for the default printer and it prints
in those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony



Dec 26 '06 #7

P: n/a
Hello vbnetdev.

Happy Holidays.

I'm trying to use the VB example at this link. It gives me an error on the
last line of the example "e.Graphics.DrawString(familyList, font,
solidBrush, rectF)" If i put the example code in a button_click sub, it
says that "Graphics is not a member of System.EventArgs".

If i replace the "ByVal e As System.EventArgs" with "ByVal e As
System.Windows.Forms.PaintEventArgs", it gets rid of that error but then
says "Method 'Button1_Click' cannot handle Event 'Click" because they do not
have the same signature" on the SUB line.

I'm not sure of how to code this to do a test. I'd like to see the results
it would produce.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
Check out the following topic in the MSDN library for code that enumerates
all of the valid fonts on your computer:

http://msdn2.microsoft.com/en-us/library/0yf5t4e8.aspx

If it is not listed, you can't use it.

This is my experience and perhaps someone else may have a more acceptable
answer for you.

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
>Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the
printer that has the font that i want, the font i want shows up in the
font selections. This seems to be true for any program that allows me to
select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with
the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change
to other fonts that are installed for the default printer and it prints
in those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony



Dec 26 '06 #8

P: n/a
Copy and paste this code in a new form...

Private pictureBox1 As New PictureBox()

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
pictureBox1.Dock = DockStyle.Fill
pictureBox1.BackColor = Color.White
AddHandler pictureBox1.Paint, AddressOf Me.pictureBox1_Paint
Me.Controls.Add(pictureBox1)
End Sub
Private Sub pictureBox1_Paint(ByVal sender As Object, ByVal e As
System.Windows.Forms.PaintEventArgs)
' Create a local version of the graphics object for the PictureBox.
Dim fontFamily As New FontFamily("Arial")
Dim font As New Font( _
fontFamily, _
8, _
FontStyle.Regular, _
GraphicsUnit.Point)
Dim rectF As New RectangleF(10, 10, 500, 500)
Dim solidBrush As New SolidBrush(Color.Black)

Dim familyName As String
Dim familyList As String = ""
Dim fontFamilies() As FontFamily

Dim installedFontCollection As New
Drawing.Text.InstalledFontCollection()

fontFamilies = installedFontCollection.Families

Dim count As Integer = fontFamilies.Length
Dim j As Integer

While j < count
familyName = fontFamilies(j).Name
familyList = familyList & familyName
familyList = familyList & ", "
j += 1
End While

e.Graphics.DrawString(familyList, font, solidBrush, rectF)
Dim g As Graphics = e.Graphics

g.DrawString(familyList, font, solidBrush, rectF)
End Sub 'pictureBox1_Paint

Public Delegate Sub PaintEventHandler( _
ByVal e As PaintEventArgs _
)

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:eL**************@TK2MSFTNGP06.phx.gbl...
Hello vbnetdev.

Happy Holidays.

I'm trying to use the VB example at this link. It gives me an error on
the last line of the example "e.Graphics.DrawString(familyList, font,
solidBrush, rectF)" If i put the example code in a button_click sub, it
says that "Graphics is not a member of System.EventArgs".

If i replace the "ByVal e As System.EventArgs" with "ByVal e As
System.Windows.Forms.PaintEventArgs", it gets rid of that error but then
says "Method 'Button1_Click' cannot handle Event 'Click" because they do
not have the same signature" on the SUB line.

I'm not sure of how to code this to do a test. I'd like to see the
results it would produce.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
>Check out the following topic in the MSDN library for code that
enumerates all of the valid fonts on your computer:

http://msdn2.microsoft.com/en-us/library/0yf5t4e8.aspx

If it is not listed, you can't use it.

This is my experience and perhaps someone else may have a more acceptable
answer for you.

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
>>Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is
only available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default
printer, it does not show the fonts i want. If i cahnge the printer to
the printer that has the font that i want, the font i want shows up in
the font selections. This seems to be true for any program that allows
me to select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with
the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change
to other fonts that are installed for the default printer and it prints
in those fonts. I just can't change to a font for the Zebra printer
even though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer
that i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony




Dec 26 '06 #9

P: n/a
Hello vbnetdev.

OK. That showed all the fonts. However it does not show the one that i am
looking for. It does not show the fonts that appear for a document when i
select the Zebra printer in Word.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Copy and paste this code in a new form...

Private pictureBox1 As New PictureBox()

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
pictureBox1.Dock = DockStyle.Fill
pictureBox1.BackColor = Color.White
AddHandler pictureBox1.Paint, AddressOf Me.pictureBox1_Paint
Me.Controls.Add(pictureBox1)
End Sub
Private Sub pictureBox1_Paint(ByVal sender As Object, ByVal e As
System.Windows.Forms.PaintEventArgs)
' Create a local version of the graphics object for the PictureBox.
Dim fontFamily As New FontFamily("Arial")
Dim font As New Font( _
fontFamily, _
8, _
FontStyle.Regular, _
GraphicsUnit.Point)
Dim rectF As New RectangleF(10, 10, 500, 500)
Dim solidBrush As New SolidBrush(Color.Black)

Dim familyName As String
Dim familyList As String = ""
Dim fontFamilies() As FontFamily

Dim installedFontCollection As New
Drawing.Text.InstalledFontCollection()

fontFamilies = installedFontCollection.Families

Dim count As Integer = fontFamilies.Length
Dim j As Integer

While j < count
familyName = fontFamilies(j).Name
familyList = familyList & familyName
familyList = familyList & ", "
j += 1
End While

e.Graphics.DrawString(familyList, font, solidBrush, rectF)
Dim g As Graphics = e.Graphics

g.DrawString(familyList, font, solidBrush, rectF)
End Sub 'pictureBox1_Paint

Public Delegate Sub PaintEventHandler( _
ByVal e As PaintEventArgs _
)

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:eL**************@TK2MSFTNGP06.phx.gbl...
>Hello vbnetdev.

Happy Holidays.

I'm trying to use the VB example at this link. It gives me an error on
the last line of the example "e.Graphics.DrawString(familyList, font,
solidBrush, rectF)" If i put the example code in a button_click sub, it
says that "Graphics is not a member of System.EventArgs".

If i replace the "ByVal e As System.EventArgs" with "ByVal e As
System.Windows.Forms.PaintEventArgs", it gets rid of that error but then
says "Method 'Button1_Click' cannot handle Event 'Click" because they do
not have the same signature" on the SUB line.

I'm not sure of how to code this to do a test. I'd like to see the
results it would produce.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
>>Check out the following topic in the MSDN library for code that
enumerates all of the valid fonts on your computer:

http://msdn2.microsoft.com/en-us/library/0yf5t4e8.aspx

If it is not listed, you can't use it.

This is my experience and perhaps someone else may have a more
acceptable answer for you.

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is
only available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default
printer, it does not show the fonts i want. If i cahnge the printer to
the printer that has the font that i want, the font i want shows up in
the font selections. This seems to be true for any program that allows
me to select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with.
After that i set the print font to the font i want, which is associated
with the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking
up the right printer from PrinterSettings.InstalledPrinters. I can
change to other fonts that are installed for the default printer and it
prints in those fonts. I just can't change to a font for the Zebra
printer even though i set the PrinterSettings.PrinterName to the Zebra
printer.

How do i change to the font that is only associated with the printer
that i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony




Dec 26 '06 #10

P: n/a
Now in MS Word....

Basically record a macro, selecting this font. Take a look at that code. You
will need that to automate the report. Now as long as this printer is your
default printer you should have no trouble automating this report in vb.net.

If you need help automating this report, this is one of my specialities and
will be happy to consult with you on this off list.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:eq**************@TK2MSFTNGP06.phx.gbl...
Hello vbnetdev.

OK. That showed all the fonts. However it does not show the one that i
am looking for. It does not show the fonts that appear for a document
when i select the Zebra printer in Word.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Copy and paste this code in a new form...

Private pictureBox1 As New PictureBox()

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
pictureBox1.Dock = DockStyle.Fill
pictureBox1.BackColor = Color.White
AddHandler pictureBox1.Paint, AddressOf Me.pictureBox1_Paint
Me.Controls.Add(pictureBox1)
End Sub
Private Sub pictureBox1_Paint(ByVal sender As Object, ByVal e As
System.Windows.Forms.PaintEventArgs)
' Create a local version of the graphics object for the
PictureBox.
Dim fontFamily As New FontFamily("Arial")
Dim font As New Font( _
fontFamily, _
8, _
FontStyle.Regular, _
GraphicsUnit.Point)
Dim rectF As New RectangleF(10, 10, 500, 500)
Dim solidBrush As New SolidBrush(Color.Black)

Dim familyName As String
Dim familyList As String = ""
Dim fontFamilies() As FontFamily

Dim installedFontCollection As New
Drawing.Text.InstalledFontCollection()

fontFamilies = installedFontCollection.Families

Dim count As Integer = fontFamilies.Length
Dim j As Integer

While j < count
familyName = fontFamilies(j).Name
familyList = familyList & familyName
familyList = familyList & ", "
j += 1
End While

e.Graphics.DrawString(familyList, font, solidBrush, rectF)
Dim g As Graphics = e.Graphics

g.DrawString(familyList, font, solidBrush, rectF)
End Sub 'pictureBox1_Paint

Public Delegate Sub PaintEventHandler( _
ByVal e As PaintEventArgs _
)

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:eL**************@TK2MSFTNGP06.phx.gbl...
>>Hello vbnetdev.

Happy Holidays.

I'm trying to use the VB example at this link. It gives me an error on
the last line of the example "e.Graphics.DrawString(familyList, font,
solidBrush, rectF)" If i put the example code in a button_click sub, it
says that "Graphics is not a member of System.EventArgs".

If i replace the "ByVal e As System.EventArgs" with "ByVal e As
System.Windows.Forms.PaintEventArgs", it gets rid of that error but then
says "Method 'Button1_Click' cannot handle Event 'Click" because they do
not have the same signature" on the SUB line.

I'm not sure of how to code this to do a test. I'd like to see the
results it would produce.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eK**************@TK2MSFTNGP02.phx.gbl...
Check out the following topic in the MSDN library for code that
enumerates all of the valid fonts on your computer:

http://msdn2.microsoft.com/en-us/library/0yf5t4e8.aspx

If it is not listed, you can't use it.

This is my experience and perhaps someone else may have a more
acceptable answer for you.

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.
>
Developing a Windows Form program in VS.NET VB, .NET Framework
1.1.4322 on a windows XP Pro, SP2.
>
Before printing a document, i want to set the font to a font that is
only available with the printer that i am printing to(Zebra TLP2844).
>
When i open Word and look at the fonts available for the default
printer, it does not show the fonts i want. If i cahnge the printer
to the printer that has the font that i want, the font i want shows up
in the font selections. This seems to be true for any program that
allows me to select a font for printing (Excel, Notepad, etc.)
>
In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with.
After that i set the print font to the font i want, which is
associated with the printer in PrinterSettings.PrinterName.
>
When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.
>
I have taken it through the debugger and i can see that it is picking
up the right printer from PrinterSettings.InstalledPrinters. I can
change to other fonts that are installed for the default printer and
it prints in those fonts. I just can't change to a font for the Zebra
printer even though i set the PrinterSettings.PrinterName to the Zebra
printer.
>
How do i change to the font that is only associated with the printer
that i am trying to use ?
>
Any help would be gratefully appreciated.
>
Thanks,
Tony
>
>




Dec 26 '06 #11

P: n/a
Hello vbnetdev.

I guess i should have explained that this is not really a report, it's a
barcode label. We are trying to get away from Word and right now they are
printing their labels from Word.

Happy New Year !

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
You might also try another approach, that is to automate your report from
Excel. In my experience I can make things work while automating under
Excel object that I can't necessarily do straight from vb.net. If you need
assistance with this contact me off list. My email here is valid.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
>Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is only
available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default printer,
it does not show the fonts i want. If i cahnge the printer to the
printer that has the font that i want, the font i want shows up in the
font selections. This seems to be true for any program that allows me to
select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with
the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change
to other fonts that are installed for the default printer and it prints
in those fonts. I just can't change to a font for the Zebra printer even
though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer that
i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony



Dec 27 '06 #12

P: n/a
ahhhh this is more sense to me now.

Let me look into this a little more. Why do they want to stop using Word?
Too slow?
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
Hello vbnetdev.

I guess i should have explained that this is not really a report, it's a
barcode label. We are trying to get away from Word and right now they are
printing their labels from Word.

Happy New Year !

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
>You might also try another approach, that is to automate your report from
Excel. In my experience I can make things work while automating under
Excel object that I can't necessarily do straight from vb.net. If you
need assistance with this contact me off list. My email here is valid.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
>>Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is
only available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default
printer, it does not show the fonts i want. If i cahnge the printer to
the printer that has the font that i want, the font i want shows up in
the font selections. This seems to be true for any program that allows
me to select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with. After
that i set the print font to the font i want, which is associated with
the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking up
the right printer from PrinterSettings.InstalledPrinters. I can change
to other fonts that are installed for the default printer and it prints
in those fonts. I just can't change to a font for the Zebra printer
even though i set the PrinterSettings.PrinterName to the Zebra printer.

How do i change to the font that is only associated with the printer
that i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony




Dec 27 '06 #13

P: n/a
The Word template is just too easy to mess up. We are using fields to
accept the barcode number and other items and then they select file/print
from the menu.

Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets reset by
somebody using the computer and then the person printing barcode labels does
not know how to select the label printer, etc.

Using a VB program is an all around cleaner way to allow the user to do the
things that they need to do which includes other tasks besides printing
barcode labels.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
ahhhh this is more sense to me now.

Let me look into this a little more. Why do they want to stop using Word?
Too slow?
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
>Hello vbnetdev.

I guess i should have explained that this is not really a report, it's a
barcode label. We are trying to get away from Word and right now they
are printing their labels from Word.

Happy New Year !

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
>>You might also try another approach, that is to automate your report
from Excel. In my experience I can make things work while automating
under Excel object that I can't necessarily do straight from vb.net. If
you need assistance with this contact me off list. My email here is
valid.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.

Developing a Windows Form program in VS.NET VB, .NET Framework 1.1.4322
on a windows XP Pro, SP2.

Before printing a document, i want to set the font to a font that is
only available with the printer that i am printing to(Zebra TLP2844).

When i open Word and look at the fonts available for the default
printer, it does not show the fonts i want. If i cahnge the printer to
the printer that has the font that i want, the font i want shows up in
the font selections. This seems to be true for any program that allows
me to select a font for printing (Excel, Notepad, etc.)

In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with.
After that i set the print font to the font i want, which is associated
with the printer in PrinterSettings.PrinterName.

When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.

I have taken it through the debugger and i can see that it is picking
up the right printer from PrinterSettings.InstalledPrinters. I can
change to other fonts that are installed for the default printer and it
prints in those fonts. I just can't change to a font for the Zebra
printer even though i set the PrinterSettings.PrinterName to the Zebra
printer.

How do i change to the font that is only associated with the printer
that i am trying to use ?

Any help would be gratefully appreciated.

Thanks,
Tony




Dec 27 '06 #14

P: n/a
what would you say if we could devise a program that would talk to the
template, do what needs to be done and they never see it? all they do is
actually enter the data in the program that accesses the template?

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
The Word template is just too easy to mess up. We are using fields to
accept the barcode number and other items and then they select file/print
from the menu.

Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets reset
by somebody using the computer and then the person printing barcode labels
does not know how to select the label printer, etc.

Using a VB program is an all around cleaner way to allow the user to do
the things that they need to do which includes other tasks besides
printing barcode labels.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
>ahhhh this is more sense to me now.

Let me look into this a little more. Why do they want to stop using Word?
Too slow?
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
>>Hello vbnetdev.

I guess i should have explained that this is not really a report, it's a
barcode label. We are trying to get away from Word and right now they
are printing their labels from Word.

Happy New Year !

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
You might also try another approach, that is to automate your report
from Excel. In my experience I can make things work while automating
under Excel object that I can't necessarily do straight from vb.net. If
you need assistance with this contact me off list. My email here is
valid.
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl...
Hello.
>
Developing a Windows Form program in VS.NET VB, .NET Framework
1.1.4322 on a windows XP Pro, SP2.
>
Before printing a document, i want to set the font to a font that is
only available with the printer that i am printing to(Zebra TLP2844).
>
When i open Word and look at the fonts available for the default
printer, it does not show the fonts i want. If i cahnge the printer
to the printer that has the font that i want, the font i want shows up
in the font selections. This seems to be true for any program that
allows me to select a font for printing (Excel, Notepad, etc.)
>
In my VB program i set the PrinterSettings.PrinterName property to the
name of the printer that has the fonts that i want to print with.
After that i set the print font to the font i want, which is
associated with the printer in PrinterSettings.PrinterName.
>
When i go to print, it does not use the font that i am expecting. It
uses the "Microsoft Sans Serif" font.
>
I have taken it through the debugger and i can see that it is picking
up the right printer from PrinterSettings.InstalledPrinters. I can
change to other fonts that are installed for the default printer and
it prints in those fonts. I just can't change to a font for the Zebra
printer even though i set the PrinterSettings.PrinterName to the Zebra
printer.
>
How do i change to the font that is only associated with the printer
that i am trying to use ?
>
Any help would be gratefully appreciated.
>
Thanks,
Tony
>
>




Dec 27 '06 #15

P: n/a
I would say "Thanks alot".

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
what would you say if we could devise a program that would talk to the
template, do what needs to be done and they never see it? all they do is
actually enter the data in the program that accesses the template?

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>The Word template is just too easy to mess up. We are using fields to
accept the barcode number and other items and then they select file/print
from the menu.

Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets reset
by somebody using the computer and then the person printing barcode
labels does not know how to select the label printer, etc.

Using a VB program is an all around cleaner way to allow the user to do
the things that they need to do which includes other tasks besides
printing barcode labels.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
>>ahhhh this is more sense to me now.

Let me look into this a little more. Why do they want to stop using
Word? Too slow?
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
Hello vbnetdev.

I guess i should have explained that this is not really a report, it's
a barcode label. We are trying to get away from Word and right now
they are printing their labels from Word.

Happy New Year !

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
You might also try another approach, that is to automate your report
from Excel. In my experience I can make things work while automating
under Excel object that I can't necessarily do straight from vb.net.
If you need assistance with this contact me off list. My email here is
valid.
>
>
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:OS**************@TK2MSFTNGP04.phx.gbl.. .
>Hello.
>>
>Developing a Windows Form program in VS.NET VB, .NET Framework
>1.1.4322 on a windows XP Pro, SP2.
>>
>Before printing a document, i want to set the font to a font that is
>only available with the printer that i am printing to(Zebra TLP2844).
>>
>When i open Word and look at the fonts available for the default
>printer, it does not show the fonts i want. If i cahnge the printer
>to the printer that has the font that i want, the font i want shows
>up in the font selections. This seems to be true for any program that
>allows me to select a font for printing (Excel, Notepad, etc.)
>>
>In my VB program i set the PrinterSettings.PrinterName property to
>the name of the printer that has the fonts that i want to print with.
>After that i set the print font to the font i want, which is
>associated with the printer in PrinterSettings.PrinterName.
>>
>When i go to print, it does not use the font that i am expecting. It
>uses the "Microsoft Sans Serif" font.
>>
>I have taken it through the debugger and i can see that it is picking
>up the right printer from PrinterSettings.InstalledPrinters. I can
>change to other fonts that are installed for the default printer and
>it prints in those fonts. I just can't change to a font for the
>Zebra printer even though i set the PrinterSettings.PrinterName to
>the Zebra printer.
>>
>How do i change to the font that is only associated with the printer
>that i am trying to use ?
>>
>Any help would be gratefully appreciated.
>>
>Thanks,
>Tony
>>
>>
>
>




Dec 27 '06 #16

P: n/a
You should go over to your local Barnes & Noble and check out
Tim Patrick's book, "Start-to-Finish VB2005". I haven't finished
it yet (it's a great book for learning VB2005), but it does have
bar code design and printing stuff in it.

Robin S.
------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
>I would say "Thanks alot".

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
>what would you say if we could devise a program that would talk to
the template, do what needs to be done and they never see it? all
they do is actually enter the data in the program that accesses the
template?

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>The Word template is just too easy to mess up. We are using fields
to accept the barcode number and other items and then they select
file/print from the menu.

Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets
reset by somebody using the computer and then the person printing
barcode labels does not know how to select the label printer, etc.

Using a VB program is an all around cleaner way to allow the user to
do the things that they need to do which includes other tasks
besides printing barcode labels.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl.. .
ahhhh this is more sense to me now.

Let me look into this a little more. Why do they want to stop using
Word? Too slow?
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
Hello vbnetdev.
>
I guess i should have explained that this is not really a report,
it's a barcode label. We are trying to get away from Word and
right now they are printing their labels from Word.
>
Happy New Year !
>
Thanks,
Tony
>
"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl.. .
>You might also try another approach, that is to automate your
>report from Excel. In my experience I can make things work while
>automating under Excel object that I can't necessarily do
>straight from vb.net. If you need assistance with this contact me
>off list. My email here is valid.
>>
>>
>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>news:OS**************@TK2MSFTNGP04.phx.gbl. ..
>>Hello.
>>>
>>Developing a Windows Form program in VS.NET VB, .NET Framework
>>1.1.4322 on a windows XP Pro, SP2.
>>>
>>Before printing a document, i want to set the font to a font
>>that is only available with the printer that i am printing
>>to(Zebra TLP2844).
>>>
>>When i open Word and look at the fonts available for the default
>>printer, it does not show the fonts i want. If i cahnge the
>>printer to the printer that has the font that i want, the font i
>>want shows up in the font selections. This seems to be true for
>>any program that allows me to select a font for printing (Excel,
>>Notepad, etc.)
>>>
>>In my VB program i set the PrinterSettings.PrinterName property
>>to the name of the printer that has the fonts that i want to
>>print with. After that i set the print font to the font i want,
>>which is associated with the printer in
>>PrinterSettings.PrinterName.
>>>
>>When i go to print, it does not use the font that i am
>>expecting. It uses the "Microsoft Sans Serif" font.
>>>
>>I have taken it through the debugger and i can see that it is
>>picking up the right printer from
>>PrinterSettings.InstalledPrinters. I can change to other fonts
>>that are installed for the default printer and it prints in
>>those fonts. I just can't change to a font for the Zebra
>>printer even though i set the PrinterSettings.PrinterName to the
>>Zebra printer.
>>>
>>How do i change to the font that is only associated with the
>>printer that i am trying to use ?
>>>
>>Any help would be gratefully appreciated.
>>>
>>Thanks,
>>Tony
>>>
>>>
>>
>>
>
>




Dec 27 '06 #17

P: n/a
Hello Robin.

Good Idea. I will check that out even though i am using VS2003.

Thanks,
Tony

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:qu******************************@comcast.com. ..
You should go over to your local Barnes & Noble and check out
Tim Patrick's book, "Start-to-Finish VB2005". I haven't finished
it yet (it's a great book for learning VB2005), but it does have
bar code design and printing stuff in it.

Robin S.
------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
>>I would say "Thanks alot".

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
>>what would you say if we could devise a program that would talk to the
template, do what needs to be done and they never see it? all they do is
actually enter the data in the program that accesses the template?

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl.. .
The Word template is just too easy to mess up. We are using fields to
accept the barcode number and other items and then they select
file/print from the menu.

Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets
reset by somebody using the computer and then the person printing
barcode labels does not know how to select the label printer, etc.

Using a VB program is an all around cleaner way to allow the user to do
the things that they need to do which includes other tasks besides
printing barcode labels.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl. ..
ahhhh this is more sense to me now.
>
Let me look into this a little more. Why do they want to stop using
Word? Too slow?
>
>
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl.. .
>Hello vbnetdev.
>>
>I guess i should have explained that this is not really a report,
>it's a barcode label. We are trying to get away from Word and right
>now they are printing their labels from Word.
>>
>Happy New Year !
>>
>Thanks,
>Tony
>>
>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>news:eb**************@TK2MSFTNGP02.phx.gbl. ..
>>You might also try another approach, that is to automate your report
>>from Excel. In my experience I can make things work while automating
>>under Excel object that I can't necessarily do straight from vb.net.
>>If you need assistance with this contact me off list. My email here
>>is valid.
>>>
>>>
>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>news:OS**************@TK2MSFTNGP04.phx.gbl.. .
>>>Hello.
>>>>
>>>Developing a Windows Form program in VS.NET VB, .NET Framework
>>>1.1.4322 on a windows XP Pro, SP2.
>>>>
>>>Before printing a document, i want to set the font to a font that
>>>is only available with the printer that i am printing to(Zebra
>>>TLP2844).
>>>>
>>>When i open Word and look at the fonts available for the default
>>>printer, it does not show the fonts i want. If i cahnge the
>>>printer to the printer that has the font that i want, the font i
>>>want shows up in the font selections. This seems to be true for any
>>>program that allows me to select a font for printing (Excel,
>>>Notepad, etc.)
>>>>
>>>In my VB program i set the PrinterSettings.PrinterName property to
>>>the name of the printer that has the fonts that i want to print
>>>with. After that i set the print font to the font i want, which is
>>>associated with the printer in PrinterSettings.PrinterName.
>>>>
>>>When i go to print, it does not use the font that i am expecting.
>>>It uses the "Microsoft Sans Serif" font.
>>>>
>>>I have taken it through the debugger and i can see that it is
>>>picking up the right printer from
>>>PrinterSettings.InstalledPrinters. I can change to other fonts
>>>that are installed for the default printer and it prints in those
>>>fonts. I just can't change to a font for the Zebra printer even
>>>though i set the PrinterSettings.PrinterName to the Zebra printer.
>>>>
>>>How do i change to the font that is only associated with the
>>>printer that i am trying to use ?
>>>>
>>>Any help would be gratefully appreciated.
>>>>
>>>Thanks,
>>>Tony
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Dec 28 '06 #18

P: n/a
You could always upgrade to VS2005... ;-)
Robin S.
-------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:Ot**************@TK2MSFTNGP03.phx.gbl...
Hello Robin.

Good Idea. I will check that out even though i am using VS2003.

Thanks,
Tony

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:qu******************************@comcast.com. ..
>You should go over to your local Barnes & Noble and check out
Tim Patrick's book, "Start-to-Finish VB2005". I haven't finished
it yet (it's a great book for learning VB2005), but it does have
bar code design and printing stuff in it.

Robin S.
------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
>>>I would say "Thanks alot".

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
what would you say if we could devise a program that would talk to
the template, do what needs to be done and they never see it? all
they do is actually enter the data in the program that accesses the
template?

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl. ..
The Word template is just too easy to mess up. We are using
fields to accept the barcode number and other items and then they
select file/print from the menu.
>
Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets
reset by somebody using the computer and then the person printing
barcode labels does not know how to select the label printer, etc.
>
Using a VB program is an all around cleaner way to allow the user
to do the things that they need to do which includes other tasks
besides printing barcode labels.
>
Thanks,
Tony
>
"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl.. .
>ahhhh this is more sense to me now.
>>
>Let me look into this a little more. Why do they want to stop
>using Word? Too slow?
>>
>>
>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>news:uu**************@TK2MSFTNGP02.phx.gbl. ..
>>Hello vbnetdev.
>>>
>>I guess i should have explained that this is not really a
>>report, it's a barcode label. We are trying to get away from
>>Word and right now they are printing their labels from Word.
>>>
>>Happy New Year !
>>>
>>Thanks,
>>Tony
>>>
>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>news:eb**************@TK2MSFTNGP02.phx.gbl.. .
>>>You might also try another approach, that is to automate your
>>>report from Excel. In my experience I can make things work
>>>while automating under Excel object that I can't necessarily do
>>>straight from vb.net. If you need assistance with this contact
>>>me off list. My email here is valid.
>>>>
>>>>
>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>>news:OS**************@TK2MSFTNGP04.phx.gbl. ..
>>>>Hello.
>>>>>
>>>>Developing a Windows Form program in VS.NET VB, .NET Framework
>>>>1.1.4322 on a windows XP Pro, SP2.
>>>>>
>>>>Before printing a document, i want to set the font to a font
>>>>that is only available with the printer that i am printing
>>>>to(Zebra TLP2844).
>>>>>
>>>>When i open Word and look at the fonts available for the
>>>>default printer, it does not show the fonts i want. If i
>>>>cahnge the printer to the printer that has the font that i
>>>>want, the font i want shows up in the font selections. This
>>>>seems to be true for any program that allows me to select a
>>>>font for printing (Excel, Notepad, etc.)
>>>>>
>>>>In my VB program i set the PrinterSettings.PrinterName
>>>>property to the name of the printer that has the fonts that i
>>>>want to print with. After that i set the print font to the
>>>>font i want, which is associated with the printer in
>>>>PrinterSettings.PrinterName.
>>>>>
>>>>When i go to print, it does not use the font that i am
>>>>expecting. It uses the "Microsoft Sans Serif" font.
>>>>>
>>>>I have taken it through the debugger and i can see that it is
>>>>picking up the right printer from
>>>>PrinterSettings.InstalledPrinters. I can change to other
>>>>fonts that are installed for the default printer and it prints
>>>>in those fonts. I just can't change to a font for the Zebra
>>>>printer even though i set the PrinterSettings.PrinterName to
>>>>the Zebra printer.
>>>>>
>>>>How do i change to the font that is only associated with the
>>>>printer that i am trying to use ?
>>>>>
>>>>Any help would be gratefully appreciated.
>>>>>
>>>>Thanks,
>>>>Tony
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Dec 28 '06 #19

P: n/a
well Tony send me a template, what you are sending for data. If you have the
project zip it up and send it and let me see what I can do.

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
>I would say "Thanks alot".

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
>what would you say if we could devise a program that would talk to the
template, do what needs to be done and they never see it? all they do is
actually enter the data in the program that accesses the template?

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>The Word template is just too easy to mess up. We are using fields to
accept the barcode number and other items and then they select
file/print from the menu.

Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets reset
by somebody using the computer and then the person printing barcode
labels does not know how to select the label printer, etc.

Using a VB program is an all around cleaner way to allow the user to do
the things that they need to do which includes other tasks besides
printing barcode labels.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl.. .
ahhhh this is more sense to me now.

Let me look into this a little more. Why do they want to stop using
Word? Too slow?
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
Hello vbnetdev.
>
I guess i should have explained that this is not really a report, it's
a barcode label. We are trying to get away from Word and right now
they are printing their labels from Word.
>
Happy New Year !
>
Thanks,
Tony
>
"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl.. .
>You might also try another approach, that is to automate your report
>from Excel. In my experience I can make things work while automating
>under Excel object that I can't necessarily do straight from vb.net.
>If you need assistance with this contact me off list. My email here
>is valid.
>>
>>
>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>news:OS**************@TK2MSFTNGP04.phx.gbl. ..
>>Hello.
>>>
>>Developing a Windows Form program in VS.NET VB, .NET Framework
>>1.1.4322 on a windows XP Pro, SP2.
>>>
>>Before printing a document, i want to set the font to a font that is
>>only available with the printer that i am printing to(Zebra
>>TLP2844).
>>>
>>When i open Word and look at the fonts available for the default
>>printer, it does not show the fonts i want. If i cahnge the printer
>>to the printer that has the font that i want, the font i want shows
>>up in the font selections. This seems to be true for any program
>>that allows me to select a font for printing (Excel, Notepad, etc.)
>>>
>>In my VB program i set the PrinterSettings.PrinterName property to
>>the name of the printer that has the fonts that i want to print
>>with. After that i set the print font to the font i want, which is
>>associated with the printer in PrinterSettings.PrinterName.
>>>
>>When i go to print, it does not use the font that i am expecting.
>>It uses the "Microsoft Sans Serif" font.
>>>
>>I have taken it through the debugger and i can see that it is
>>picking up the right printer from PrinterSettings.InstalledPrinters.
>>I can change to other fonts that are installed for the default
>>printer and it prints in those fonts. I just can't change to a font
>>for the Zebra printer even though i set the
>>PrinterSettings.PrinterName to the Zebra printer.
>>>
>>How do i change to the font that is only associated with the printer
>>that i am trying to use ?
>>>
>>Any help would be gratefully appreciated.
>>>
>>Thanks,
>>Tony
>>>
>>>
>>
>>
>
>




Dec 28 '06 #20

P: n/a
Now Robin,

One step at a time... LOL

Bruce

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dY******************************@comcast.com. ..
You could always upgrade to VS2005... ;-)
Robin S.
-------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:Ot**************@TK2MSFTNGP03.phx.gbl...
>Hello Robin.

Good Idea. I will check that out even though i am using VS2003.

Thanks,
Tony

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:qu******************************@comcast.com ...
>>You should go over to your local Barnes & Noble and check out
Tim Patrick's book, "Start-to-Finish VB2005". I haven't finished
it yet (it's a great book for learning VB2005), but it does have
bar code design and printing stuff in it.

Robin S.
------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
I would say "Thanks alot".

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
what would you say if we could devise a program that would talk to the
template, do what needs to be done and they never see it? all they do
is actually enter the data in the program that accesses the template?
>
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl.. .
>The Word template is just too easy to mess up. We are using fields
>to accept the barcode number and other items and then they select
>file/print from the menu.
>>
>Sometimes they save the template with the label data init and they
>shouldn't, they lose it from the desktop, the default printer gets
>reset by somebody using the computer and then the person printing
>barcode labels does not know how to select the label printer, etc.
>>
>Using a VB program is an all around cleaner way to allow the user to
>do the things that they need to do which includes other tasks besides
>printing barcode labels.
>>
>Thanks,
>Tony
>>
>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>news:O%****************@TK2MSFTNGP04.phx.gbl. ..
>>ahhhh this is more sense to me now.
>>>
>>Let me look into this a little more. Why do they want to stop using
>>Word? Too slow?
>>>
>>>
>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>news:uu**************@TK2MSFTNGP02.phx.gbl.. .
>>>Hello vbnetdev.
>>>>
>>>I guess i should have explained that this is not really a report,
>>>it's a barcode label. We are trying to get away from Word and
>>>right now they are printing their labels from Word.
>>>>
>>>Happy New Year !
>>>>
>>>Thanks,
>>>Tony
>>>>
>>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>>news:eb**************@TK2MSFTNGP02.phx.gbl. ..
>>>>You might also try another approach, that is to automate your
>>>>report from Excel. In my experience I can make things work while
>>>>automating under Excel object that I can't necessarily do straight
>>>>from vb.net. If you need assistance with this contact me off list.
>>>>My email here is valid.
>>>>>
>>>>>
>>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>>>news:OS**************@TK2MSFTNGP04.phx.gbl ...
>>>>>Hello.
>>>>>>
>>>>>Developing a Windows Form program in VS.NET VB, .NET Framework
>>>>>1.1.4322 on a windows XP Pro, SP2.
>>>>>>
>>>>>Before printing a document, i want to set the font to a font that
>>>>>is only available with the printer that i am printing to(Zebra
>>>>>TLP2844).
>>>>>>
>>>>>When i open Word and look at the fonts available for the default
>>>>>printer, it does not show the fonts i want. If i cahnge the
>>>>>printer to the printer that has the font that i want, the font i
>>>>>want shows up in the font selections. This seems to be true for
>>>>>any program that allows me to select a font for printing (Excel,
>>>>>Notepad, etc.)
>>>>>>
>>>>>In my VB program i set the PrinterSettings.PrinterName property
>>>>>to the name of the printer that has the fonts that i want to
>>>>>print with. After that i set the print font to the font i want,
>>>>>which is associated with the printer in
>>>>>PrinterSettings.PrinterName.
>>>>>>
>>>>>When i go to print, it does not use the font that i am expecting.
>>>>>It uses the "Microsoft Sans Serif" font.
>>>>>>
>>>>>I have taken it through the debugger and i can see that it is
>>>>>picking up the right printer from
>>>>>PrinterSettings.InstalledPrinters. I can change to other fonts
>>>>>that are installed for the default printer and it prints in those
>>>>>fonts. I just can't change to a font for the Zebra printer even
>>>>>though i set the PrinterSettings.PrinterName to the Zebra
>>>>>printer.
>>>>>>
>>>>>How do i change to the font that is only associated with the
>>>>>printer that i am trying to use ?
>>>>>>
>>>>>Any help would be gratefully appreciated.
>>>>>>
>>>>>Thanks,
>>>>>Tony
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Dec 28 '06 #21

P: n/a
Hello vbnetdev.

Thanks for your offer.

Let me see if i can get this working without going through that kind of
workaround. I have your email address and will contact you if needed.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:ec**************@TK2MSFTNGP02.phx.gbl...
well Tony send me a template, what you are sending for data. If you have
the project zip it up and send it and let me see what I can do.

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
>>I would say "Thanks alot".

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl...
>>what would you say if we could devise a program that would talk to the
template, do what needs to be done and they never see it? all they do is
actually enter the data in the program that accesses the template?

"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl.. .
The Word template is just too easy to mess up. We are using fields to
accept the barcode number and other items and then they select
file/print from the menu.

Sometimes they save the template with the label data init and they
shouldn't, they lose it from the desktop, the default printer gets
reset by somebody using the computer and then the person printing
barcode labels does not know how to select the label printer, etc.

Using a VB program is an all around cleaner way to allow the user to do
the things that they need to do which includes other tasks besides
printing barcode labels.

Thanks,
Tony

"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl. ..
ahhhh this is more sense to me now.
>
Let me look into this a little more. Why do they want to stop using
Word? Too slow?
>
>
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl.. .
>Hello vbnetdev.
>>
>I guess i should have explained that this is not really a report,
>it's a barcode label. We are trying to get away from Word and right
>now they are printing their labels from Word.
>>
>Happy New Year !
>>
>Thanks,
>Tony
>>
>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>news:eb**************@TK2MSFTNGP02.phx.gbl. ..
>>You might also try another approach, that is to automate your report
>>from Excel. In my experience I can make things work while automating
>>under Excel object that I can't necessarily do straight from vb.net.
>>If you need assistance with this contact me off list. My email here
>>is valid.
>>>
>>>
>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>news:OS**************@TK2MSFTNGP04.phx.gbl.. .
>>>Hello.
>>>>
>>>Developing a Windows Form program in VS.NET VB, .NET Framework
>>>1.1.4322 on a windows XP Pro, SP2.
>>>>
>>>Before printing a document, i want to set the font to a font that
>>>is only available with the printer that i am printing to(Zebra
>>>TLP2844).
>>>>
>>>When i open Word and look at the fonts available for the default
>>>printer, it does not show the fonts i want. If i cahnge the
>>>printer to the printer that has the font that i want, the font i
>>>want shows up in the font selections. This seems to be true for any
>>>program that allows me to select a font for printing (Excel,
>>>Notepad, etc.)
>>>>
>>>In my VB program i set the PrinterSettings.PrinterName property to
>>>the name of the printer that has the fonts that i want to print
>>>with. After that i set the print font to the font i want, which is
>>>associated with the printer in PrinterSettings.PrinterName.
>>>>
>>>When i go to print, it does not use the font that i am expecting.
>>>It uses the "Microsoft Sans Serif" font.
>>>>
>>>I have taken it through the debugger and i can see that it is
>>>picking up the right printer from
>>>PrinterSettings.InstalledPrinters. I can change to other fonts that
>>>are installed for the default printer and it prints in those fonts.
>>>I just can't change to a font for the Zebra printer even though i
>>>set the PrinterSettings.PrinterName to the Zebra printer.
>>>>
>>>How do i change to the font that is only associated with the
>>>printer that i am trying to use ?
>>>>
>>>Any help would be gratefully appreciated.
>>>>
>>>Thanks,
>>>Tony
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Dec 28 '06 #22

P: n/a
Exactly. If i know for sure that it will work with 2005 and depending on
the cost of the upgrade (i think it's about $595.00 from MS), it might be
worth it to us.

Thanks,
Tony

"Bruce W. Darby" <kr****@comcast.netwrote in message
news:1o******************************@comcast.com. ..
Now Robin,

One step at a time... LOL

Bruce

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dY******************************@comcast.com. ..
>You could always upgrade to VS2005... ;-)
Robin S.
-------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:Ot**************@TK2MSFTNGP03.phx.gbl...
>>Hello Robin.

Good Idea. I will check that out even though i am using VS2003.

Thanks,
Tony

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:qu******************************@comcast.co m...
You should go over to your local Barnes & Noble and check out
Tim Patrick's book, "Start-to-Finish VB2005". I haven't finished
it yet (it's a great book for learning VB2005), but it does have
bar code design and printing stuff in it.

Robin S.
------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl...
>I would say "Thanks alot".
>
Thanks,
Tony
>
"vbnetdev" <ad***@kjmsolutions.comwrote in message
news:uo**************@TK2MSFTNGP03.phx.gbl.. .
>what would you say if we could devise a program that would talk to
>the template, do what needs to be done and they never see it? all
>they do is actually enter the data in the program that accesses the
>template?
>>
>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>news:%2****************@TK2MSFTNGP04.phx.gbl. ..
>>The Word template is just too easy to mess up. We are using fields
>>to accept the barcode number and other items and then they select
>>file/print from the menu.
>>>
>>Sometimes they save the template with the label data init and they
>>shouldn't, they lose it from the desktop, the default printer gets
>>reset by somebody using the computer and then the person printing
>>barcode labels does not know how to select the label printer, etc.
>>>
>>Using a VB program is an all around cleaner way to allow the user to
>>do the things that they need to do which includes other tasks
>>besides printing barcode labels.
>>>
>>Thanks,
>>Tony
>>>
>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>news:O%****************@TK2MSFTNGP04.phx.gbl ...
>>>ahhhh this is more sense to me now.
>>>>
>>>Let me look into this a little more. Why do they want to stop using
>>>Word? Too slow?
>>>>
>>>>
>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>>news:uu**************@TK2MSFTNGP02.phx.gbl. ..
>>>>Hello vbnetdev.
>>>>>
>>>>I guess i should have explained that this is not really a report,
>>>>it's a barcode label. We are trying to get away from Word and
>>>>right now they are printing their labels from Word.
>>>>>
>>>>Happy New Year !
>>>>>
>>>>Thanks,
>>>>Tony
>>>>>
>>>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>>>news:eb**************@TK2MSFTNGP02.phx.gbl ...
>>>>>You might also try another approach, that is to automate your
>>>>>report from Excel. In my experience I can make things work while
>>>>>automating under Excel object that I can't necessarily do
>>>>>straight from vb.net. If you need assistance with this contact me
>>>>>off list. My email here is valid.
>>>>>>
>>>>>>
>>>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>>>>news:OS**************@TK2MSFTNGP04.phx.gb l...
>>>>>>Hello.
>>>>>>>
>>>>>>Developing a Windows Form program in VS.NET VB, .NET Framework
>>>>>>1.1.4322 on a windows XP Pro, SP2.
>>>>>>>
>>>>>>Before printing a document, i want to set the font to a font
>>>>>>that is only available with the printer that i am printing
>>>>>>to(Zebra TLP2844).
>>>>>>>
>>>>>>When i open Word and look at the fonts available for the default
>>>>>>printer, it does not show the fonts i want. If i cahnge the
>>>>>>printer to the printer that has the font that i want, the font i
>>>>>>want shows up in the font selections. This seems to be true for
>>>>>>any program that allows me to select a font for printing (Excel,
>>>>>>Notepad, etc.)
>>>>>>>
>>>>>>In my VB program i set the PrinterSettings.PrinterName property
>>>>>>to the name of the printer that has the fonts that i want to
>>>>>>print with. After that i set the print font to the font i want,
>>>>>>which is associated with the printer in
>>>>>>PrinterSettings.PrinterName.
>>>>>>>
>>>>>>When i go to print, it does not use the font that i am
>>>>>>expecting. It uses the "Microsoft Sans Serif" font.
>>>>>>>
>>>>>>I have taken it through the debugger and i can see that it is
>>>>>>picking up the right printer from
>>>>>>PrinterSettings.InstalledPrinters. I can change to other fonts
>>>>>>that are installed for the default printer and it prints in
>>>>>>those fonts. I just can't change to a font for the Zebra
>>>>>>printer even though i set the PrinterSettings.PrinterName to the
>>>>>>Zebra printer.
>>>>>>>
>>>>>>How do i change to the font that is only associated with the
>>>>>>printer that i am trying to use ?
>>>>>>>
>>>>>>Any help would be gratefully appreciated.
>>>>>>>
>>>>>>Thanks,
>>>>>>Tony
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Dec 28 '06 #23

P: n/a
You could get Visual Studio 2005 Express for *free*. And run it
concurrently with VS2003. So you could muck around with it
without messing up your current stuff.

Just so's you knows.

Robin S.
-------------------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uG**************@TK2MSFTNGP02.phx.gbl...
Exactly. If i know for sure that it will work with 2005 and depending
on the cost of the upgrade (i think it's about $595.00 from MS), it
might be worth it to us.

Thanks,
Tony

"Bruce W. Darby" <kr****@comcast.netwrote in message
news:1o******************************@comcast.com. ..
>Now Robin,

One step at a time... LOL

Bruce

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dY******************************@comcast.com ...
>>You could always upgrade to VS2005... ;-)
Robin S.
-------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:Ot**************@TK2MSFTNGP03.phx.gbl...
Hello Robin.

Good Idea. I will check that out even though i am using VS2003.

Thanks,
Tony

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:qu******************************@comcast.c om...
You should go over to your local Barnes & Noble and check out
Tim Patrick's book, "Start-to-Finish VB2005". I haven't finished
it yet (it's a great book for learning VB2005), but it does have
bar code design and printing stuff in it.
>
Robin S.
------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl.. .
>>I would say "Thanks alot".
>>
>Thanks,
>Tony
>>
>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>news:uo**************@TK2MSFTNGP03.phx.gbl. ..
>>what would you say if we could devise a program that would talk
>>to the template, do what needs to be done and they never see it?
>>all they do is actually enter the data in the program that
>>accesses the template?
>>>
>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>news:%2****************@TK2MSFTNGP04.phx.gbl ...
>>>The Word template is just too easy to mess up. We are using
>>>fields to accept the barcode number and other items and then
>>>they select file/print from the menu.
>>>>
>>>Sometimes they save the template with the label data init and
>>>they shouldn't, they lose it from the desktop, the default
>>>printer gets reset by somebody using the computer and then the
>>>person printing barcode labels does not know how to select the
>>>label printer, etc.
>>>>
>>>Using a VB program is an all around cleaner way to allow the
>>>user to do the things that they need to do which includes other
>>>tasks besides printing barcode labels.
>>>>
>>>Thanks,
>>>Tony
>>>>
>>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>>news:O%****************@TK2MSFTNGP04.phx.gb l...
>>>>ahhhh this is more sense to me now.
>>>>>
>>>>Let me look into this a little more. Why do they want to stop
>>>>using Word? Too slow?
>>>>>
>>>>>
>>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>>>news:uu**************@TK2MSFTNGP02.phx.gbl ...
>>>>>Hello vbnetdev.
>>>>>>
>>>>>I guess i should have explained that this is not really a
>>>>>report, it's a barcode label. We are trying to get away from
>>>>>Word and right now they are printing their labels from Word.
>>>>>>
>>>>>Happy New Year !
>>>>>>
>>>>>Thanks,
>>>>>Tony
>>>>>>
>>>>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>>>>news:eb**************@TK2MSFTNGP02.phx.gb l...
>>>>>>You might also try another approach, that is to automate
>>>>>>your report from Excel. In my experience I can make things
>>>>>>work while automating under Excel object that I can't
>>>>>>necessarily do straight from vb.net. If you need assistance
>>>>>>with this contact me off list. My email here is valid.
>>>>>>>
>>>>>>>
>>>>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in
>>>>>>message news:OS**************@TK2MSFTNGP04.phx.gbl...
>>>>>>>Hello.
>>>>>>>>
>>>>>>>Developing a Windows Form program in VS.NET VB, .NET
>>>>>>>Framework 1.1.4322 on a windows XP Pro, SP2.
>>>>>>>>
>>>>>>>Before printing a document, i want to set the font to a
>>>>>>>font that is only available with the printer that i am
>>>>>>>printing to(Zebra TLP2844).
>>>>>>>>
>>>>>>>When i open Word and look at the fonts available for the
>>>>>>>default printer, it does not show the fonts i want. If i
>>>>>>>cahnge the printer to the printer that has the font that i
>>>>>>>want, the font i want shows up in the font selections. This
>>>>>>>seems to be true for any program that allows me to select a
>>>>>>>font for printing (Excel, Notepad, etc.)
>>>>>>>>
>>>>>>>In my VB program i set the PrinterSettings.PrinterName
>>>>>>>property to the name of the printer that has the fonts that
>>>>>>>i want to print with. After that i set the print font to
>>>>>>>the font i want, which is associated with the printer in
>>>>>>>PrinterSettings.PrinterName.
>>>>>>>>
>>>>>>>When i go to print, it does not use the font that i am
>>>>>>>expecting. It uses the "Microsoft Sans Serif" font.
>>>>>>>>
>>>>>>>I have taken it through the debugger and i can see that it
>>>>>>>is picking up the right printer from
>>>>>>>PrinterSettings.InstalledPrinters. I can change to other
>>>>>>>fonts that are installed for the default printer and it
>>>>>>>prints in those fonts. I just can't change to a font for
>>>>>>>the Zebra printer even though i set the
>>>>>>>PrinterSettings.PrinterName to the Zebra printer.
>>>>>>>>
>>>>>>>How do i change to the font that is only associated with
>>>>>>>the printer that i am trying to use ?
>>>>>>>>
>>>>>>>Any help would be gratefully appreciated.
>>>>>>>>
>>>>>>>Thanks,
>>>>>>>Tony
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Dec 28 '06 #24

P: n/a
The example in the book gives the ability to design your barcode labels,
and then lets you print a sheet of them. It does not use MS Word; it
does
this by doing printing in "Raw" mode. The author references MS Knowledge
Base article number 322090, which describes raw printing support from
..Net applications.

If you check that out, it may help you.

Or you can buy a copy of Tim Patrick's Start-to-Finish VB2005, read
chapter 19, and go to town.

Either way, good luck.
Robin S.
---------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uG**************@TK2MSFTNGP02.phx.gbl...
Exactly. If i know for sure that it will work with 2005 and depending
on the cost of the upgrade (i think it's about $595.00 from MS), it
might be worth it to us.

Thanks,
Tony

"Bruce W. Darby" <kr****@comcast.netwrote in message
news:1o******************************@comcast.com. ..
>Now Robin,

One step at a time... LOL

Bruce

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:dY******************************@comcast.com ...
>>You could always upgrade to VS2005... ;-)
Robin S.
-------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:Ot**************@TK2MSFTNGP03.phx.gbl...
Hello Robin.

Good Idea. I will check that out even though i am using VS2003.

Thanks,
Tony

"RobinS" <Ro****@NoSpam.yah.nonewrote in message
news:qu******************************@comcast.c om...
You should go over to your local Barnes & Noble and check out
Tim Patrick's book, "Start-to-Finish VB2005". I haven't finished
it yet (it's a great book for learning VB2005), but it does have
bar code design and printing stuff in it.
>
Robin S.
------------------------------------
"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
news:uH**************@TK2MSFTNGP03.phx.gbl.. .
>>I would say "Thanks alot".
>>
>Thanks,
>Tony
>>
>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>news:uo**************@TK2MSFTNGP03.phx.gbl. ..
>>what would you say if we could devise a program that would talk
>>to the template, do what needs to be done and they never see it?
>>all they do is actually enter the data in the program that
>>accesses the template?
>>>
>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>news:%2****************@TK2MSFTNGP04.phx.gbl ...
>>>The Word template is just too easy to mess up. We are using
>>>fields to accept the barcode number and other items and then
>>>they select file/print from the menu.
>>>>
>>>Sometimes they save the template with the label data init and
>>>they shouldn't, they lose it from the desktop, the default
>>>printer gets reset by somebody using the computer and then the
>>>person printing barcode labels does not know how to select the
>>>label printer, etc.
>>>>
>>>Using a VB program is an all around cleaner way to allow the
>>>user to do the things that they need to do which includes other
>>>tasks besides printing barcode labels.
>>>>
>>>Thanks,
>>>Tony
>>>>
>>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>>news:O%****************@TK2MSFTNGP04.phx.gb l...
>>>>ahhhh this is more sense to me now.
>>>>>
>>>>Let me look into this a little more. Why do they want to stop
>>>>using Word? Too slow?
>>>>>
>>>>>
>>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in message
>>>>news:uu**************@TK2MSFTNGP02.phx.gbl ...
>>>>>Hello vbnetdev.
>>>>>>
>>>>>I guess i should have explained that this is not really a
>>>>>report, it's a barcode label. We are trying to get away from
>>>>>Word and right now they are printing their labels from Word.
>>>>>>
>>>>>Happy New Year !
>>>>>>
>>>>>Thanks,
>>>>>Tony
>>>>>>
>>>>>"vbnetdev" <ad***@kjmsolutions.comwrote in message
>>>>>news:eb**************@TK2MSFTNGP02.phx.gb l...
>>>>>>You might also try another approach, that is to automate
>>>>>>your report from Excel. In my experience I can make things
>>>>>>work while automating under Excel object that I can't
>>>>>>necessarily do straight from vb.net. If you need assistance
>>>>>>with this contact me off list. My email here is valid.
>>>>>>>
>>>>>>>
>>>>>>"Tony Girgenti" <tony(nospam)@lakesideos.comwrote in
>>>>>>message news:OS**************@TK2MSFTNGP04.phx.gbl...
>>>>>>>Hello.
>>>>>>>>
>>>>>>>Developing a Windows Form program in VS.NET VB, .NET
>>>>>>>Framework 1.1.4322 on a windows XP Pro, SP2.
>>>>>>>>
>>>>>>>Before printing a document, i want to set the font to a
>>>>>>>font that is only available with the printer that i am
>>>>>>>printing to(Zebra TLP2844).
>>>>>>>>
>>>>>>>When i open Word and look at the fonts available for the
>>>>>>>default printer, it does not show the fonts i want. If i
>>>>>>>cahnge the printer to the printer that has the font that i
>>>>>>>want, the font i want shows up in the font selections. This
>>>>>>>seems to be true for any program that allows me to select a
>>>>>>>font for printing (Excel, Notepad, etc.)
>>>>>>>>
>>>>>>>In my VB program i set the PrinterSettings.PrinterName
>>>>>>>property to the name of the printer that has the fonts that
>>>>>>>i want to print with. After that i set the print font to
>>>>>>>the font i want, which is associated with the printer in
>>>>>>>PrinterSettings.PrinterName.
>>>>>>>>
>>>>>>>When i go to print, it does not use the font that i am
>>>>>>>expecting. It uses the "Microsoft Sans Serif" font.
>>>>>>>>
>>>>>>>I have taken it through the debugger and i can see that it
>>>>>>>is picking up the right printer from
>>>>>>>PrinterSettings.InstalledPrinters. I can change to other
>>>>>>>fonts that are installed for the default printer and it
>>>>>>>prints in those fonts. I just can't change to a font for
>>>>>>>the Zebra printer even though i set the
>>>>>>>PrinterSettings.PrinterName to the Zebra printer.
>>>>>>>>
>>>>>>>How do i change to the font that is only associated with
>>>>>>>the printer that i am trying to use ?
>>>>>>>>
>>>>>>>Any help would be gratefully appreciated.
>>>>>>>>
>>>>>>>Thanks,
>>>>>>>Tony
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>




Jan 1 '07 #25

This discussion thread is closed

Replies have been disabled for this discussion.