Hi

Im using C++ builder 6 and need to print off some text. The text will be in the form of strings. I guess I need to use TPrinter.

Can someone point me in the right direction on how to print stuff out from C++. I need to be able to print out on other computers/printers. I am guessing I need to use the co-ordinate system to tell the printer where to start printing. Where does the print area begin? I need to be able to set the margins in, if Company Letter Head is used.

Nath

There is a little code snippet here on DaniWeb called "Sending Text to a Printer"

http://www.daniweb.com/code/snippet122.html

I don't know much about your compiler, but there maybe some helpfull hints in there.

Still stuck on this. Can anyone give me anymore suggestions.

Nath

Your best start is by reading the documentation to your compiler. There's no native support for printers in C++, and your compiler probably offers several ways to do it.

If C++ Builder is anything like Delphi, there should be a Print Component in there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.