473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Print font not available after assigning PrinterName

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
24 2802
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matthew Belk | last post by:
I am trying to print some 2x6 labels on a SATO CL408e thermal label printer. The 2x6 labels are arranged in "landscape" mode with 2 labels per "sheet." When I attempt to print "x" copies of a 1...
2
by: Ned | last post by:
I'm having difficulty printing on a 4"x3" labels . I set the left margin to 0 but it always prints starting from the middle of the label on the X-axis (no matter what the margin settings are.) I...
0
by: Tessa | last post by:
Is there any security reason why you cannot print to a network printer from ASP.NET under IIS6 on Windows 2003 server? I'm using ASP.NET code to print to a server print queue using...
1
by: Michael Beck | last post by:
I need to select one of about 15 printers, which I have been able to do. Then I need to set that printer as the printer to use, run a Crystal Reports reports, and track if/when the printing job...
9
by: Scott M | last post by:
I'm printing a directory of about 500 multi-page tifs to a high speed printer and the spooler process is killing me!!! here is a little code..... Public Function PrintImage(ByVal...
1
by: DeWittds | last post by:
I have been tring to recreate a simple program that I wrote many years ago in quick basic. The program get name and address from a database, then the user will enter in info like order #, po # and...
4
by: DeWittds | last post by:
Had no luck in the visual basic group maybe someone here can give me a hand. I have been tring to recreate a simple program that I wrote many years ago in quick basic. The program get name and...
0
by: jigsmshah | last post by:
i am working on a project (windows service using VB.Net and C#) which gets the check details and check images from the database and prints the check to a printer. Printer name is configured in a...
10
by: S_K | last post by:
Hi, I have a directory full of a number of .PDF files that I need to print. Is there any simple way to do this? Using PdfReader purhaps? Thanks in advance. Steve
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.