Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

How to open docx file from resources

How to open docx file from resources From MS word......Plz help
Code
Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\.Adobe\doc.docx"
      File.WriteAllBytes(path, My.Resources.doc)
      Dim docPath As String = (Environ("APPDATA")) & "\doc.docx"
From within your own program or in MS word? If you need to do it from within your program, does this feature need to work even if MS word isn't installed. Is there any reason you can't just use a compressed RTF and then just decompress it in memory and use a RichTextBox?
Look into this and adjust it to your needs.
It's not ideal at all though.
http://www.dotnetperls.com/word-vbnet
http://msdn.microsoft.com/en-us/library/...e.11).aspx


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by gigajewJan 18, 2021 05:44 PM 2 240 Jan 18, 2021 05:44 PM
Last Post: gigajew
[C] by SIM-4717218Aug 21, 2020 11:33 AM 0 161 Aug 21, 2020 11:33 AM
Last Post: SIM-4717218
[C] by VoxiFeb 27, 2019 03:55 PM 3 259 Feb 27, 2019 03:55 PM
Last Post: Voxi