<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Threads in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/14241.aspx</link><pubDate>Tue, 24 Jan 2006 10:30:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14241</guid><dc:creator>Mancha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14241.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14241</wfw:commentRss><description>I save the previous form and the current form as doc file and then I use the Word functionality. Do you have another solution to comparing two forms with richtext fields?&lt;br /&gt;The comparing result I save this as mht file to view the changes also in a browser.&lt;br /&gt;&lt;br /&gt;Here is sample code:&lt;br /&gt;&lt;font size="1"&gt;&lt;br /&gt;			object currentFile = currentDoc;&lt;br /&gt;			object compFile = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\" + compareFileName;&lt;br /&gt;			object fileFormat = Word.WdSaveFormat.wdFormatWebArchive;&lt;br /&gt;			object missing = Missing.Value;&lt;br /&gt;			object objTrue = true;&lt;br /&gt;			object objFalse = false;&lt;br /&gt;			object compareTarget = Word.WdCompareTarget.wdCompareTargetNew;&lt;br /&gt;			object saveChanges = Word.WdSaveOptions.wdDoNotSaveChanges;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;			Word.Application wordApp = new Word.ApplicationClass();&lt;br /&gt;			wordApp.Visible = false;&lt;br /&gt;			Word.Document oDoc = wordApp.Documents.Open(ref currentFile, ref objFalse, ref objFalse, ref objFalse, ref missing, ref missing, ref objFalse, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);&lt;br /&gt;&lt;br /&gt;			oDoc.Compare(backupDoc, ref missing, ref compareTarget, ref objFalse, ref objFalse, ref objFalse, ref objTrue, ref objTrue);&lt;br /&gt;&lt;br /&gt;			Word.Document compDoc = wordApp.ActiveDocument;&lt;br /&gt;&lt;br /&gt;			compDoc.SaveAs(ref compFile, ref fileFormat, ref objFalse, ref missing, ref objTrue, ref missing, ref objFalse, ref objFalse, ref objFalse, ref objFalse, ref objFalse, ref missing, ref missing, ref missing, ref missing, ref missing);&lt;br /&gt;			compDoc.ActiveWindow.View.Type = Word.WdViewType.wdWebView;&lt;br /&gt;&lt;br /&gt;			oDoc.Close(ref saveChanges, ref missing, ref missing);&lt;br /&gt;&lt;br /&gt;			wordApp.Visible = true;&lt;br /&gt;&lt;/font id="size1"&gt;</description></item><item><title>Re: Threads in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/14240.aspx</link><pubDate>Tue, 24 Jan 2006 05:41:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14240</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14240.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14240</wfw:commentRss><description>Hi Mancha,&lt;br /&gt;How are you comparing a form by using the Word functionality?&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Threads in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/14239.aspx</link><pubDate>Mon, 23 Jan 2006 12:09:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14239</guid><dc:creator>Mancha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14239</wfw:commentRss><description>My problem is that I compare a form with another form. I compare the forms by using the Word functionaliy. It takes a few seconds and the user have to wait so long. My suggestion is using threads in InfoPath?</description></item><item><title>Re: Threads in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/14238.aspx</link><pubDate>Thu, 19 Jan 2006 18:58:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14238</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14238.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14238</wfw:commentRss><description>That's a good question, I don't know if this has ever been tried before.  Why do you need to use threads?&lt;br /&gt;&lt;br /&gt;Here are some references on creating threads in C#:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.codeproject.com/csharp/workerthread.asp&gt;http://www.codeproject.com/csharp/workerthread.asp&lt;/a&gt;&lt;br /&lt;a target="_blank" href=http://www.suite101.com/article.cfm/c_sharp/96436&gt;http://www.suite101.com/article.cfm/c_sharp/96436&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Threads in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/12754.aspx</link><pubDate>Wed, 18 Jan 2006 09:32:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12754</guid><dc:creator>Mancha</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12754</wfw:commentRss><description>Can i use threads in InfoPath? Who implement I this in C#.</description></item></channel></rss>