I did this using a special page of the ASPX application. There is an Iframe on the page, which I set my src to the view URL as follows
private void SetIFrameSource_View(HtmlControl frame, string libraryName, string formName) { string formServerPage = "http://servername/_layouts/FormServer.aspx"; string xmlLocation = string.Format("/{0}/{1}", libraryName, formName); string source = "http://servername/SitePages/Home.aspx"; frame.Attributes["src"] = string.Format("{0}?XmlLocation={1}&Source={2}&DefaultItemOpen=1", formServerPage, xmlLocation, source); }
source share