"App" is the class of Portable project. The following code example shows how to open the encrypted Word document. Close () //Please download the helper files from the below link to save the stream as file and open the file for viewing in Xamarin platform // Opening the encrypted Word document You have to select Recover Text from any file from the expanded options. Step 3: Modify the option in the All Files drop-down list. Step 2: Tap the Microsoft icon displayed at the upper left side and from the drop-down list select the Open option. SaveAndView ( "Sample.docx", "application/msword", stream ) //Closes the document instance document. Step 1: Open a new Word document of Microsoft word 2007. Docx ) //Saves the stream as a file in the device and invoke it for viewing Xamarin. EncryptDocument ( "password" ) //Saves the Word document to MemoryStream MemoryStream stream = new MemoryStream () document. Automatic ) //Encrypts the Word document with a password document. GetManifestResourceStream ( "" ), FormatType. Assembly //Opens an existing document through constructor of WordDocument class WordDocument document = new WordDocument ( assembly. "App" is the class of Portable project Assembly assembly = typeof ( App ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |