473,835 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printer functions

pI
I've got simple question.
What are some functions names in C for programming printers?
Maybe some library ?
May 3 '06 #1
7 2310
pI
pI napisa³(a):
I've got simple question.
What are some functions names in C for programming printers?
Maybe some library ?

for DOS :-)
May 3 '06 #2

pI wrote:
pI napisa³(a):
I've got simple question.
What are some functions names in C for programming printers?
Maybe some library ?

for DOS :-)


There are none in Standard C. Since you mention DOS, you may strike
lucky in comp.msdos.prog ramming or similar groups.

May 3 '06 #3
pI wrote:
I've got simple question.
What are some functions names in C for programming printers?
Maybe some library ?


C itself provides only fopen(), fprintf(), fwrite(),
and the rest of the I/O library. The job of discovering
a printer's name for fopen() and of deciding what kind of
data to send to it is up to you. Some kinds of printers
may not be usable at all given only what unextended C offers.

--
Eric Sosman
es*****@acm-dot-org.invalid
May 3 '06 #4
pI wrote:

I've got simple question.
What are some functions names in C for programming printers?
You mean something other than fopen/fwrite/fprintf/fclose? There are none
in standard C.
Maybe some library ?


Perhaps. Have you looked?

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer .h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th***** ********@gmail. com>

May 3 '06 #5
pI
Kenneth Brody napisał(a):
Maybe some library ?

Perhaps. Have you looked?

yep ... google doesn't help in this case :-)
May 3 '06 #6
Vladimir Oka wrote:
pI wrote:
I've got simple question.
What are some functions names in C for programming printers?
Maybe some library ?

for DOS :-)


There are none in Standard C. Since you mention DOS, you may strike
lucky in comp.msdos.prog ramming or similar groups.


ITYM comp.os.msdos.p rogrammer.

One way of "programmin g printers" for any platform is to just
send text directly to the port that the printer is on.

Otherwise you will need to interface to a printer driver; in which
case you will have to read the printer driver documentation, or
if your OS provides a common printer interface, then ask in that
OS's newsgroup.

May 4 '06 #7
Old Wolf opined:
Vladimir Oka wrote:
pI wrote:
I've got simple question.
What are some functions names in C for programming printers?
Maybe some library ?
for DOS :-)


There are none in Standard C. Since you mention DOS, you may strike
lucky in comp.msdos.prog ramming or similar groups.


ITYM comp.os.msdos.p rogrammer.


Right. I stand corrected. Thanks.

--
Totally illogical, there was no chance.
-- Spock, "The Galileo Seven", stardate 2822.3

<http://clc-wiki.net/wiki/Introduction_to _comp.lang.c>

May 5 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3016
by: Fotis Andritsopoulos | last post by:
Hello, I tried to find out how can I print a document through php. What I want, is to add a "print button" within a web page (something like the "Print" button of the explorer, but within the page). I tried a little bit with the printer_open() function of php but with no luck. I red the docs, but I couldn't understand which functions are required to print. printer_open();
3
1524
by: Mario | last post by:
Hello, I am a new Python entusiast, I am studing it since some weeks and I think it's a great language and I was very happy with it, but when I came to make a printer routine I really got demotivated by the difficulty, why does Python covers easily the most complicated tasks and on the printer there is this big hole? I was looking on the web, on newsgroups, to find some good solution but I couldn't believe that there is this big lack on...
1
12962
by: D Wigg | last post by:
Hello all, I'm using VB6.0 to write an application which prints a report. The problem I have occurs when I try to allow the user to select the number of copies and which pages to print. Using the code below doesn't show the printer box to allow the selections to be made but printing happens anyway. The PrintRoutine subroutine (not shown) is copied from the MS knowledge base
5
7129
by: Hank | last post by:
My Access 2000 code has been running for several years in our main plant. Now we need to install it, as a stand-along application, at remote sites, some of which are out of state. My problem is the printer destination for special reports such as stickers and mailing labels. The Mailing Label report is, of course, designed here for a specific printer (Mailing Label). At another site, the name could be completely different. Other than...
0
380
by: Jim Warner | last post by:
I am having problems using Borland 5.02 C/C++ for testing printer status repeatly. I wish to use my printer to detect off-line, removing paper, and so on with my software. I have tried using bio_print, bios_printer, and bio_serialcom but my program cannot detect it. I am using Windows XP and I have read that these functions can't be used since Windows 98 operating system will not support the functions. Can you help show a simple program...
1
2431
by: chunming | last post by:
hi, buddy, I use winspool.drv to write printer directly, I am developing the point of sales system, and I need set up the printer device font(not true type font), so that i could control the cash drawer and printer itself, so, if you could tell me how to and solve the problem, I will pay you $50 ------------- for the detailed info, please search this website, key words" POS cash drawer", looking for poster" chunming" thanks
11
9908
by: pamelafluente | last post by:
I am doing my own PrintDialog, and have placed there a combo with the printer names, as in the PrintDialog provided by VB.NET. Here is the question: how do I open the native windows printer dialog for the current printer, so that my current PrintDocument.PrinterSettings will be set according to the User choices ? Thanks -Pamela
4
1898
by: Paul H | last post by:
OK, I tried getting and old Newbury Data ND2500 working using the "Generic /Text only" driver in Win XP. It prints, but I could not find a way to set a custom page size that matches the paper I am using. So there was no way it would ever work. The customer is happy to buy another Dot Matrix printer because the ND2500 can be used elsewhere. So which printer should I get that can plug and play with Access? Paul
1
1803
by: Chuck Anderson | last post by:
I have created an image using GD lib and now I would like to print it using the Printer functions (on Windows XP). Does anyone know how to write the image in memory to the printer (I assume I can use the Printer functions)? (Is there a method that involves saving it as a file first?) -- ***************************** Chuck Anderson • Boulder, CO
4
2037
by: Stefano | last post by:
I've got a problem using printer functions with my network printer shared on another PC as \\192.168.1.3\HP If the printer is connected and reachable, printer_***() functions work correctly. Now let suppose the printer cable is unplagged so the printer is no more reachable: $handle = printer_open($printer_address); // Returns an handle also if the
0
9652
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10523
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10560
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9345
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7766
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6966
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4434
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3088
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.