471,337 Members | 793 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Printer problems

In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing.Printing.PrintDocument
pd = flexgrid.PrintParameters.PrintDocument()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageSettings
..Landscape = False
..Margins.Left = 50
Dim a As New Printing.PaperSize("Carta", 850, 1100)
..PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintParameters.HeaderFont = New Font("Tahoma", 10, FontStyle.Bold)
flexgrid.PrintParameters.FooterFont = New Font("Tahoma", 10,
FontStyle.Regular)
' preview the grid
flexgrid.PrintGrid("Calificaciones",
C1.Win.C1FlexGrid.PrintGridFlags.FitToPageWidth +
C1.Win.C1FlexGrid.PrintGridFlags.ShowPreviewDialog , _
Now.ToString("dd/MM/yyyy") + vbCrLf + Now.ToString("HH:mm:ss") _
+ Chr(9) + ObtieneInformacion("escuela") + vbCrLf + "Calificaciones Periodo
" & ObtieneInformacion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replace(" ", "").Replace("|", " ") _
+ Chr(9) + ObtieneInformacion("seccion") + vbCrLf + "Página {0} de {1}", _
Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformacion("profesor") + vbCrLf + vbCrLf + vbCrLf +
"Firma: _________________________________")

It works fine, but when printing in a certain printer it prints just strange
characters
I can use this printer from any application in Windows and it works fine
I've already tried to install the printer drivers, but it is still printing
wrong
What can I do?

Alejandra Parra
Mexico

Nov 21 '05 #1
3 3873
Is the printer that prints garbage an HP Laserjet or other postscript
printer?

If it is, then this might help: Open up the machine's Printer Advanced
Options for that printer and look to the settings for TrueType fonts, if
it's set to "Substitute with Device Font" and gives you the option to
"Download as Softfont" then pick the download option and give it a try.

The link below shows a a graphic of the HP options ...

http://www.smithvoice.com/printip.htm

Robert Smith
Kirkland, WA
"Alejandra Parra" <al*******@hotmail.com> wrote in message
news:Oh*************@TK2MSFTNGP11.phx.gbl...
In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing.Printing.PrintDocument
pd = flexgrid.PrintParameters.PrintDocument()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageSettings
.Landscape = False
.Margins.Left = 50
Dim a As New Printing.PaperSize("Carta", 850, 1100)
.PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintParameters.HeaderFont = New Font("Tahoma", 10,
FontStyle.Bold)
flexgrid.PrintParameters.FooterFont = New Font("Tahoma", 10,
FontStyle.Regular)
' preview the grid
flexgrid.PrintGrid("Calificaciones",
C1.Win.C1FlexGrid.PrintGridFlags.FitToPageWidth +
C1.Win.C1FlexGrid.PrintGridFlags.ShowPreviewDialog , _
Now.ToString("dd/MM/yyyy") + vbCrLf + Now.ToString("HH:mm:ss") _
+ Chr(9) + ObtieneInformacion("escuela") + vbCrLf + "Calificaciones
Periodo
" & ObtieneInformacion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replace(" ", "").Replace("|", " ") _
+ Chr(9) + ObtieneInformacion("seccion") + vbCrLf + "Página {0} de {1}", _
Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformacion("profesor") + vbCrLf + vbCrLf + vbCrLf +
"Firma: _________________________________")

It works fine, but when printing in a certain printer it prints just
strange
characters
I can use this printer from any application in Windows and it works fine
I've already tried to install the printer drivers, but it is still
printing
wrong
What can I do?

Alejandra Parra
Mexico

Nov 21 '05 #2
Does this printer print anything else strange, like a web page, regular text
document, or is it just your print jobs that are coming out strange?

Christopher Koeber

"Alejandra Parra" <al*******@hotmail.com> wrote in message
news:Oh*************@TK2MSFTNGP11.phx.gbl...
In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing.Printing.PrintDocument
pd = flexgrid.PrintParameters.PrintDocument()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageSettings
.Landscape = False
.Margins.Left = 50
Dim a As New Printing.PaperSize("Carta", 850, 1100)
.PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintParameters.HeaderFont = New Font("Tahoma", 10,
FontStyle.Bold)
flexgrid.PrintParameters.FooterFont = New Font("Tahoma", 10,
FontStyle.Regular)
' preview the grid
flexgrid.PrintGrid("Calificaciones",
C1.Win.C1FlexGrid.PrintGridFlags.FitToPageWidth +
C1.Win.C1FlexGrid.PrintGridFlags.ShowPreviewDialog , _
Now.ToString("dd/MM/yyyy") + vbCrLf + Now.ToString("HH:mm:ss") _
+ Chr(9) + ObtieneInformacion("escuela") + vbCrLf + "Calificaciones
Periodo
" & ObtieneInformacion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replace(" ", "").Replace("|", " ") _
+ Chr(9) + ObtieneInformacion("seccion") + vbCrLf + "Página {0} de {1}", _
Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformacion("profesor") + vbCrLf + vbCrLf + vbCrLf +
"Firma: _________________________________")

It works fine, but when printing in a certain printer it prints just
strange
characters
I can use this printer from any application in Windows and it works fine
I've already tried to install the printer drivers, but it is still
printing
wrong
What can I do?

Alejandra Parra
Mexico

Nov 21 '05 #3
No, it's just when I print this

"Christopher Kurtis Koeber" <c_******@myrealbox.com> escribió en el mensaje
news:ed**************@TK2MSFTNGP10.phx.gbl...
Does this printer print anything else strange, like a web page, regular text document, or is it just your print jobs that are coming out strange?

Christopher Koeber

"Alejandra Parra" <al*******@hotmail.com> wrote in message
news:Oh*************@TK2MSFTNGP11.phx.gbl...
In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing.Printing.PrintDocument
pd = flexgrid.PrintParameters.PrintDocument()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageSettings
.Landscape = False
.Margins.Left = 50
Dim a As New Printing.PaperSize("Carta", 850, 1100)
.PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintParameters.HeaderFont = New Font("Tahoma", 10,
FontStyle.Bold)
flexgrid.PrintParameters.FooterFont = New Font("Tahoma", 10,
FontStyle.Regular)
' preview the grid
flexgrid.PrintGrid("Calificaciones",
C1.Win.C1FlexGrid.PrintGridFlags.FitToPageWidth +
C1.Win.C1FlexGrid.PrintGridFlags.ShowPreviewDialog , _
Now.ToString("dd/MM/yyyy") + vbCrLf + Now.ToString("HH:mm:ss") _
+ Chr(9) + ObtieneInformacion("escuela") + vbCrLf + "Calificaciones
Periodo
" & ObtieneInformacion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replace(" ", "").Replace("|", " ") _
+ Chr(9) + ObtieneInformacion("seccion") + vbCrLf + "Página {0} de {1}", _ Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformacion("profesor") + vbCrLf + vbCrLf + vbCrLf + "Firma: _________________________________")

It works fine, but when printing in a certain printer it prints just
strange
characters
I can use this printer from any application in Windows and it works fine
I've already tried to install the printer drivers, but it is still
printing
wrong
What can I do?

Alejandra Parra
Mexico


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bruce Adams | last post: by
5 posts views Thread by Tom Berry | last post: by
7 posts views Thread by Steve M | last post: by
reply views Thread by James Griffiths | last post: by
4 posts views Thread by Angel Mazo | last post: by
6 posts views Thread by Ioannis Demetriades | last post: by
reply views Thread by rosydwin | last post: by

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.