Are you asking how to programmatically changed the default printer?