Also, please see the Validation Kit. The kit is itself a Server side / remote printing application and contains source code you can use in your own applications.
::> Developing an application