Wiki Markup |
---|
{description} {excerpt}Writes a [Document|Document] to a file.{excerpt} {signature:C#} public void Save(Document doc, System.String fileName) {signature}{signature:vb.net} Public Sub Save(ByVal doc As Document, ByVal fileName As String) {signature} {parameters} {param:doc}The {{Document}} to save.{param} {param:fileName}The full filename to save the {{Document}} to.{param} {exceptions} {exception:System.Exception}Thrown if there is an error saving the file.{exception} {remarks}The [WordApplication.Preserve|WordApplication.Preserve] property is used to specify the way WordWriter will save the document. When the {{preserve}} property is set to true, WordWriter attempts to preserve all formatting and features that it doesn't directly support. This includes Fields, Footnotes, Hyperlinks, Comments, and Anchored Images. When the {{preserve}} property is false, only those features directly supported by WordWriter will be preserved. This includes all Tables, Lists, Headers and Footers. {remarks} {example}{code:csharp|title=C#} app.Preserve = true; app.Save(doc, "@C:\sample.doc"); {code} {code:vb.net|title=vb.net} app.Preserve = True app.Save(doc, "C:\sample.doc") {code} {example} |
Page History
Overview
Content Tools