Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2007

Tip: Looking for answers? Try searching our database.

Infopath Xsn Files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
njdude - 30 Jul 2007 20:59 GMT
I would like to acheive this

Let us say i have on one machine xsn files in C:\temp

i would like to copy that to another machine to a folder c:\machine2.

then the app would load the xsn file with NewFromSolutionWithData and
create a Infopath form with data out of it.

How would i achieve this ? The problem im having is transferring the
file from c:\temp on one machine to c:\machine2 on another machine. if
i just do a manual copy of the xsn file from 1 to 2 it does not work
and throws an error when running NewFromSolutionWithData

Error : ... update has been blocked because author coul dnot be
verified etc....

But if i take the xsn file from c:\temp copy it to c:\machine2 but
then open the form in design and then do a save and give it the same
name on c:\machine2 then everything works fine !!

so long story short is there a way in c# to open an xsn file in design
mode and do a save the xsn to a location ?

TIA
David Dean - 30 Jul 2007 21:30 GMT
You're probably better off publishing the form template to a location that
all the client machines can access, such as a web server or a file server
share. That way you won't have to republish the form template in design mode
when it's moved from place to place.

Signature

David Dean
Sr. Member Technical Staff
Insource Technology Corp.

> I would like to acheive this
>
[quoted text clipped - 21 lines]
>
> TIA
Kalyan G Reddy MVP (GGK Tech) - 31 Jul 2007 17:00 GMT
Hello

You can even try publishing forms to Sharepoint server or Infopath Forms
service if you ae using Infopath 2007.

Signature

Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com

> You're probably better off publishing the form template to a location that
> all the client machines can access, such as a web server or a file server
[quoted text clipped - 26 lines]
> >
> > TIA
njdude - 01 Aug 2007 23:11 GMT
so the short answer is there is no way of acheiving what i want?  :(

On Jul 31, 12:00 pm, Kalyan G Reddy MVP (GGK Tech)
<KalyanGReddyMVPGGKT...@discussions.microsoft.com> wrote:
> Hello
>
[quoted text clipped - 41 lines]
>
> - Show quoted text -
David Dean - 02 Aug 2007 03:26 GMT
The RegisterSolution() method might be what you're looking for.

http://msdn2.microsoft.com/en-us/library/bb229810.aspx

You should be able to execute this function via Windows Scripting Host
automation code or COM interop in a .NET lanugague.

Signature

David Dean
Sr. Member Technical Staff
Insource Technology Corp.

> so the short answer is there is no way of acheiving what i want?  :(
>
[quoted text clipped - 45 lines]
> >
> > - Show quoted text -
njdude - 28 Aug 2007 22:15 GMT
Sorry for not responding for so long. i was away. Actually i looked at
the script from the link you posted.
It gives me a messagebox saying
"The following template cannot be registered...... because it contains
a publish URL"

so any ideas ? I think you are on the right track.

On Aug 1, 10:26 pm, David Dean <DavidD...@discussions.microsoft.com>
wrote:
> The RegisterSolution() method might be what you're looking for.
>
[quoted text clipped - 59 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.