open the The user is edited and saved and then stored back into the database. The System.Diagnostics.Process class is used to invoke word to open the document, and the relevant code is as follows:String TempPath = System.Environment.GetEnvironmentVariable ("TEMP");String fileName = Path.Combine (TempPath, "01.doc");Process wordprocess = new process ();WordProcess.StartInfo.FileName = FileName;WordProcess.StartInfo.Verb = "edit";WordProcess.StartInfo.
redirected from that page to a new window with http://zhidao.baidu.com open.Of course, you can also use it to open a local program, such as click a button to open the Registry Editor, it should beSystem.Diagnostics.Process.Start (@ "C:\WINDOWS\regedit.exe"); problems encountered in System.Diagnostics.Process class applications in. NETThe client program that you develop needs to create a Word document from the image field of the database, and then call the Word program open, and the user edits a
;
// Save the Word document as HTML fileDocument. saveas (ref htmlfilepath, ref documentformat, ref missingtype,Ref missingtype, ref missingtype, ref missingtype,Ref missingtype, ref missingtype, ref missingtype,Ref missingtype, ref missingtype, ref missingtype,Ref missingtype, ref missingtype, ref missingtype,Ref missingtype );
// Close the Word DocumentDocument. Close (ref missingtype, ref missingtype, ref missingtype );Killpreviewwordprocess ();Return new tuple }/// /// Close all the word bac
/*
* Created on 2005/07/18
* Use tm-extractors-0.4.jar
*/
Package com.nova.colimas.common.doc;
Import java. Io. fileinputstream;
Import java. Io. fileoutputstream;
Import org. textmining. Text. extraction. wordextractor ;/**
* Deal with MS-Word 2000/XP files.
* @ Author Tyrone
*
*/
Public class wordprocess extends docprocess {
Public static string run (string filename ){
Wordextractor extractor = NULL;
String text = NULL;
Try {
Fileinputstream in = ne
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.