Hi,
I.m buzy to try your product Aspose.word.
So far, so very good;-)
I'm a little question. sometimes we need to read word document with inside image. If it's the case, i receive a error message : Image file cannot be written to disk. When saving the document to a stream either HTMLExportImagesFolder should be specified or custom stream should be provided via HTMLExportImageSaving event Handler.
I'm not interested to save the image.
I try to find the solution in the documentation but without success.
Can you help me please?
Here is my C# code:
public string GetVacancieText(string _fileName)
{
var _file = ConfigurationManager.AppSettings["pathFilesVacancies"] + _fileName;
var doc = new Document(_file,LoadFormat.Auto,string.Empty);
Stream stream = new MemoryStream();
doc.Save(stream, SaveFormat.Html);
var bytes = new byte[stream.Length];
stream.Position = 0;
stream.Read(bytes, 0, (int) stream.Length);
var m_content = Encoding.UTF8.GetString(bytes);
stream.Close();
return m_content;
}
Thanks,
Yves.