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 2005

Tip: Looking for answers? Try searching our database.

Edit infopath XML without opening Infopath

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Bailey - 27 Apr 2005 10:36 GMT
Hello,
I'm using the following code:

Dim myApp As Application = _
           New Microsoft.Office.Interop.InfoPath.Application

       
       Dim myXDoc As XDocument = myApp.XDocuments.New( _
           "D:/blnakallinfo.xml", _
           XdDocumentVersionMode.xdFailOnVersionOlder)

Is there an alternative to this that would work in the same way as:
Dim myXmlDocument As XmlDocument = New XmlDocument
       myXmlDocument.Load("D:/test.xml")

i.e. Load an infopath xml file but not within infopath?

Thanks
Jason
virgul - 27 Apr 2005 13:54 GMT
Hi,

I don't know with your code but if you remove the PI in the xml that don't
open with infopath

And you can make better if you take your view1.xsl (default name) out of
infopath project(xsn with winzip for example) and you add this under the PI

<?xml-stylesheet type="text/xsl" href="view1.xsl"?>

and if the infopath is not installed on the machine that load automatically
with the xsl (only the vision is correct the validation and all this things
work not)!!!

Good luck

Thierry

"Jason Bailey" a écrit :

> Hello,
> I'm using the following code:
[quoted text clipped - 15 lines]
> Thanks
> Jason
Jason Bailey - 28 Apr 2005 11:17 GMT
> Hi,
>
[quoted text clipped - 3 lines]
> And you can make better if you take your view1.xsl (default name) out of
> infopath project(xsn with winzip for example) and you add this under the PI

> Good luck
>
> Thierry

Hi and thanks. I still want the form available to Infopath users. I just
want to have to some code create an infopath form based on other XML data
(XML data captured by PHP web form). The idea is automate the creation of
infopath xml forms which are then used by people afterwards. I've sort of got
round it by using myapp.quit but I just assumed that I'd be able to open an
Infopath XML file in the same way as a standard XML file.

Jason
virgul - 28 Apr 2005 14:00 GMT
So the only things you need is that the xml is valid for the XMLschema in
infopath and you have to add the PI in the xml (every xsn has a different PI)

So create a xml with your xsn (fill the form send in your e-mail for example)

open this xml copy the second line of your infopath xml and add it to the
xml that you wan't to open with infopath!!!

good luck

Thierry  

> > Hi,
> >
[quoted text clipped - 16 lines]
>
> Jason

Rate this thread:






 
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.