471,850 Members | 843 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

printing files through printer


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 3709
9,065 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
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 NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by aboka | last post: by

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.