473,659 Members | 2,836 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printer question

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
Jul 21 '05 #1
1 1768
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:ev******** ******@tk2msftn gp13.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

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2593
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set of classes that allow me to interact with network devices. In other words, if I have a path and filename inside of a string variable in python, how do I send the file to the printer?? Thanks in advance
2
4616
by: alan | last post by:
I'm now using vb.net to write a POS system with a epson thermal printer. I use the ocx that provided by Epson to drive the printer. It's not the problem if I just using 1 computer vs 1 thermal printer. But now I need to use 2 computer vs 1 thermal, how can another computer use the same printer? I wonder I can send the print request and content to the computer which connecting to the printer by TCP/IP, but I don't know how to do that!
3
6294
by: Mika M | last post by:
Hi all! I have made an application for printing simple barcode labels using PrintDocument object, and it's working fine. Barcode printer that I use is attached to the computer, and this computer has drivers installed for this printer, and this printer is shared for the network. Question 1:
4
7493
by: Support | last post by:
Hello: I would like to create my own printer driver so that it is available in all applications through the file ->Print menu of applications. The driver will essentially take the contents of what is in the parent application and save it so file (like a file - save as). I will do some information processing when the printer driver is called so I will need it to open a form (like other drivers do). I am reading about pdd files and I see a...
11
9874
by: pamelafluente | last post by:
I am doing my own PrintDialog, and have placed there a combo with the printer names, as in the PrintDialog provided by VB.NET. Here is the question: how do I open the native windows printer dialog for the current printer, so that my current PrintDocument.PrinterSettings will be set according to the User choices ? Thanks -Pamela
1
1632
by: pigge79 | last post by:
Hi there, We are thinking of developing a product that needs to be able to parse data printed via some printer driver. The data will then be used to fill a PDF form. We believe the printer solution will be best as there are multiple applications that we need to retrieve data from. This is a brand new area for us, so I'm basically wondering if there is any out-of-the-box printer drivers that create files with a structure that we can...
8
1445
by: nrandell via AccessMonster.com | last post by:
I'm running Access2000 Have a front end app with 20 users scattered around the state with a back end server db centrally located. Takes a long time for outlying users to load the app. Eventually a message "Cannot find the file ('hull') (or one or its components).Make sure the path and filename correct and that all required librarys are available" displays. When you OK thru this, the app eventually comes up (sometime 5-10 minutes total)....
0
988
by: Robert Dufour | last post by:
I have an application that is a IVR (intercative voice response) application that can use multiple telephone lines simultaneously using a dialogic card. One of the things I need to do is use a document converter that is installed as a printer driver and convert a PDF file to a tif file. The program uses the maketif sub below. This apparently uses Acrobat reader to print to the default printer that is a printer driver that converts the PDF...
3
4005
by: NewToNetworks | last post by:
Hi, hello, help! I am new to networking so please forgive me if this is a simple question. I have been at this for hours to no avail. I"m trying to network my Mac G5, running OSX 10.4.7 Tiger, a PC laptop running Windows 2000, and an HP Laserjet 4500, with a Linksys Wireless-G router. All are set up with network cords running to the router. The router is working since I can access the internet on both computers. I followed the...
0
1857
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 XML file. Printer names are names which are available to the system on which the service is running. Printers used are network printers and are added using Printers and Faxes -> Add a printer. To validate the printer I am using the following...
0
8427
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8746
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.