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 / November 2007

Tip: Looking for answers? Try searching our database.

Create InfoPath forms from external C# application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christian Palm - 21 Nov 2007 16:28 GMT
Hello,

I have an application that should store several different forms into an
(unchecked) xml field in an SQL 2005 database.
I've looked here
http://msdn2.microsoft.com/en-us/library/aa948065(VS.80).aspx (External
automation scenarios and examples) and found out how to successfully open
infopath with a solution and how to pre-set some fields.

Now I've got the big problem of catching events in my external application
because I need to find out when a user presses "Save" and closes InfoPath. Is
there a good solution to that?

I don't like to write my program in a way that it looks for a saved file or
watches the InfoPath process to terminate.
And:
I don't want to have the save-logic in the form itself because normal users
are creating simple forms as well and they cannot add jscript or vbscript
logic to it.

Thanks for your answers

Christian
Bryan Phillips - 21 Nov 2007 20:40 GMT
I don't know if this counts or not, but I used code generation software
(CodeSmith) to generate the files that would go in the XSN file.  Once
the files were generated, I used the CabDotNet library
(http://www.mischel.com/pubs/cabdotnet/) to zip them up into a CAB/XSN
file.

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Microsoft MVP - Client Application Development
Blog:  http://bphillips76.spaces.live.com
Web Site:  http://www.composablesystems.net

> Hello,
>
[quoted text clipped - 19 lines]
>
> Christian
 
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.