I’m new to Aspose and would like to know if there is a method that sends a document converted to HTML into a string variable instead of to Disk. I hava an editor control in a .NET 2.0 C# environment, and I’d like the users to be able to browse for a .Doc or .Docx file, have it converted to HTML and then have the newly converted HTML version displayed in the editor, instead of saving it to disk. Once reviewed and/or modified, the user can save it to a database.
Any help would be appreciated. Here’s the code snippet – I’m sure it’s wrong since I’m getting junk in the editor:
LoadOptions loadOptions = new LoadOptions(); loadOptions.LoadFormat = Aspose.Words.LoadFormat.Html; Document doc = new Document(strFilePath, loadOptions); edtNewContent.Content = doc.ToTxt();