Monday, July 27, 2009

How can I get my Graphics output on printer in C language?

What should I do to interuct with Printer.Plz give me some hints


by code in C language.

How can I get my Graphics output on printer in C language?
This depends on your OS. Generally, though, you should be able to draw your stuff in a Graphics Port that is then sent to the printer. You just need to figure out how to declare that Graphics Port, or to send an existing one to the printer. Good luck.
Reply:when the output is being displayed then press print screen.. i guess it should do the job
Reply:Press print button.
Reply:hi





mail me to priya_haridos@yahoo.co.in





help u more..............





Thanks %26amp; Regards,





Priya,





For Greenchip Technologies,





New no: 63, Arcot Road,





Kodambakkam,





Chennai - 600 024.





Phone : 044 - 6533 3761





Mobile : +91- 98402 34275





E-mail : esp@greenchip.co.in
Reply:A hint fprintf(); function


(output)a pointer to the graphics(preferably in BMP)


a pointer to the device you are using.


the format should look like this


fprintf(device,controlpointer);


remember to include the nessesary .h file too :)
Reply:I can give the concept that you need to use that is first you need to open the graphics port in C. I think you know how to to do that as you are already using the graphics output. now you need to check which port are you using for the printer and open that also. Then you can use the statement "outport" to send the screen contents to the printer. for doing this you must know the port. That depends on the system to system. on this you need to help your self.





Hope my answer is of some help to you.
Reply:A printing library would probably be useful. Try searching Google - I'm sure you're not the first person on the internet who's wondered how to print in C before...





Rawlyn.


No comments:

Post a Comment