-
how to activate printer
hi
I want to pass dfferent file names as argument to the function and that files are to be printed by the printer, how to do that ... what are the possible methods i can do that...that is how can i send a file to printer through C programm.
please help
-
working in windows and printer is inkjet printer ... is there possiblity of writing to any type of printer
-
well if it's on your home computer you might just try this out first
if( prnter_fp = fopen("PRN", "wt") != NULL)
{
printf("error writing to printer");
exit(1);
}
then use the prnter_fp in the fprintf() function along with the format specifiers & args.
this worked on my home set up win98 bubble prn.