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\x3 3\x42 but i would like to have a list to perform other
commands like font size, etc...
Any help would be appreciated. 3 4998
KJ <ke********@ora nge.net> scribbled the following: 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\x3 3\x42 but i would like to have a list to perform other commands like font size, etc...
Any help would be appreciated.
What gave you the impression this had anything to do with C? The printer
is the one in charge of those commands. They work the same way no matter
what language printed them. Please ask in a newsgroup dedicated to your
own implementation instead.
--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"There's no business like slow business."
- Tailgunner ke********@oran ge.net (KJ) wrote in
news:7a******** *************** ***@posting.goo gle.com: 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\x3 3\x42 but i would like to have a list to perform other commands like font size, etc...
The C language does not define such things. You happen to have found some
character sequences that do "interestin g" things for your printer but this
has nothing to do with the C language. There must be a list of sequences
in your printer's programming manual (my HP Laser Jet came with such a
manual, if yours does not, try the company's website).
--
- Mark ->
--
KJ wrote: 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\x3 3\x42 but i would like to have a list to perform other commands like font size, etc...
Any help would be appreciated.
HP Printers use a language called PCL. It is based on escape sequences:
an ESCAPE character followed by other bytes or characters. Search
their website for more information. They do have a book about 2 inches
thick describing the language.
Some HP printers also use a language called Postscript. This is
Page Description Language developed by Adobe, Inc. They too have a
thick book available that describes the language. Check out their
websidte at http://www.adobe.com.
However, many platforms use a "driver" between the printer and your
application. The driver converts operating system commands (function
calls) into the printer's language. This is a lot more productive
than sending the actual printer commands. In the Postscript class
that I attended, they said that very, very few people write in
Postscript; everybody else uses the drivers.
--
Thomas Matthews
C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html
Other sites: http://www.josuttis.com -- C++ STL Library book This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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", 16);
SolidBrush bBrush = new SolidBrush(Color.Black);
PointF pPoint = new PointF(150.0F, 150.0F);
ev.Graphics.DrawString(sString, fFont, bBrush, pPoint);
|
by: Charlie |
last post by:
I need to print using the VB.net printing classes to a tractor feed printer.
My client loaned me a Panasonic kx-p2123 to set up the job. I was able to
print from Notepad using the Generic/Text Only driver, but not from VB.
The printer specific driver is available in the Win2k driver list, but when
using that driver, the printer prints a few characters of jibberish then
feeds to a new page and prints a new line of jibberish. It does this...
|
by: Claude Hebert |
last post by:
Hello,
I have a need to print several reports (doing them as sub reports is not
an option)
In VFP we use the SET PRINTER commands to basically open the printer,
print several reports, and close the printer to release the whole job as one
job
Can this be done in VB.NET???
|
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 with strings that are the commands to be executed.
This arraylist is passed to a function called sendStringToPrinter with
a printername:
ArrayList al= new ArrayList();
String s="! 0 100 290 1"; these are the printer language
al.Add(s);
|
by: mvreddy |
last post by:
SIR,
I NEED TO SEND PRINTER COMMANDS using pic microcontrollers to PRINTER USING C LANGUAGE,IS IT POSSIBLE TO SEND PRINTER COMMANDS TO PRINTER USING CONTROLLERS IN C, PLZ HELP..
| |
by: krishnakant Mane |
last post by:
hello all.
I am developing an ncurses based python application that will require
to create pdf reports for printing.
I am not using py--qt or wx python.
it is a consol based ui application and I need to make a pdf report
and also send it to a lazer or ink jet printer.
is it possible to do so with python?
or is it that I will have to use the wxpython library asuming that
there is a print dialog which can open up the list of printers?
if...
|
by: suvarna |
last post by:
hi
i am having problem in firing commands to the hp printer through vb code. i used hp printer commands in my code but when the commands are fired it gives error "failed to print the doccument". printer shows no movements.
|
by: hari |
last post by:
Hi all,
I need to automate printer command testing, prinetr supports
parallel/
serial/USB.How can i send the commands from python to printer.
I have got pyparallel, as am new to python, no idea how to work on
it.
Please give some tips,The comamnd to be sent to the printer is hex
data "1B 40".please give a example,it will be grateful.
|
by: deric |
last post by:
Hi! I'm new to VB.net programming on printing a page to a thermal printer (Epson T88IV). I really had a hard time figuring out how to code the printing of a bitmap image and some text, while sending commands (through font control) to the printer.
I tried sending the escape characters with Control font, but the Graphics.DrawString of PrintPageEventArgs do not allow it.. so I used the RawPrinterHelper class I found on Microsoft KB. It worked out...
|
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,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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,...
|
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...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |