Hi folks,
I wish to print on pre-printed continuous forms on a dot
matrix printer.
My initial intent was to access to printer directly (in raw
mode, somehow) in order to send whatever is necessary to do
the job.
I had to try... but FileOpen does not permit opening LPT1.
From what I gatter (I may understand this incorrectly) the
printdocument component seems to be a graphical approach at
printing on modern cut-sheet printers (laser, inkjet).
The only aspects of printing I need are to send appropriate
text, CR/LFs, formfeeds and CPI settings all the while using
the printer's default power-on font.
Alternatively, I have a back door, but it's not elegant.
1) Create a textfile.txt via VB with the appropriate
print data.
2) Shell("printit.bat", AppWinStyle.Hide)
3) printit.bat contains: copy /b textfile.txt lpt1:
Any help to get me on the right track here would be more than
welcomed.
Thanks 2 3660
Marc,
Take a look at this article http://www.c-sharpcorner.com/Code/20...rintDirect.asp for information
on printing directly to the printer. You should be able to adapt this to
VB.NET.
Ron Allen
"Marc Champagne" <ne**@ctldirect.DOT.com.invalid> wrote in message
news:Xn**********************************@207.35.1 77.135... Hi folks,
I wish to print on pre-printed continuous forms on a dot matrix printer.
My initial intent was to access to printer directly (in raw mode, somehow) in order to send whatever is necessary to do the job.
I had to try... but FileOpen does not permit opening LPT1.
From what I gatter (I may understand this incorrectly) the printdocument component seems to be a graphical approach at printing on modern cut-sheet printers (laser, inkjet).
The only aspects of printing I need are to send appropriate text, CR/LFs, formfeeds and CPI settings all the while using the printer's default power-on font.
Alternatively, I have a back door, but it's not elegant.
1) Create a textfile.txt via VB with the appropriate print data.
2) Shell("printit.bat", AppWinStyle.Hide)
3) printit.bat contains: copy /b textfile.txt lpt1:
Any help to get me on the right track here would be more than welcomed.
Thanks
"Ron Allen" <rallen@_nospam_src-us.com> wrote in
news:#q**************@TK2MSFTNGP09.phx.gbl: Hi folks,
I wish to print on pre-printed continuous forms on a dot matrix printer.
My initial intent was to access to printer directly (in raw mode, somehow) in order to send whatever is necessary to do the job.
I had to try... but FileOpen does not permit opening LPT1.
From what I gatter (I may understand this incorrectly) the printdocument component seems to be a graphical approach at printing on modern cut-sheet printers (laser, inkjet).
The only aspects of printing I need are to send appropriate text, CR/LFs, formfeeds and CPI settings all the while using the printer's default power-on font.
Alternatively, I have a back door, but it's not elegant.
1) Create a textfile.txt via VB with the appropriate print data.
2) Shell("printit.bat", AppWinStyle.Hide)
3) printit.bat contains: copy /b textfile.txt lpt1:
Any help to get me on the right track here would be more than welcomed.
Thanks
Marc, Take a look at this article http://www.c-sharpcorner.com/Code/20...rintDirect.asp for information on printing directly to the printer. You should be able to adapt this to VB.NET.
Ron Allen "Marc Champagne" <ne**@ctldirect.DOT.com.invalid> wrote in message news:Xn**********************************@207.35.1 77.135...
Thanks, will give it a try, seems complex though.
--
Marc Champagne
marcch.AT.videoSPAMNOTtron.DOT.ca.invalid
Montreal, Canada This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ryan Gregg |
last post by:
I've got a dot matrix printer that I need to print a line at a time to.
This is being used for an audit log on an application and every event
that occurs needs to print out right as it occurs.
...
|
by: IntraRELY |
last post by:
Hello All,
I am developing a Web Application in VB.NET. We are printing checks from a
IE 6.0. Here are our requirments:
1. Checks will be printed on pre-printed stock, so we must format the...
|
by: kmtai |
last post by:
vb
---
Open "lpt1" For Output As #FileNu
Print #FileNum, "abcd and some chinese characters
---
Only a-z and 0-9 will be printed
|
by: Marc Champagne |
last post by:
Hi folks,
I wish to print on pre-printed continuous forms on a dot
matrix printer.
My initial intent was to access to printer directly (in raw
mode, somehow) in order to send whatever is...
|
by: Mike9900 |
last post by:
We are developing a point of sale software and need to work with receipt
printers. We need to send texts to the printer directly in desired fonts. We
are able to send texts to the printer using...
|
by: Raman |
last post by:
Hello friends,
I want to print an ID card. I have one Windows Form that contains front
and back side. The printer is printing both front and back side at a
time. I am trying to send both sides...
|
by: mike19182004 |
last post by:
How do we print programs directly from Turbo C++ 3.0 compiler?
I have tried the print function from file menu of compiler ,but it does not print!!!
|
by: Matt |
last post by:
I am using Process.Start() and pdfp.exe to launch Adobe Reader to
print PDFs directly from the server. My website's Application Pool
runs under a domain account and I am having trouble getting the...
|
by: silverrock7 |
last post by:
Hello Friends i m stuck up to a place wherein i want to print a report which is displaying on a reportviewer.
I actually want to send the report to printer directly without viewing it.
i am...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
| | |