Iv looked everywhere and I cant find any txts on how to print documents using c++. I use borland but the help files are useless
can anyone help me??
This is a discussion on printing txt files within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Iv looked everywhere and I cant find any txts on how to print documents using c++. I use borland but ...
Iv looked everywhere and I cant find any txts on how to print documents using c++. I use borland but the help files are useless
can anyone help me??
Well, if your printer is all ready to go and happy you could probably do something like this:
Code:sprintf(stdprn, "%s", string);
Or, in C++:
ofstream fout("LPT1");//LPT1 is the normal printer port
cin>>infotobeprinted;
fout<<infotobeprinted;