上传简历时如何弹出所有字段 [英] How to popupate all fields while uploading a resume

查看:48
本文介绍了上传简历时如何弹出所有字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想在使用文件上传控件上传简历时如何填充职业,履历的内容将显示在特定的职业上,您可以指导我还是发送任何摘录

hello,
I want how to populate feilds while uploading the resume using file upload control, the content of resume will be displayed on the particular feilds can u guide me or send any snippets

推荐答案

您必须使用一个称为"Microsoft Word 9.0对象库"的Microsoft COM组件,该组件提供了从Word文档中读取的类和方法.

我们必须使用Word.ApplicationClass才能访问单词application.

打开内存中的word文档,将所有内容复制到剪贴板,然后我们就可以从剪贴板中获取数据了.

所需的代码如下:

You have to use a Microsoft COM component called "Microsoft Word 9.0 object library" which provides classes and methods to read from a word document.

We have to use Word.ApplicationClass to have access to the word application.

Open the word document in memory, copy all the content to the clipboard and then we can take the data from the clipboard.

The code required is given below:

Word.ApplicationClass wordApp=new ApplicationClass();
object file=path;
object nullobj=System.Reflection.Missing.Value;  
Word.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);
doc.ActiveWindow.Selection.WholeStory();
doc.ActiveWindow.Selection.Copy();
IDataObject data=Clipboard.GetDataObject();
txtFileContent.Text=data.GetData(DataFormats.Text).ToString();
doc.Close();



现在由您决定如何从Word文档中解析完整文本.

由于您正在编写软件程序,因此您需要上载以预定义格式编写的简历,或者编写人工智能程序以读取任何格式的简历.不会对您有什么大碍.



Now it is up to you how you parse the complete text from the word document.

Since you are writing a software program , you need to either upload the resume written in a predefined format or write a artificial intelligence program to read resumes in any format . Wont be a big deal for you..


这篇关于上传简历时如何弹出所有字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆