I am creating a Word document on the server and trying to save it to a particular spot on the server, but honestly, i have no clue how to do this. Can someone suggest something?
This code was given to me by one of the Aspose developers, and it works great, i just dont know how to tell it to save the MemoryStream to c:\test\someFile.doc
System.Guid guid = System.Guid.NewGuid();
String strGuid = guid.ToString();
Aspose.Word.Document doc = new Aspose.Word.Document();
Aspose.Word.DocumentBuilder builder = new Aspose.Word.DocumentBuilder(doc);
for (int i = 0; i < 10000; i++)
{
builder.Writeln("This is line of text.");
}
String strFilePath = @\\server\ +strGuid;
System.IO.Directory.CreateDirectory(strFilePath);
MemoryStream docStream = new MemoryStream(strFilePath + @"\someFile.doc");
doc.Save(docStream, Aspose.Word.SaveFormat.FormatDocument);
J