The ServerDocument object model was primarily designed to enable server-side code to edit the contents of the data island before serving up a document, but it does much more. You can use it to read or write the data island and to add customization assemblies to uncustomized documents. The latter requires ServerDocument to start Word or Excel, however, so doing this on a server is a bad idea. Chapter 20, "Deployment," examines another use for the ServerDocument: editing the deployment information inside a customized document. The ServerDocument object model provides fine-grained control over the information stored in a document and assumes that you know what you're doing. Be very careful, and test your scenarios thoroughly when using the ServerDocument object model. |