Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set default dot matrix font to increase speed of printing

Status
Not open for further replies.

silicon

Programmer
Aug 13, 2002
31
US
I know by seting printers default font speed can be increased.Can any one suggest me how to set it in
epson lx-300.
Is there any other method to increase speed of dot matrix printer for printing vb program.

thanks in advance.
 
dear silicon if u have got an answer to your question then please do tell me at dipaktyagi@yahoo.co.in
thanks
 
Whatever you want to print convert those thing into txt file
then using shell command print that file.
eg.
c:\txtfilename.txt > prn
Somebody has suggest me this way
Dear deeprose try this if it helps you let me know also.

you may contact me on preet14dec@rediffmail.com
 
using the shell command to print the file should work pretty good though you may have difficulty printing to some printers over a network... and you don't have much control over the print job's name..

You can use the api's for writing the text direct to the printer through the win spooler... I dont have a code example to show you but basically you make api call to open the printer, then api calls to send the raw text to the printer then close the printer...

either way can work.. I don't remember the full details of why but I had used the shell method once and later found that the api method was more reliable.
 
Dear Sillicon,

If you find a way out pls let me know. You can call me also. :) From:
Apoorva Gala
You can mail me at apoo1972@rediffmail.com
 
If you're using the Printer Object to drive the printing, then you might want to try the following setting:

Printer.PrintQuality = vbPRPQDraft

On Dot Matrix printers, the Draft mode is usually the fastest printing mode available. Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Thanks russellbcopeland and others for suggestions

Dear russellbcopeland,

Although c:\filename.txt>prn run on dos command prompt.
It does not work on vb using shell command.It shows file not found erroor for win98 ver operating system.
Any way i tried in win2000 server following
dim a
a = shell("print d:\lpt1 filename) it works

can u tell me which api function is used for printing txt file.

I am using filesystemobject for creating txt file.
opentextfile for opening the file and writeline for writing.
then i tried
object.copyfile "source file","destination file ie d:\lpt1"
it doesn't work
Is any other better methods to create and print txt file
I am in little bit hurry to complete my project as earlier u response is better for me.

Once again thanks to all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top