Edit: changed so that it doesn't use the clipboard.
Edit: changed so that it doesn't use the clipboard using Microsoft.Office.Interop. Word; public string Test(string path) { Microsoft.Office.Interop.Word. Application wordApp = new Microsoft.Office.Interop.Word.Application(); object file = path; object nullobj = System.Reflection.Missing.
Value; Document doc = wordApp.Documents. Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj); string result = doc.Content.Text.Trim(); doc.Close(); return result; }.
C:\Users\...\Documents\Visual Studio 2010\WebSites\Copying1_1\Default.aspx. Cs 106 13 C:\...\Copying1_1\ This is a asp.Net website, so it won't allow me to write: using System.Windows. Forms; – Dave May 31 '10 at 16:06 @Dave - Yes, it was using the clipboard which isn't really an ASP thing.
I've updated the code to use doc.Content.Text.Trim() instead, which might work. I haven't actually tried the above code and it's probably not very good to have it on a server (especially if it's under heavy load) but it might work now. – ho1 May 31 '10 at 16:26.
You should use Microsoft.Office.Interop. Word assembly and directive using Microsoft.Office.Interop.Word.
I added using Microsoft.Office.Interop. Word; it didn't help:( – Dave May 31 '10 at 15:56.
My guess is it's a different one. You can see the mapping of official names to versions here: en.wikipedia.org/wiki/Microsoft_Word#Ver....
The technique you're using requires that you have a specific version of Word installed on your developer machine and on any machines you target for deployment. Since Office 2007, Office documents are stored using Open XML formats. These documents can be read and modified using the Packaging and XML APIs in the .
NET Framework. You can also use the Open XML SDK to give you a higher-level abstraction layer on top of the Packaging and XML APIs. Using this technique does not have Word installed for development or production use.
More information on working with Open XML can be found by following the links below: Open XML Developer Open XML SDK 2.0 for Microsoft Office.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.