Jump to content

How to Use a Printer?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
AtoZ

AtoZ

    Learning Programmer

  • Members
  • PipPipPip
  • 36 posts
Hello.

I'm looking to make a program that can print data in a set layout on the click of a button.

How can I make my computers printer print data? and how can I make a specific layout print? are there some libraries I can look into? thanks.

#2
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
Depends on the operating system. On MS-Windows, one way is to use win32 api printer functions. You can find some good examples, as well as c++ printer classes on codeproject.com. Just enter "reports" in their search window and you will get several examples, some are MFC, some .NET and at least one is win32 api.

Don't know about *nix, MAC, etc.