473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Program for Printer in C language

1
I am studant. I want to interface printer with Parallel port.
Kindly send me any Program so that i can take print on printer.

Also I have no driver for said printer. then only C/C++ code will
work.
soon response will be highly appretiated.
regards
Feb 6 '07 #1
2 5396
AdrianH
1,251 Expert 1GB
I am studant. I want to interface printer with Parallel port.
Kindly send me any Program so that i can take print on printer.

Also I have no driver for said printer. then only C/C++ code will
work.
soon response will be highly appretiated.
regards
For what OS?


Adrian
Feb 6 '07 #2
AdrianH
1,251 Expert 1GB
I am studant. I want to interface printer with Parallel port.
Kindly send me any Program so that i can take print on printer.

Also I have no driver for said printer. then only C/C++ code will
work.
soon response will be highly appretiated.
regards
For what OS? If you use windows, open a file to "LPT1:", if you are using UNIX flavor, open a file to "/dev/....". Hmm, seems like I have forgotten the device name for the parallel port in UNIX. :) if it is a serial it is Stty0 for the first port I think, but for parallel? Not sure.

Anyway, the point here is that you probably don't need a driver, unless you need to use the line signals. Then that gets a bit more complicated and you need to still need to know the OS to be able to interface with the correct API. But if you are just using it as a line printer, or even a PS printer, you only need to really access it via a file handle.

Hope this helps.


Adrian
Feb 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Tom Berry | last post by:
We currently are trying our first transformation from VB6 to VB.Net. Of course, the Printer object is gone, but I'm having trouble finding the replacement syntax necessary to perform similar...
3
by: Mahmood Ahmad | last post by:
Hello, I have written a program that reads three types of records, validates them acording to certain requirements and writes the valid records into a binary file. The invalid records are...
3
by: KJ | last post by:
Would anyone have a list of printer commands to use within printf for a deskjet printer in C. I have worked out that bold is \x1B\x28\x73\x33\x42 but i would like to have a list to perform other...
3
by: Vlki | last post by:
Hello, I can't find a way to send printer specific language codes to printer. Part of my code : String sString = "B50,0,0,3,1,2,50,B," + "12345678901234567890"; Font fFont = new Font("Arial",...
5
by: Valeria Galvano | last post by:
Hi, I'm a newbie in vb.net. I have to send to a printer a file that need to be printed. My problem is that I don't know which kind of document is.. I tried to read the file with a BinaryReader but...
0
by: a_man | last post by:
Hi everyone Im writing an application in c# and I want to print directly to a printer with some printer specific commands than only the printer understands. Below is my code. I have an arraylist...
3
by: Bob | last post by:
I need to create a program that is essentially a special fax sender using multi line Dialogic cards. I figure that the best way to do this so that it can be used from any app is to create someting...
9
by: id10t error | last post by:
Hello, I am going to be using a Symbol WT4090 to scan items. I need to printer a tag from the Zebra ql320 plus. I am trying to do this is Visual basic 2005. Does anyone know and good site to...
2
by: Flying Kite | last post by:
Hi All, I want to know how to print chinese characters on Zebra Printer, following code working fine with English string, but it's not working for Chinese string. It shows ASCII characters instead...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
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...

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.