<?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: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13486.aspx</link><pubDate>Tue, 30 Aug 2005 05:04:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13486</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13486.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13486</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;We need more details. Please send me e-mail and we can do a Live Meeting and debug this with you on Wednesday or Thursday.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13485.aspx</link><pubDate>Mon, 29 Aug 2005 16:07:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13485</guid><dc:creator>Eugene Kogan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13485.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13485</wfw:commentRss><description>Hi Patrick, it crashes when I'm trying to use published template.&lt;br /&gt;I can wright to the server anything, because it in the internal network.&lt;br /&gt;Thanks Eugene&lt;br /&gt;&lt;br /&gt;Eugene</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13484.aspx</link><pubDate>Sat, 27 Aug 2005 05:55:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13484</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13484.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13484</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;Are you saying that it crashes when you publish? Is that from inside the Designer? I've never heard of this, but I think the debug error may offer some clue here. Can you copy something to the&lt;a target="_blank" href=http://.../&gt;http://.../&lt;/a&gt; location using some other tool?&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13483.aspx</link><pubDate>Fri, 26 Aug 2005 21:22:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13483</guid><dc:creator>Eugene Kogan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13483.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13483</wfw:commentRss><description>Thanks you for quik answer.&lt;br /&gt;It is working now, I had to change http header.&lt;br /&gt;I have another problem.&lt;br /&gt;When I publish my form to the localhost it is working fine.&lt;br /&gt;When I'm trying to publish even to same host but with IP address like&lt;a target="_blank" href=http://###.888.999.000/Folder/ggg.xsn&gt;http://###.888.999.000/Folder/ggg.xsn&lt;/a&gt; Infopath ask me to login with my network login and password, publish form, but this form crashes when I'm trying to run it.&lt;br /&gt;It asks me to report to Microsoft about the error and if I click debug button gives me some memory cennot write error.&lt;br /&gt;&lt;br /&gt;What I'm douing wrong&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Eugene</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13482.aspx</link><pubDate>Fri, 26 Aug 2005 20:44:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13482</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13482.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13482</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;I've asked Agni to respond in e-mail.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13481.aspx</link><pubDate>Fri, 26 Aug 2005 18:21:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13481</guid><dc:creator>Eugene Kogan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13481.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13481</wfw:commentRss><description>Sorry , disregard prev posting, I clicked submit by mistake.&lt;br /&gt;&lt;br /&gt;Thank you all.&lt;br /&gt;What I'm trying to do is:&lt;br /&gt;I created an xml from My Infopath form as template, I read this xml file row by row &lt;br /&gt;I set Response.Context type to "text/xml" and&lt;br /&gt; Respond.writeln(row); in the loop&lt;br /&gt;After I flush Respond.&lt;br /&gt;on the client side I have dialog save/open,&lt;br /&gt;but when I select save Infopath starts to open and give me the message:&lt;br /&gt;&lt;br /&gt;Infopath cannot open following File: WebForm1.aspx. The file is not a valid XML file&lt;br /&gt;&lt;br /&gt;with details:&lt;br /&gt;The form contains XML that cannot be parsed:&lt;br /&gt;A name was started with an invalid character.&lt;br /&gt;&lt;br /&gt;Line 1, Position 2&lt;br /&gt;&amp;lt;%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="EvalAsp.WebForm1" %&amp;gt;&lt;br /&gt;-^&lt;br /&gt;Why it is send  .aspx file instead of .xml file?&lt;br /&gt;Is it possible to avoid it?&lt;br /&gt;&lt;br /&gt;If I save file as .aspx, change extension to .xml InfoPath form is fine&lt;br /&gt;I guess some thing wrong with HTTP header ?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Eugene</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13480.aspx</link><pubDate>Fri, 26 Aug 2005 18:04:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13480</guid><dc:creator>Eugene Kogan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13480.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13480</wfw:commentRss><description>Thank you all.&lt;br /&gt;What I'm trying to do is:&lt;br /&gt;I created an xml from My Infopath form as template, I read this xml file row by row and Respond.writeln(row); in the loop&lt;br /&gt;After I fluch Respond&lt;br /&gt;I set Response.Context type to "text/xml"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Eugene</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13479.aspx</link><pubDate>Thu, 25 Aug 2005 23:55:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13479</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13479</wfw:commentRss><description>Hello Eugene&lt;br /&gt;   To throw the xml you will need to build it as per what you InfoPath solution is expecting it to be. This code can be used to talk to DB also. Its just that the data that you recieve from the DB needs to be appropriately molded so that you have the correct xml that you want to throw with you.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13478.aspx</link><pubDate>Thu, 25 Aug 2005 16:29:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13478</guid><dc:creator>Eugene Kogan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13478.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13478</wfw:commentRss><description>Thank you Agni, but my case is a little bit different&lt;br /&gt;My infopath form connected to database and I do not want to save xml file at all.&lt;br /&gt;Can I generate output stream from ASPX with content of the xml document inside,&lt;br /&gt;the browser will understand "xml" and open infopath form on client side ?&lt;br /&gt; Thanks&lt;br /&gt;&lt;br /&gt;Eugene</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13477.aspx</link><pubDate>Thu, 25 Aug 2005 07:54:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13477</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13477.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13477</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;"throw xml into the browser as attachment" means, we will send an xml file to the client as an attachment to the response.&lt;br /&gt;&lt;br /&gt;Here is the code to throw an xml to open in InfoPath&lt;br /&gt;Note: Code is in c#&lt;br /&gt;&lt;br /&gt;//xmlDoc should be your InfoPath form xmldocument&lt;br /&gt;string xmlContent = xmlDoc.OuterXml;&lt;br /&gt;Response.AddHeader("Content-Disposition", "attachment; filename=Form.Xml");&lt;br /&gt;Response.AddHeader("Content-Length", xmlContent.Length.ToString());&lt;br /&gt;Response.ContentType = "text/xml";&lt;br /&gt;Response.Write(xmlContent);&lt;br /&gt;&lt;br /&gt;Hope this Helps!&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13476.aspx</link><pubDate>Thu, 25 Aug 2005 00:04:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13476</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13476.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13476</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;I was wrong. Sorry about that. I will ask Agni to post code on how to do this.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13475.aspx</link><pubDate>Wed, 24 Aug 2005 18:48:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13475</guid><dc:creator>Eugene Kogan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13475.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13475</wfw:commentRss><description>Thaks for reply.&lt;br /&gt;Agni, I checked the link, looks like it is good idea, but could you please explain what does it mean "trow xml into the browser as attachment"&lt;br /&gt;&lt;br /&gt;Patrik I got your book, but on page 278 is nothing about asp, maybe the page number is wrong ?&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;br /&gt;&lt;br /&gt;eugene&lt;br /&gt;&lt;br /&gt;Eugene</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13474.aspx</link><pubDate>Mon, 22 Aug 2005 19:28:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13474</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13474.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13474</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;Page 278 of our book has a VB example of how to do this.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/13473.aspx</link><pubDate>Mon, 22 Aug 2005 19:24:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13473</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13473.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13473</wfw:commentRss><description>Hi Eugene,&lt;br /&gt;Welcome to the Forum!&lt;br /&gt;&lt;br /&gt;You find info regarding this at&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=645&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=645&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For further info search in the forums using "open InfoPAth form from ASPX" as the key word.&lt;br /&gt;&lt;br /&gt;If you still have the doubt please post here.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>How to call Infopath form from ASPX</title><link>https://www.infopathdev.com:443/forums/thread/12532.aspx</link><pubDate>Mon, 22 Aug 2005 18:43:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12532</guid><dc:creator>Eugene Kogan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12532.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12532</wfw:commentRss><description>I have infopath form connected to SQL database&lt;br /&gt;I need to create aspx that list one field of the connected records&lt;br /&gt;and when I click it to open appropriate infopath form, so I can change data and submit back to database.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Eugene</description></item></channel></rss>