468,513 Members | 1,814 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

printing files through printer

hi,

i want to print my file through printer. i have already written a program to write text on printer. but the real problem is to print text in different size font and in different style (Bold,italic).
if its possible through 'C' language program. please help me.
Aug 5 '06 #1
2 3557
Banfa
9,056 Expert Mod 8TB
It is nothing to do with the C language, if you can write to the printer then you will need to know the specific commands you need to send in order to use those different fonts.

If you happen to be using Windows then you have gone about things the wrong way (probably). In Windows once you have a device context for the printer you can then draw to it in pretty much any font you wish.

I am sure Linux probably has a standard way of writing to the printer too but I have no idea what it may be.
Aug 5 '06 #2
tnga
27
In Linux you may open the device (since devices are seen as files to Linux) and output to that "file". Of course this is valid for plain-text.
Jul 4 '07 #3

Post your reply

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

Similar topics

5 posts views Thread by Donnal Walter | last post: by
reply views Thread by Jim & Joanne Collins | last post: by
11 posts views Thread by cybertof | last post: by
4 posts views Thread by Arif | last post: by
4 posts views Thread by Al Jones | last post: by
1 post views Thread by Danny van Kasteel | last post: by
reply views Thread by ben.agnoli | last post: by
7 posts views Thread by Iain Wilson | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.