Readme File for InfoPath 2003 SP-1 Preview Code

This zip file contains two zipped InfoPath projects that demonstrate
use of managed code and new declarative conditional formatting and 
data validation features.

1. RSS2Production creates RSS 2.0 rss.xml files with an XHTML-
formatted <body> element for <item> groups.

2. NWOrdersWS retrieves order objects from the public Web service at
http://www.oakleaf.ws/nworders/nworders.asmx. You can update and
insert orders.

Both projects require InfoPath 2003 SP1 (download from
http://www.microsoft.com/downloads/details.aspx?FamilyID=d5adc839-73f4-4299-aba0-e88c90b25144&DisplayLang=en) and the InfoPath 2003 Toolkit
for Visual Studio .NET (download from
http://www.microsoft.com/downloads/details.aspx?FamilyID=7e9ebc57-e115-4cac-9986-a712e22879bb&DisplayLang=en).

To build and run either project, you must grant the managed code full
trust permission on your computer. An illustrated version of these
instructions is at http://www.oakleaf.ws/infopath/fulltrust.aspx.

Do the following before attempting to build or open a form:

1. Choose Start | [All] Programs | Administrative Tools | Microsoft
.NET 1.1 Framework Configuration to open the .NET Configuration 1.1 
tool.

2. Expand the Runtime Security\Machine\Code Groups node, right-click
All_Code, and choose New to open the Create Code Group dialog.

3. Type "InfoPath Form Templates" (without the quotes) as the Name, 
add an optional description. The name must exactly match the 
characters inside the quotes.

4. Accept the default All Code as the Condition Type in the second 
dialog, and click Next.

5. Accept the default Full Trust Permission Set, and click Next and
Finish to assign full-trust permissions for managed code behind
InfoPath forms on your computer.

6. Close and reopen InfoPath SP-1, if it's open.

Previewing the Rss2Production solution
(go to http://www.oakleaf.ws/infopath/rss2.aspx for examples):

1. Navigate to C:\InfoPathSP-1\Rss2Production (or wherever you
installed the files).

2. If you didn't install the project to the default location, skip
to step 6.

3. Double-click OakLeafSiteRss.xml to open the form with a view of 
<item> groups from a recent version of the InfoPath form for the 
OakLeaf Web site's rss.xml file.

4. Click the All Sections button to display the complete form for
creating RSS 2.0 files, including <channel> and <image> groups.

5. Close InfoPath.

6. Double-click Rss2Production.sln to open the project in Visual
Studio .NET 2003 and display the form in design mode.

7. Click the Preview Form button to build the project and display 
a preview of an empty <item> group.

8. Add some text to the Title and Description text boxes. Description
text automatically adds to the Body text box for XHTML formatting.

9. Add a few characters to the Link URL, which duplicates in the 
GUID text box, and enables the Save rss.xml button.

10. Optionally, click the Insert New Category widget and change
the second ASP.NET Web services entry to something else.

11. If you used the default file location, click the Save rss.xml 
button to save the file in C:\InfoPath-SP1\RSS2Production. (The
path is hard-coded.)

Previewing the NWOrdersWSProject solution
(go to http://www.oakleaf.ws/infopath/nworders.aspx for details)

1. Navigate to C:\InfoPathSP-1\NWOrdersWSProject (or wherever you
installed the files.)

2. Double-click NWOrdersWSProject.sln to open the project and the
form in InfoPath design mode.

3. Click the Preview Form button to build the project and open a
form preview.

4. Accept the default Order ID or select one of the 10 most recent
orders in the dropdown list, and click Run Query to load the form
with the Order object, which includes OrderDetails members.

5. Click the Update Order to submit the current order to the Oakleaf
web site.

6. Click the Insert Order button to add a new order. The new OrderID
value appears first in the Order ID drop-down list.

7. Click Run Query with the new Order ID value to verify the order
added to the database.

Problems? Visit http://www.oakleaf.ws/infopath/.




 


