Skip to content
August 25, 2008 / red1s

How to Deploy an InfoPath 2007 Form Containing Managed Code to a Browser-Enabled WSS v3 Library


Quite often I find myelf needing to do as the article heading reads:

Josh Meyer’s seems to be the most explanatory and easy to use for me:

Quote….."Update (8-14-2006): InfoPath Forms Services is NOT part of WSS v3.  It is a separate install, or you can install it as part of the MOSS 2007 Beta 2 install.  The RTM version, last I heard, will be available as a separate SKU or as part of MOSS 2007 Enterprise Edition.

Assuming you have already created an InfoPath form containing managed code, this document will explain the steps necessary to deploy it to a WSS form library that is “web-enabled” by InfoPath Forms Services.

Publish the Template to the File System (or file share)

Note: In Office 2007 you can’t publish an InfoPath form containing managed code directly to a WSS form library because it has to be first approved by a WSS Administrator.

  1. Open the Design Tasks task pane and choose Publish Form Template.

  1. Choose the first option, to publish to SharePoint, and click Next.

  1. Enter the location of the SharePoint site you want to publish to.

  1. You will be presented with the screen below. Make sure the checkbox is checked to enable the form to be filled out in a browser and click Next.

  1. You must choose a location to save the template file, which will be uploaded to the SharePoint site by the site administrator.

  1. Specify any columns you want to be made available as WSS columns in the form library.

  1. Verify that the information is correct and click Publish. The form will be published to the specified file share location.

Upload the Template to the Central Administration Form Templates Library

  1. Go to the Central Administration site for your farm (or web server if there’s only one)
  2. Click on the Application Management tab, go down to the InfoPath Forms Services section, and choose Manage Form Templates.
  3. The Form Template library is opened, which is where admin-approved form templates for the farm are stored.

  1. Click Upload Form Template. Choose your saved template file and click the Verify button. You will be shown any errors or warnings related to your template file. Read any warnings (hopefully there are no errors) and click OK.
  2. Choose your template file again (Why is it not persisted in the text box between postbacks??). In the Upgrade section, you can choose to upgrade the form template if it already exists. You can also choose how to handle current sessions that are using the form template.

  1. Click the Upload button to upload the form template. It is now available as a Feature to be activated on any site collections in the farm.

Activate the Form Template on a Site Collection

  1. You can activate a form template feature from the Manage Form Templates page of Central Administration (the same page where you uploaded the template). On the context menu of the newly uploaded form template, choose Activate to a Site Collection.

  1. In the Activation Location section of the page, choose the appropriate Site Collection and click the OK button.

Note: You may actually have to change Web Applications to find the site collection you are looking for. A Web Application maps to an IIS virtual server.

Associate the Form Template with a Form Library

  1. Create a new form library (or use an existing one, it really doesn’t matter),go to the settings page. and choose Advanced Settings.
  2. Choose Yes for Allow management of content types. For Opening browser-enabled documents, choose Display as a web page.

  1. Click the OK button to go back to the Form Library Settings page.
  2. There should now be a Content Types section which displays the Content Types enabled for the form library. The form template feature that you activated added a new content type to the Site Content Type Gallery.

  1. Choose Add from existing site content types and find your form template. Click on it and click Add, then click OK.

Go back to your form library, click the New dropdown, and choose your form template. It will be opened in the browser window where it can be filled out and saved or submitted."

The article can also be found here.

Thanks Josh! Left Hug

Original post with added comments here – alternatively I’ve pasted it here for an easier perusal method 😉

Comments

elyes85 said:

Hello,

First thanks for your interesting article,

My problem is how to install InfoPath Forms with the SharePoint Workflow with commands of course because it’s done auto with VS  ?

Thanks for you !!

August 25, 2008 2:59 PM

Ridwan said:

Hi Elyes85;

In trying to understand your question could you possibly elaborate on the installing Infopath Forms, do you need to install the Infopath Forms service as this is a Sharpeoint Forms or MOSS prerequisite installation that needs to occur. Or are you looking at applying a precreated Visual Studio workflow to an Infopath document library?

September 1, 2008 11:22 AM

elyes85 said:

First Thanks for you Ridwan for your interest !

Well, my problem is getting the Built-in commands of VS 2008 in SharePoint Workflow template.

How can VS deploy forms to SharePoint Server and ensure there efficiency.

Well I tried these commands :

stsadm.exe -o UploadFormTemplate -filename

stsadm.exe -o execadmsvcjobs

stsadm.exe -o ActivateFormTemplate -url   -filename

The form is deployed but the propery Workflow Enabled is not activated !! and this is the heart of my problem !!

  I think my problem is clear right now !?

Thanks you again Ridwan !

September 2, 2008 10:31 AM

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: