dimanche 19 avril 2015

How to embed a word document in .net


Vote count:

0




I'm trying to embed a word document in my project. This document will be used as a template by a specific library.


I have added the file using Project | Add Existing Item..., I have also set its Build Action to Resource and its Copy to Output Directory to Do Not Copy .


Now in my code behind I'm doing this to access the file:



var template = DocX.Load("http://packapplication:,,,/doc1.docx");


But I'm getting an exeption: XamlParseException occured.


What am I doing wrong here?



asked 54 secs ago

Vahid

869






How to embed a word document in .net

Aucun commentaire:

Enregistrer un commentaire