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 3661
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: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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...
|
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,...
| | |