使用c#的单词 [英] word using c#
问题描述
你好吗?我希望你好吗?我要提交我的大学项目 是数据打开word文件(字符或单词写在word文件中的urdu)并搜索这些单词例如,如果我写4所以所有单词显示在我的打开文档中有4个字符
文件 如果我给出值5,那么它显示列表框中有5个字符的所有单词...在文本框中取数字并在列表框中显示.......请帮助我
how r u?I hope you r fine? i hv to submit my university project is dat open word file (characters or words is written in urdu in word file) and search those words for example if i write 4 so all the words display having 4characters in my open document file and if i give value 5 so it displays all words having 5characters in listbox...take number in textbox and display in listbox.......pls help me
qasim
推荐答案
你好qasim ,
Hi qasim,
以下链接可帮助您从word文件中复制文本。
below links help you to copy text from word file.
http://www.daniweb.com/web-development/aspnet/threads/265281
首先从变量中的DOC文件复制文本然后按字符空间分割文本(如下所示)。
first of all copy text from DOC File in Variable then split text by character space (like below).
String [] abc = docText.Split( '');
String[] abc = docText.Split(' ');
然后检查循环中的每个单词是否与您的长度匹配然后添加到列表框中
then check each word in loop if match with your length then add into listbox
问候
无
这篇关于使用c#的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!