Turbo C++ Code To Print String through Installed Printer

Please Give me The C++ Code To Print String through Installed Printer. How to user Printer File Name ??
Last edited on
closed account (Dy7SLyTq)
its not turbo c++ code, its C++ code. we need to know your os firstly
closed account (N36fSL3A)
We aren't going to write your program for you.
@DTSCode

My os Is Win-XP..
@Lumpkin

i asked to help u don't want to help, its ok go ..
closed account (N36fSL3A)

i asked to help u don't want to help, its ok go ..
Nah, I'm going to help ;)

If you're not planning on this being cross-platform, go read up the Win32 API. It should tell you on how to program windowed apps.

I'm sure there must be some code for printer tutorials.
closed account (Dy7SLyTq)
uhhh you need to take a step back here hemantlader. we will help, but we will not write code for you upon request. we can answer questions but we wont just out of the blue. i would read up on the win api. i know there is something there from an older post, but i cant remember what its called
In Borland Compiler How can i do that ?
If you want to write to the default printer, simply use cout.

If you want to write to some other installed printer, then you need to use the Win32 API as Lumpkin already pointed out.
http://msdn.microsoft.com/en-us/library/windows/desktop/ff686805(v=vs.85).aspx
The Win32 API is simply a collection of library calls that you can make from any compiler once you've included the appropriate header.



closed account (Dy7SLyTq)
If you want to write to the default printer, simply use cout.

thats not true. cout by default writes to the screen (well in most cases). you would have to remap it to the printer
Topic archived. No new replies allowed.