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

Tip: Looking for answers? Try searching our database.

Open Infopath in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sohaib Al-Husseini - 04 Apr 2007 10:26 GMT
Hi,
I am developing a webpatr that would open a certain infpath template; I used
the following code:
\\==========
System.Diagnostics.Process infopathprocess = new
System.Diagnostics.Process();
           infopathprocess.StartInfo.Arguments = "c:\\ProjectServer2.xsn";
           infopathprocess.StartInfo.FileName = "INFOPATH.EXE";
           infopathprocess.StartInfo.CreateNoWindow = false;
           infopathprocess.StartInfo.WindowStyle =
System.Diagnostics.ProcessWindowStyle.Normal;                    
           infopathprocess.Start();
\\===========

The problem is that INFOPATH.EXE opens in the backgroud process in the Task
Manager! the infopath form itself is not opening.

Can you help me solving this problem,
Thanks
Agnihotram - 04 Apr 2007 16:56 GMT
infopathprocess.StartInfo.CreateNoWindow = false;
Try setting the above value to true.

Signature

Agnihotram Jonnalagadda
http://www.ggktech.com

> Hi,
> I am developing a webpatr that would open a certain infpath template; I used
[quoted text clipped - 15 lines]
> Can you help me solving this problem,
> Thanks
Michel Bechelani - 18 Apr 2007 19:50 GMT
If what you want to do is open an infopath webform inside a webpart I
recommend you read the following:

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

This document shows how to open an infopath form inside an ASPX page, you
only need to apply the XmlFormView Control in a webpart instead of an ASPX
page and everything sshould work fine.

> Hi,
> I am developing a webpatr that would open a certain infpath template; I
[quoted text clipped - 17 lines]
> Can you help me solving this problem,
> Thanks
 
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.