aodl

Access to path denied while reading a dll from Program Files which is actually got from a nuget package

安稳与你 提交于 2020-01-25 08:39:05
问题 Access to path denied error is encountered in Program files (x86) , while working with a DLL that is got from nuget package: AODL for reading ODF files - https://www.nuget.org/packages/AODL/ after I created a MSI file using SETUP Project In the code, I don't suspect the file creation part for I create this file in the user chosen file conversion path but NOT IN PROGRAM FILES folder path : File.WriteAllText(targetFileName, sb.ToString(), Encoding.UTF8); That's why I simply suspect the DLL,

How to grab text from .odt file

别来无恙 提交于 2019-12-10 13:10:34
问题 I need to grab all text from odf files (open document format) in C#. I found AODL library, and installed it. I visited AODL's page https://wiki.openoffice.org to find examples on how to do the task I need, but they were all unsuccessful. For a reason that I can't imagine, all examples build new document, and there's no example in how to load a document and grab all the text (something like OpenXML). Do you guys know any reference that can guide me? My "try" var doc = new AODL.Document