Hi,
I am using silver light 3 and vs2008.Here how to get stream of word dcoument.
I have tried below code to get stream.It not getting stream.its always returning null value.
var str = Application.GetResourceStream(new System.Uri("/RadControlsSilverlightApplication1;component/document.docx", System.UriKind.RelativeOrAbsolute));
Loading


Posted Jun 21, 2011, 5:42 AM EDT
1) If you're not hosted the silverlight application then , don't use /RadControlSilverlightApplication1.
2) Select the document.docx file from Solution Explorer. Right Click-->Properties. Select the Build Action to Content.
When do the above things, I'm getting the stream values.
Hope this helps you.
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Jun 21, 2011, 8:30 PM EDT
I got the stream after changing build action property to Resource.
Posted Jun 21, 2011, 10:05 PM EDT
Anil KumarRank #367 · 6.8K reputationPosted Jun 21, 2011, 10:17 PM EDT
Dinesh BeniwalRank #9 · 64K reputationPosted Jun 21, 2011, 10:19 PM EDT