infopath

Creating Infopath 2007 addins that manipulate the design-time form

I'm experimenting with creating an add-in for Infopath 2007. The documentation is very skimpy. What I'm trying to determine is what kind of actions an add-in can take while designing a form. Most of the discussion and samples are for when the user is filling out the form. Can I, for example, add a new field to the form in the designer? A...

Deploying InfoPath forms to different SharePoint servers

How do you manage deploying InfoPath forms to different sharepoint servers? Is there a better way to deal all the data connections being site-specific without opening the forms, editing the data connections and republishing for each environment? ...

Can an audio object be embedded in an InfoPath form ?

Is it possible to embed an audio object (mp3, wma, whatever) in a web-enabled InfoPath form ? If it is, how do you do it ? ...

InfoPath 2003 and the xs:any type

I am implementing exception handling for our BizTalk services, and have run into a fairly major stumbling block. In order to make the exception processing as generic as possible, and therefore to allow us to use it for any BizTalk application, our XML error schema includes an xs:any node, into which we can place a variety of data, depen...

XML dataset in Crystal Reports

I am trying to print a report from within an InfoPath template. So my dataset is an XML DOM that I will load into the Crystal Report at runtime. But how do I define the dataset off which the Crystal Report is developed? Crystal Reports has a great tool to build a dataset from an SQL database. Is there something similar for XML schema t...

Infopath 2007 - How do I perform data validation on the current view ONLY?

I have an infopath 2007 form that I am developing which uses 3 different views. The 3 different views are basically the same form, but have different text boxes shown, depending upon what button the user selects. I run into a problem where 'view 1' has some form validation, but the user has selected 'view 2' and submits it. The form val...

Which IDE should I use for developing custom code for InfoPath Forms, VSTA or VSTO?

I am new to developing for Office Forms Server / MOSS 2007. I have to choose between designing my web-based forms and writing code for them in Visual Studio Tools for Applications (aka VSTA) or Visual Studio Tools for Office (aka VSTO). VSTA is included free as part of the license for InfoPath 2007; VSTO, also free, requires Visual Stu...

Launch Infopath form with parameter

Opening an Infopath form with parameter can be done like this: System.Diagnostics.Process.Start(PathToInfopath + "infopath.exe", "Template.xsn /InputParameters Id=123"); But that requires I know the path to Infopath.exe which changes with each version of Office. Is there a way to simply launch the template and pass a parameter? Or is ...

SharePoint custom content feature with Word Quick Parts and Document Information Panel

I am creating a custom content type feature for MOSS that will also include a Word 2007 document as the document template. The same Word document will also have a Document Information Panel (DIP) and Quick Parts for all the fields in the content type. The problem is that when my feature is deployed the Word document's Quick Parts no lon...

Infopath 2007 - Emailed forms not rendering correctly

So I have a form that uses infopath services via sharepoint, and after multiple attempts at attempting to fix a rendering problem (tables appear WAY too wide to be readable), I think I have found the problem : date controls. It seems date controls within Infopath 2007 screw with rendering somehow. To test, I made 2 variations of a VER...

How can I automate the process of deploying an InfoPath Form to SharePoint Server 2007?

It is a real pain to deploy my InfoPath 2007 Forms from the designer into our development environment's SharePoint server. All of our forms require "full trust" since they include business logic written in C#. Here are the manual steps: 1) Run the "Publish Form" wizard in InfoPath, specifying the target site to publish to and location...

How do I programmatically close an InfoPath form in C# ?

Is it possible to close an InfoPath form programmatically? I know that it can be configured as a form rule / action but I want to close the form via code. ...

Forms in SharePoint

If I want to put a form up on SharePoint, is it easier to use InfoPath or build a custom web part in C#? Are there other options that I should consider? What are the requirements and hurdles for each option? ...

Infopath doesn't render background colors/pictures w/ Outlook Task/Sharepoint

I am using Infopath forms to collect information to trigger my Windows Workflow sitting on Sharepoint 2007. The Infopath forms have logo's and branding which only show up on the Sharepoint portal but the infopath forms which are emailed when tasks are created during the workflow look different as in the background colors (Infopath Theme)...

How do I conditionally display a field in Infopath?

Hi! I'm trying to do the following in infopath: I have to choose between 2 options (with bullets), and depending on this, if we choose Option1, I need to display a text field to enter more details, but if Option2 is chosen, I don't need this additional field. I'm not sure about how to enter a Rule to define this :-( Anyone could help? T...

"The selected files was not found" on an InfoPath form in Sharepoint

When using a file attachment control on a InfoPath form as part of a SharePoint workflow I get the error "The selected files was not found". ...

How can I get the computer name of the client filling an web-based Infopath form?

I have an Infopath 2007 form hosted on MOSS 2007. The code behind the form is written in C#. In this context, System.Environment.MachineName return the server name. How can I get the name of the computer from which the client is filling this form? ...

How to test infopath applications?

Is there a way to do reasonable test on InfoPath (web) applications with a SharePoint workflow behind? (There seems to be not much sence in testing, whether the rules in the form are performed correctly by the FormService.) ...

Submit issues - send to 2 locations at once.

How can I Submit an InfoPath form to a SharePoint library AND to an email box at the same time when the user hits SUBMIT? I need my form to be approved by several users in a particular order; then re-submitted to the SharePoint site, and to another email box so that the next approver can see the approvals, and approve their own, then su...

How can I validate within an InfoPath form whether a user exists within a SharePoint Portal?

I am creating a form within InfoPath which is to be integrated into a SharePoint 2007 Portal. Within this form there will be a textfield into which a user can enter the Name of a Person. How can I validate whether this Person exists or not? Instead of validating the user, is there a way to fill a dropdown List with all usernames of th...