Open external aspx-page from within IP

A

Andreas Ek

Is there anyone that could help me with an example of open an internet
explorer from within InfoPath? This sounds very easy but seraching for
an example is hard ;-)
I would like to have a button in a form that exports some parameters
in a http request to a browser window. There is no communication back
to the form. Just open a simple external web window!
I'm working with managed code, c# and vs2003 in InfoPath.
Please, anyone?
 
B

Bart

hello

XDocument.UI.ShowModalDialog("url",querystring,"size etc");///the sdk has
arguments
should work

Cheers
Bart
 
B

Bart

Hi Andreas

well this is in brief

assigning an apsx page in the url field of Showdialog method throws up an
errror(invalid parameter)

so i followed the following steps
1) create abutton click and add the following
XDocument.UI.ShowModalDialog("redirect.htm","XDocument",0,0);

1) create an htm file(redirect.htm) add it to the resource files( tools->
resource files->add)
the code is as follows

**********************************************
<html>
<head>
<script type="text/javascript">
function redirectme()
{
if (typeof window.dialogArguments == "object")
xmldoc = window.dialogArguments
window.location="http://fsdfsdf/webform1.aspx?xmldoc.somenode"
window.close()//redirect opens in the new window.
return
}
</script>
</head>
<body onload="redirectme()">
</body>
</html>

**********************************************
 
B

Bart

They are called as Processing instructions, telling the parser to render the
xml content using Infopath and the contents of the xml is based on the
template (href.....).

the following link is a commandline toll to change the processing
instructions of an infopath file(Microsoft).


http://msdn.microsoft.com/library/d...html/ipsdkUsingThePIUpdateTool_HV01081782.asp


and regarding the processing instruction there is a seperate class for it

"XmlProcessingInstruction class"

cheers
Bart
 
A

Andreas Ek

Great! Thank u very much because this works perfectly!
There was som arrangements with fully trusted form but it's solved.
I'm suprised that InfoPath is so difficult to use ;-(
Regards, Andreas Ek.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top