VB .NET automation, Document.SaveAs corrupting Word Document
问题 Just to start I try to summarize what I want to do: My vb .net app done in vs2019 simply automates and fills a word template, it should at the end save it in a folder provided by a text box saved in the variable URL. Everything is fine and dandy but if I try to open the word docx I get this: . Also if I save using the saveAs from word itself,manually, the file isn't corrupted anymore. And there is difference in size between the files that are pretty much the same: . . . SO, the file "Adresa