473,569 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printer problems

In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing. Printing.PrintD ocument
pd = flexgrid.PrintP arameters.Print Document()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageS ettings
..Landscape = False
..Margins.Left = 50
Dim a As New Printing.PaperS ize("Carta", 850, 1100)
..PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintP arameters.Heade rFont = New Font("Tahoma", 10, FontStyle.Bold)
flexgrid.PrintP arameters.Foote rFont = New Font("Tahoma", 10,
FontStyle.Regul ar)
' preview the grid
flexgrid.PrintG rid("Calificaci ones",
C1.Win.C1FlexGr id.PrintGridFla gs.FitToPageWid th +
C1.Win.C1FlexGr id.PrintGridFla gs.ShowPreviewD ialog, _
Now.ToString("d d/MM/yyyy") + vbCrLf + Now.ToString("H H:mm:ss") _
+ Chr(9) + ObtieneInformac ion("escuela") + vbCrLf + "Calificaci ones Periodo
" & ObtieneInformac ion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replac e(" ", "").Replace("|" , " ") _
+ Chr(9) + ObtieneInformac ion("seccion") + vbCrLf + "Página {0} de {1}", _
Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformac ion("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 4006
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*******@hotm ail.com> wrote in message
news:Oh******** *****@TK2MSFTNG P11.phx.gbl...
In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing. Printing.PrintD ocument
pd = flexgrid.PrintP arameters.Print Document()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageS ettings
.Landscape = False
.Margins.Left = 50
Dim a As New Printing.PaperS ize("Carta", 850, 1100)
.PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintP arameters.Heade rFont = New Font("Tahoma", 10,
FontStyle.Bold)
flexgrid.PrintP arameters.Foote rFont = New Font("Tahoma", 10,
FontStyle.Regul ar)
' preview the grid
flexgrid.PrintG rid("Calificaci ones",
C1.Win.C1FlexGr id.PrintGridFla gs.FitToPageWid th +
C1.Win.C1FlexGr id.PrintGridFla gs.ShowPreviewD ialog, _
Now.ToString("d d/MM/yyyy") + vbCrLf + Now.ToString("H H:mm:ss") _
+ Chr(9) + ObtieneInformac ion("escuela") + vbCrLf + "Calificaci ones
Periodo
" & ObtieneInformac ion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replac e(" ", "").Replace("|" , " ") _
+ Chr(9) + ObtieneInformac ion("seccion") + vbCrLf + "Página {0} de {1}", _
Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformac ion("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*******@hotm ail.com> wrote in message
news:Oh******** *****@TK2MSFTNG P11.phx.gbl...
In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing. Printing.PrintD ocument
pd = flexgrid.PrintP arameters.Print Document()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageS ettings
.Landscape = False
.Margins.Left = 50
Dim a As New Printing.PaperS ize("Carta", 850, 1100)
.PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintP arameters.Heade rFont = New Font("Tahoma", 10,
FontStyle.Bold)
flexgrid.PrintP arameters.Foote rFont = New Font("Tahoma", 10,
FontStyle.Regul ar)
' preview the grid
flexgrid.PrintG rid("Calificaci ones",
C1.Win.C1FlexGr id.PrintGridFla gs.FitToPageWid th +
C1.Win.C1FlexGr id.PrintGridFla gs.ShowPreviewD ialog, _
Now.ToString("d d/MM/yyyy") + vbCrLf + Now.ToString("H H:mm:ss") _
+ Chr(9) + ObtieneInformac ion("escuela") + vbCrLf + "Calificaci ones
Periodo
" & ObtieneInformac ion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replac e(" ", "").Replace("|" , " ") _
+ Chr(9) + ObtieneInformac ion("seccion") + vbCrLf + "Página {0} de {1}", _
Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformac ion("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

"Christophe r Kurtis Koeber" <c_******@myrea lbox.com> escribió en el mensaje
news:ed******** ******@TK2MSFTN GP10.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*******@hotm ail.com> wrote in message
news:Oh******** *****@TK2MSFTNG P11.phx.gbl...
In my code, I print a dataSet

' get grid's PrintDocument object
Dim pd As System.Drawing. Printing.PrintD ocument
pd = flexgrid.PrintP arameters.Print Document()
' set up the page (landscape, 1.5" left margin)
With pd.DefaultPageS ettings
.Landscape = False
.Margins.Left = 50
Dim a As New Printing.PaperS ize("Carta", 850, 1100)
.PaperSize = a
End With
' set up header and footer fonts
flexgrid.PrintP arameters.Heade rFont = New Font("Tahoma", 10,
FontStyle.Bold)
flexgrid.PrintP arameters.Foote rFont = New Font("Tahoma", 10,
FontStyle.Regul ar)
' preview the grid
flexgrid.PrintG rid("Calificaci ones",
C1.Win.C1FlexGr id.PrintGridFla gs.FitToPageWid th +
C1.Win.C1FlexGr id.PrintGridFla gs.ShowPreviewD ialog, _
Now.ToString("d d/MM/yyyy") + vbCrLf + Now.ToString("H H:mm:ss") _
+ Chr(9) + ObtieneInformac ion("escuela") + vbCrLf + "Calificaci ones
Periodo
" & ObtieneInformac ion("periodo") _
+ vbCrLf + "Grado: " & sGrado & " Grupo: " & sGrupo & " Materia: " &
sMateria.Replac e(" ", "").Replace("|" , " ") _
+ Chr(9) + ObtieneInformac ion("seccion") + vbCrLf + "Página {0} de {1}", _ Chr(9) + Chr(9) + _
"Profesor: " & ObtieneInformac ion("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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
10947
by: Bruce Adams | last post by:
I am using VB6 SP6. I have an application that prints charts. Specifically, it prints line charts of plant process information nightly. The code is a mix of API calls and Printer methods. I am currently migrating to a new PC running XP. The charting application is hanging on a single line of code: Printer.Orientation = vbPRORLandscape It...
5
2000
by: Tom Berry | last post by:
We currently are trying our first transformation from VB6 to VB.Net. Of course, the Printer object is gone, but I'm having trouble finding the replacement syntax necessary to perform similar actions or set variables. We are interested in doing this inline (no pop-up dialog box). Specifically, where how would I replace the following...
7
6869
by: Steve M | last post by:
Hello, I'm having problems sending information from a python script to a printer. I was wondering if someone might send me in the right direction. I wasn't able to find much by Google TIA Steve
0
3638
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing problems have arisen. My investigations show that it is not related to the particular system I developed. but is affecting Access in general. So, has...
4
3056
by: Angel Mazo | last post by:
Recently, Terminal Server was set-up by site server responsible to give remote access to some users. I tested it and application runs ok. Now users get Error # 2202 when they try to "Preview"/"Print" a report because a printer is not setup. Users confirmed that they have a printer defined. I am not much familiar with Terminal Services...
0
2568
by: Esmee | last post by:
Hi there, I have created an Access 2002 db which contains several reports. Some reports need to be printed on a Laserjet and others on a Labelprinter. One of my clients wants to be able to print the same reports to 3 different laserjets and to 3 different labelprinters. (They work with the db on 3 different units each with their own...
6
10472
by: Ioannis Demetriades | last post by:
Hi, I need to change the printer's font to "control" -a printer font, and then send a sequence of characters to the printer. My problem is that I cannot change the printer's font. Can this be done without API calls? Thanks Ioannis
13
21640
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual data in the string being sent to the printer. However, if I prompt the user for data or if I insert data from a particular record/field in a form...
1
2350
by: groulder | last post by:
hi all, i have a problem with a network database that's used by a lot of people. people are finding, they will start the database, and if the mouse is moved over the print icon, the tooltip appears to show which printer it will print to as normal. this printer however is a printer that the user doesn't even have installed.
3
5549
by: Giovanni Benedetti | last post by:
Hi everybody, sorry for my English first of all. I've an ASP page (ASP 3.0) used on an intranet which fill up some particular Mail sheets getting data from a database. Those pre-compiled sheets are then showed in IE 6 for checking and then have to be printed. To correct printing the sheets I have to change the print margins and paper...
0
7922
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5509
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.