<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to programmatically populate form from a data source and save the form as an image.</title><link>https://www.infopathdev.com:443/forums/thread/34774.aspx</link><pubDate>Mon, 24 Nov 2008 06:09:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34774</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34774.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34774</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I know about populating the field values but sorry to say I don&amp;#39;t about how to save the form as image using programmatically. If you will get any update on this please post the solution here.&lt;/p&gt;</description></item><item><title>Re: How to programmatically populate form from a data source and save the form as an image.</title><link>https://www.infopathdev.com:443/forums/thread/34688.aspx</link><pubDate>Fri, 21 Nov 2008 13:35:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34688</guid><dc:creator>MRJOEYD03</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34688</wfw:commentRss><description>&lt;p&gt;After I populate the form with the data, I want to programmatically&amp;nbsp;save the populated form as a multipage&amp;nbsp;image (tiff or pdf).&amp;nbsp; Is this possible?&amp;nbsp; Are you familiar with how to do something like this?&lt;/p&gt;</description></item><item><title>Re: How to programmatically populate form from a data source and save the form as an image.</title><link>https://www.infopathdev.com:443/forums/thread/34649.aspx</link><pubDate>Fri, 21 Nov 2008 06:30:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34649</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34649.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34649</wfw:commentRss><description>&lt;p&gt;Hello Welcome to the Forums,&lt;/p&gt;
&lt;p&gt;We can you populate the form data from data source using the below code,&lt;/p&gt;
&lt;p&gt;IXMLDOMDocument2 secondaryDOM = thisXDocument.GetDOM(&amp;quot;Secondary Data Source Name&amp;quot;);&lt;/p&gt;
&lt;p&gt;secondaryDOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;quot;&amp;lt;Namespace of your secondary dom&amp;gt;&amp;quot;);&lt;/p&gt;
&lt;p&gt;//Get the node from secondary dom&lt;/p&gt;
&lt;p&gt;IXMLDOMNode secondaryDOMNode = secondaryDOM.selectSingleNode(&amp;quot;XPath of your field&amp;quot;);&lt;/p&gt;
&lt;p&gt;//Get the value from above node&lt;/p&gt;
&lt;p&gt;string secondaryDOMNodeValue = secondaryDOMNode.text;&lt;/p&gt;
&lt;p&gt;//To set the above value to main dom field&lt;/p&gt;
&lt;p&gt;thisXDocument.DOM.selectSingleNode(&amp;quot;XPath of the field&amp;quot;).text = secondaryDOMNodeValue;&lt;/p&gt;
&lt;p&gt;Here we can save the form. I am not getting save the image by programatically?&lt;/p&gt;</description></item><item><title>How to programmatically populate form from a data source and save the form as an image.</title><link>https://www.infopathdev.com:443/forums/thread/34613.aspx</link><pubDate>Thu, 20 Nov 2008 16:16:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:34613</guid><dc:creator>MRJOEYD03</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/34613.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=34613</wfw:commentRss><description>&lt;p&gt;Hi All - I have been looking to programmatically populate form from a data source and save the form as an image, and InfoPath 2007 looked like it may be my best option for doing this.&lt;/p&gt;
&lt;p&gt;We would be periodically receiving data from an EDI transmission (although hopefully, we can convert this transmission to an XML file, text file or excel file, but that is another investigation).&amp;nbsp; The transmission would contain all of the fields / data for an individual document.&amp;nbsp; What we would like to do is import this data into an InfoPath form and save it as an image, so we can add the document to an image repository.&amp;nbsp; The InfoPath form would most likely need to be able to grow a detail line section of the form as the documents coming in are essentially Purchase Orders with lines of detail that could span several pages.&lt;/p&gt;
&lt;p&gt;Is this something that the InfoPath 2007 object model is capable of doing in a Visual Studio 2005 environment?&amp;nbsp; If so, could anyone point me in the right direction.&amp;nbsp; I see examples on importing data into forms, but none regarding saving the form as an image (all programmatically).&lt;/p&gt;
&lt;p&gt;I look forward to your responses!&lt;/p&gt;</description></item></channel></rss>