Hosting the InfoPath Form Control in a Web Browser in .NET

Printing QR Code ISO/IEC18004 in .NET Hosting the InfoPath Form Control in a Web Browser
Hosting the InfoPath Form Control in a Web Browser
QR Encoder In .NET
Using Barcode generation for ASP.NET Control to generate, create QR Code image in ASP.NET applications.
NOTE
Generate Barcode In .NET
Using Barcode generator for ASP.NET Control to generate, create bar code image in ASP.NET applications.
Submit Event Will Occur First in the Form Code
QR Code ISO/IEC18004 Creation In C#
Using Barcode maker for Visual Studio .NET Control to generate, create Quick Response Code image in VS .NET applications.
If the form opened in the hosting application handles the submit event, the event will be red to the form rst before being sent to the hosting application s SubmitToHostEventHandler Therefore, if the submit event handler in form code cancels the event, the host will never receive the event
QR Printer In VS .NET
Using Barcode generator for Visual Studio .NET Control to generate, create QR Code JIS X 0510 image in .NET applications.
Hosting the InfoPath Form Control in a Web Browser
QR Code JIS X 0510 Generator In Visual Basic .NET
Using Barcode maker for Visual Studio .NET Control to generate, create QR Code ISO/IEC18004 image in VS .NET applications.
At this point you know how to host InfoPath forms in your own applications The IP Insurance sample showed how a form can be integrated into a custom application while maintaining a seamless user interface and experience We learned all about the InfoPath form control and wrote code to communicate between the form and the host application In this section, we re going to do something very similar, but instead of using a Windows Forms application, we ll be working in the context of a Web page As you may have guessed, the browser version of the form control is powered by InfoPath Forms Services Given that the browser-based form control is based on Forms Services, we re back to working with InfoPath Forms Services and browser-enabled form templates As such, you can t use just any InfoPath form and ll it in the browser by using the browser form control Everything we learned back in s 14 and 17 now applies If you haven t yet looked at those chapters, we highly recommend that you at least understand the material presented in 14 Hosting the InfoPath form control in the browser is quite different than hosting it in a NET Windows Forms application In fact, the browser version is a completely different control with a different interface Instead of the FormControl class as we used for hosting InfoPath, we ll be using the XmlFormView class The XmlFormView component is really just an ASPNET control If you ve authored an ASPNET page before, you ll know that ASPNET controls can be used when designing a Web form (ie, an ASPNET Web page) in Visual Studio 2005 Since we re using an ASPNET control,
USS Code 128 Printer In Visual Studio .NET
Using Barcode printer for ASP.NET Control to generate, create Code 128B image in ASP.NET applications.
18: Hosting InfoPath
Generate Bar Code In .NET Framework
Using Barcode printer for ASP.NET Control to generate, create bar code image in ASP.NET applications.
we want to call out a few differences from the FormControl control we used earlier XmlFormView must be used within the context of an ASPNET (not ASP) page As an ASPNET control, the XmlFormView control resides on the server C# and Visual Basic are the only supported languages Without further ado, let s see how to build a custom ASPNET Web form to host a browser-enabled form template
Print EAN 13 In Visual Studio .NET
Using Barcode printer for ASP.NET Control to generate, create EAN / UCC - 13 image in ASP.NET applications.
WARNING
Data Matrix 2d Barcode Generation In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create Data Matrix 2d barcode image in ASP.NET applications.
XmlFormView Requires a Server and Site Running InfoPath Forms Services
Bar Code Creation In VS .NET
Using Barcode creation for ASP.NET Control to generate, create barcode image in ASP.NET applications.
Before you rush out and start inserting the XmlFormView control into your ASPNET pages, you should know that the control must be used within the context of a SharePoint Server running InfoPath Forms Services The page hosting the control must also be within a SharePoint site
Barcode Generation In .NET
Using Barcode maker for ASP.NET Control to generate, create bar code image in ASP.NET applications.
Before we can build an ASPNET Web form with the XmlFormView control, we need to set up our environment First and foremost, you should be working on a Web Front End (WFE) server running InfoPath Forms Services That means you need to have Visual Studio 2005 installed on the server (Although it s possible to open the site remotely, you d need to add several references to Forms Services and SharePoint assemblies that exist only on the server) Once you re on the WFE server with Visual Studio, you ll continue to set up your environment by creating a project that maps to the SharePoint Web site with InfoPath Forms Services and adding the XmlFormView control to the Visual Studio 2005 Toolbox Before creating a project for the SharePoint site on your server running InfoPath Forms Services, you rst need to get the physical path of the site where you want your browser form to live For example, if you want to host the page on the root site collection, the URL would look something like http://yourserver/mypageaspx or http://yourserver/yourfolder/ mypageaspx To get the physical path of the root site collection, open the
Creating UCC - 12 In VS .NET
Using Barcode generation for ASP.NET Control to generate, create GTIN - 12 image in ASP.NET applications.
Encoding Code 128 Code Set A In .NET Framework
Using Barcode maker for .NET framework Control to generate, create USS Code 128 image in Visual Studio .NET applications.
Bar Code Decoder In Java
Using Barcode scanner for Java Control to read, scan read, scan image in Java applications.
Paint Bar Code In Visual C#.NET
Using Barcode drawer for VS .NET Control to generate, create bar code image in Visual Studio .NET applications.
USS Code 39 Maker In Visual Basic .NET
Using Barcode generation for .NET Control to generate, create ANSI/AIM Code 39 image in Visual Studio .NET applications.