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.
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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.