I have a program on with, which loads the documents of the Word, and then scans the necessary contents of the document on the DataGridView table. Now you need to download not only Word documents, but also archive files of various formats. Word documents were also automatically unloaded from these files and were also distributed to the table. Please tell me the idea, be so kind !!

  • What idea do you need? The archive should be unpacked, files from it should be opened and processed. - Kromster
  • Well, how do you work with the archive? Programmatically. As I understand it, connect the library and start work. But for me, except as a simple archiver, nothing happens. And it is necessary that the archives are loaded in the same way as the Word documents and put everything in columns. - Jan
  • four
    how to work with the archive - depends on the type of archive and, accordingly, the library that provides the interface for working with the archive - Sublihim
  • Well, I need all kinds of archives to work (and zip, and rar, and exe). And if only it contains Word documents, then unload them. I have a lot of libraries here and Ionic.Zip, and System.IO.Compression, and SharpCompress, SharpZipLib. But when I create even a simple archiver, the .rar format does not load. Probably for him you need to connect the appropriate library? - Jan
  • @ Yana Naturally. As an option - to have at least console utilities for unpacking. In your code, form a command line to unpack the archive into the specified folder. Then, we programmatically look at this folder, if there is a .doc there - we load it, nothing like this - we don’t load it, and, accordingly, after all this, we clear the temporary folder - Sublihim

0