Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Saving docx as txt

$
0
0
Hi,
I'm using NetOffice (1.6.0) for converting docx files to text:
var document = wordApplication.Documents.Open(fileName);
//
document.SaveAs(newFileName, NetOffice.WordApi.Enums.WdSaveFormat.wdFormatUnicodeText);
However, with non-ascii characters (lower german quotes, french chars) it's never the same like saving as *.txt from word itself.
Umlauts usually work, but the resulting file always appears to be ANSI, regardless of the chosen WdSaveFormat.

Anything I might have missed?
Thanks

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>