J
Jack Wright
Dear All,
I have added a Word document as an embedded resource in my assembly
that I try to extract and copy it into my client machine...but this is
not working...it gives junk characters...any ideas...
Stream outs = Assembly.GetExecutingAssembly().GetManifestResourceStream("ReadMe.doc");
outs.Seek(0, SeekOrigin.Begin);
StreamReader srException = new StreamReader(outs);
FileStream oFile = new FileStream("Test.doc", FileMode.CreateNew,
FileAccess.Write, FileShare.Write);
oFile.Close();
StreamWriter oWrite = new StreamWriter("Test.doc",
true,System.Text.Encoding.Unicode );
oWrite.Write(srException.ReadToEnd());
oWrite.Close();
Please help...
TALIA
Many Regards
Jack
I have added a Word document as an embedded resource in my assembly
that I try to extract and copy it into my client machine...but this is
not working...it gives junk characters...any ideas...
Stream outs = Assembly.GetExecutingAssembly().GetManifestResourceStream("ReadMe.doc");
outs.Seek(0, SeekOrigin.Begin);
StreamReader srException = new StreamReader(outs);
FileStream oFile = new FileStream("Test.doc", FileMode.CreateNew,
FileAccess.Write, FileShare.Write);
oFile.Close();
StreamWriter oWrite = new StreamWriter("Test.doc",
true,System.Text.Encoding.Unicode );
oWrite.Write(srException.ReadToEnd());
oWrite.Close();
Please help...
TALIA
Many Regards
Jack