Vnd ms word document reader free7/9/2023 Paragraph firstParagraph = ().FirstOrDefault() į(testParagraph, Using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(mem, true))ĭocument document = Mem.Write(byteArray, 0, (int)byteArray.Length) Using (MemoryStream mem = new MemoryStream()) Long numBytes = new FileInfo(fileName).Length Protected void Button1_Click(object sender, EventArgs e)įileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read) ![]() Here is my code for the event handler of the button click ![]() So how can i directly open the file (located in memory) in microsoft office word without this promptĪlso if i choose open from the prompt the file opens in the read only mode and the title of the file in the microsoft word become the name of the aspx page which is Default.aspx Then i want to open the file (that i edited and located in memory) in mircosoft office word to see the text that i have addedĮverything works fine but when i press the button i get a prompt that says do you want to open the file or save it. What i want to do is that when i press a button i open a microsoft office word located on the c drive then i add some text to it using c# code I have a physical microsoft office word file in the c drive I have an aspx page deployed on sharepoint with one button on it. ![]() Hi all i wish anyone could help me with this problem
0 Comments
Leave a Reply. |