Q:

Printing with ArcGIS API for Javascript?

Any examples of how to print a map using the ArcGIS API for Javascript (JSAPI)?  
All from the client?

A:

Version 2.6 of the ArcGIS API for JavaScript (released today :) ) adds a print dijit and a print task. These both take advantage of ArcGIS Server 10.1 print service. A simple sample using the print dijit is also available. Note that the 10.1 service used in the sample is from a beta release of ArcGIS Server 10.1. 

A:

You should try a Google search for this. I tried "ArcGIS API for Javascript Printing" and the first result was the following blog entry on the ArcGIS Server Blog: ArcGIS Javascript API printing through PDF. For reference, the article specifically suggests viewing the example in the code gallery; however, on follow-up I could not find the example via the link or using their search. They also posted an example in the blog here. You could right click -> view source in your browser and examine the code yourself. 
Additionally, the ArcGIS API for Javascript Basic Viewer template includes printing functionality.

