Hi all,
I have a Timerjob that runs on a browser enabled FormLibrary & acts on all the documents in it. Timerjob should be able to output values in infopath(Full Trust, 2007 form) onto a txt file in some other location with a specific layout. I have written the timerjob that runs on FormLibrary. Now I need to get the data in the form exported to txt file.
I was having basic steps in my mind
(1)Generate Text file content ( from the infopath form, I was also be able to extract required fields data)
string TestBoxXpath = "/my:myFields/my:FormName/my:Name";
XPathNavigator TextBox = MainDataSource.CreateNavigator().SelectSingleNode(TestBoxXpath, NamespaceManager);
(2)Access the file system, where the txt file to be stored.
(3)Add contents to txt file, save & Close.
//System.IO;
TextWriter tw = new StreamWriter("date.txt");
tw.WriteLine(TextBox.Value);
tw.Close();
I had all these basic things in my mind. Can anyone suggest me how to work with these in overall. Any link where I can get info at. I really appreciate your time.
Thanks,
Ramii