Setting up InfoPath for Development

G

graulstone

Hi,
We're using InfoPath and Workflow in SharePoint. We've published an
InfoPath for to SharePoint. My colleague developed the InfoPath form
and I'd like to work on it on my development machine (inside a Virtual
Machine (vm)).
We have 'Microsoft Visual Studio Tools for Applications' installed.

Problem 1:
- Copy the .xsn file to my machine
- Copy the Visual Studio code that was generated during development
onto my machine
- Open up the .xsn file
- Click the 'Design' icon
- I now get an error saying it cant find the file and references the
directory structure that is on my colleagues machine.

Problem 2:
- Copy the xsn file to a new location on the original machine it was
create don
- Copy the source code (all the Visual Studio stuff) to a new location
(LocationA)
- Right click on xsn file and select 'Design'
- Click Tools > Options > Design [Tab]
- Set the value of 'Project location for Visual Basic and C# Code:' to
LocationA
- Click OK
- Click Tools > Programming > 'Microsoft Visual Studio Tools for
Applications'
- Visual Studio opens up but it's still pointing to the original
source code in the original location and not the code in LocationA.

I'd like to be able to copy the source code to any location/machine
and to be able to open up a .sln file and have all the files there.
What I'm looking for is some way to edit InfoPath forms like asp.net
where the form sits INSIDE the Visual Studio Project. When I open the
solution on my colleagues machine the xsn file is not in the Visual
Studio Project.

Please Help
 
K

K.Ramana Reddy(GGK Tech)

Hi,
when create the project, In that we will have .sln, manifest.xsf and other
files.
If you want open the project in another dev machine, zip the project folder
and copy to another machine and open the .SLN file.

it will open the code and infopath form in design mode.

why are you copying the XSN file?
If you want modify the form , you can do the opening manifest.xsf in project
folder.
when you opened the manifest.xsf, it will point to the location where
previously saved. If you want change the location open manifest and change
the location.

I hope this will help for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top