Click here to Skip to main content
15,922,166 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionwriting data in table format in XML Pin
Madiha Ashfaq28-Jan-07 20:24
Madiha Ashfaq28-Jan-07 20:24 
QuestionHow to Retrieve hidden textbox value through xslt Pin
Venkatesh.P28-Jan-07 18:39
Venkatesh.P28-Jan-07 18:39 
AnswerRe: How to Retrieve hidden textbox value through xslt Pin
blue_arc28-Jan-07 20:10
blue_arc28-Jan-07 20:10 
QuestionXML request to HTTP and XML response from HTTP Pin
Shamshad Ali Khatri25-Jan-07 0:05
Shamshad Ali Khatri25-Jan-07 0:05 
QuestionXSD file path Pin
shakhtyor24-Jan-07 17:54
shakhtyor24-Jan-07 17:54 
AnswerRe: XSD file path Pin
Stefan Troschuetz24-Jan-07 21:11
Stefan Troschuetz24-Jan-07 21:11 
GeneralRe: XSD file path Pin
shakhtyor25-Jan-07 6:19
shakhtyor25-Jan-07 6:19 
QuestionInfoPath using C# and XML Pin
lyntonS24-Jan-07 3:27
lyntonS24-Jan-07 3:27 
Frown | :( Please can someone help me with the following issue:

I am new to the development circle and my focus is C#. I have recently started to delve into the functionality of combining Web Service, SQL Databases and InfoPath Forms. Although I have successfully completed the Web Service and Database components, I have come unstuck with the InfoPath Forms which emphasize XML.

I have created two forms: PassingParameters.xsn (Contains a TextBox(txtInput) and a Button(btnSubmit))
ReceivedParameters.xsn (Contains just a TextBox (output) that is for displaying)

What I am trying to accomplish at first appeared very easy, but has become my nemesis! All that I want to do is pass the value I input in the TextBox on the 1st form to the TextBox on the 2nd form? Here is the code that I am trying to work with. It revolves around the NewFromSolutionWithData Method.

[InfoPathEventHandler(MatchPath = "btnSubmit", EventType = InfoPathEventType.OnClick)]
public void btnSubmit_OnClick(DocActionEvent e)
{

IXMLDOMProcessingInstruction oXML = thisXDocument.DOM.createProcessingInstruction("xml", "version=\"1.0\" encoding=\"UTF-8\"");
IXMLDOMProcessingInstruction oPI = thisXDocument.DOM.createProcessingInstruction("mso-application", "progid=\"InfoPath.Document\"");
thisXDocument.DOM.insertBefore((IXMLDOMNode)oPI, thisXDocument.DOM.firstChild);
thisXDocument.DOM.insertBefore((IXMLDOMNode)oXML, thisXDocument.DOM.firstChild);

// Open a solution from a XML DOM
// Create a new DOM
IXMLDOMDocument newDoc = thisXDocument.CreateDOM();

string myXml = "<txtinput>";
newDoc.loadXML(myXml);


// Call NewSolutionWithData to open a new Form and load the XML
XDocument oXdpostingForm = thisApplication.XDocuments.NewFromSolution(@"C:\Program Files\bSOLVe_LS_Publish\PassingParameters.xsn");
XDocument oXdreceivingForm = thisApplication.XDocuments.NewFromSolutionWithData
("C:\\Program Files\\bSOLVe_LS_Publish\\Source_ParametersReceived\\template.xml",
@"C:\Program Files\bSOLVe_LS_Publish\ParametersReceived.xsn",
(int)XdDocumentVersionMode.xdFailOnVersionOlder);

I design the forms in a folder called bSOLVe_LS_Design giving them full trusted security. Once completed I publish the forms to another folder bSOLVe_LS_Publish, where I also install them. When I run the form I get the following exception:

InfoPath cannot create a new, blank form.
The system cannot find the path specified.

at Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentsCollectionWrapper.NewFromSolutionWithData
(Object varXMLData, Object varSolutionURI, Int32 dwBehavior)
QuestionXmlAttributeGroup Pin
Edmundisme23-Jan-07 12:28
Edmundisme23-Jan-07 12:28 
QuestionXMLNode to XMLElement Pin
Leia201123-Jan-07 3:21
Leia201123-Jan-07 3:21 
AnswerRe: XMLNode to XMLElement Pin
Stefan Troschuetz23-Jan-07 3:35
Stefan Troschuetz23-Jan-07 3:35 
GeneralRe: XMLNode to XMLElement Pin
Leia201123-Jan-07 22:45
Leia201123-Jan-07 22:45 
GeneralRe: XMLNode to XMLElement Pin
Stefan Troschuetz23-Jan-07 23:06
Stefan Troschuetz23-Jan-07 23:06 
GeneralRe: XMLNode to XMLElement Pin
Leia201125-Jan-07 2:01
Leia201125-Jan-07 2:01 
GeneralRe: XMLNode to XMLElement Pin
Stefan Troschuetz25-Jan-07 3:37
Stefan Troschuetz25-Jan-07 3:37 
GeneralRe: XMLNode to XMLElement Pin
Leia201125-Jan-07 21:03
Leia201125-Jan-07 21:03 
QuestionBuilding XPath queries Pin
Russell Jones23-Jan-07 0:19
Russell Jones23-Jan-07 0:19 
AnswerRe: Building XPath queries Pin
Michael Dunn23-Jan-07 7:50
sitebuilderMichael Dunn23-Jan-07 7:50 
GeneralRe: Building XPath queries Pin
Russell Jones23-Jan-07 21:52
Russell Jones23-Jan-07 21:52 
QuestionBiztalk 2004 - XML input Pin
henrybhavsar22-Jan-07 22:12
henrybhavsar22-Jan-07 22:12 
QuestionXML Menu Pin
B.L.Praveen22-Jan-07 19:07
B.L.Praveen22-Jan-07 19:07 
AnswerRe: XML Menu Pin
Stefan Troschuetz22-Jan-07 22:14
Stefan Troschuetz22-Jan-07 22:14 
QuestionXML to HTML page Pin
B.L.Praveen22-Jan-07 3:03
B.L.Praveen22-Jan-07 3:03 
AnswerRe: XML to HTML page Pin
Dustin Metzgar22-Jan-07 3:37
Dustin Metzgar22-Jan-07 3:37 
GeneralRe: XML to HTML page Pin
B.L.Praveen22-Jan-07 18:07
B.L.Praveen22-Jan-07 18:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.