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 / May 2006

Tip: Looking for answers? Try searching our database.

Easy Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric Stott - 28 May 2006 07:51 GMT
I have an form that represents an xml document.

I have created a form that edits certain fields in the file.
How do I open up the form and then the corresponding xml document w/o doing
the Merge document, if there are no processing instructions ever in the xml
document?

Thanks,
Eric
Greg Collins [InfoPath MVP] - 30 May 2006 18:43 GMT
Create a blank form with your new template, and save it. Then open that saved .xml file in Notepad, copy all of the processing-instructions and paste them into your existing .xml file that you want to open in InfoPath.

Now you can just double-click the udated existing .xml file and it will open in InfoPath.

Signature

Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )

Eric Stott - 30 May 2006 23:59 GMT
The xml document I will be recieving will never have the processing
instructions in it. Once I have made the changes in Infopath, I want to save
the xml document w/o those processing instructions also.
Is there a way to do that?
Thanks,
Eric
Create a blank form with your new template, and save it. Then open that
saved .xml file in Notepad, copy all of the processing-instructions and
paste them into your existing .xml file that you want to open in InfoPath.

Now you can just double-click the udated existing .xml file and it will open
in InfoPath.

Signature

Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )

Greg Collins [InfoPath MVP] - 31 May 2006 20:08 GMT
Hi Eric,

If you manually added the PIs, it is likely best to just manually remove them when you are done.

I believe there is a way in code to strip out the PIs when you save, but it might cause issues if you don't also close the form at the same time. You'll have to dig a little into this and experiment to see if you can do it.

Signature

Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )


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.