How to redirect Infopath form to Specified URL ? - InfoPath Dev
in

InfoPath Dev

How to redirect Infopath form to Specified URL ?

Last post 04-07-2010 10:37 PM by Qazi Anis. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-07-2010 03:33 AM

    How to redirect Infopath form to Specified URL ?

    Hello, I am trying to open up a SSRS Report from Infopath form on button click. the url i am using is as follows. string strurl = "http://server2:8080/ReportServer_sqlserver23?/CoreProduct&rs:Command=Render&rs:Format=PDF&ReportParameter=http://testserver/personal/ThortonRoss/test1/IMBLatestDocs/test1.xml?noredirect=true"; After this code executes, a warning message from IE comes up saying 'this page is trying to access information that is not under its control. It poses a security risk.Do you want to continue?' When i click on yes, i get 'Critical Error' pop up with the options 'Start Over' and 'Exit' Other url's like 'http://www.yahoo.com/latest-news.html', 'http://www.google.com' opens up properly from Infopath form itself on button click. However the same above url 'strurl' opens up the PDF correctly when i enter this url directly in to the browser. I have been stuck into this for 3 days. Any sort of help would be appreciated !
  • 04-07-2010 06:37 AM In reply to

    Re: How to redirect Infopath form to Specified URL ?

    What happens if you add an expression box formatted as HTML that points at the same string?  Best practice is to use a link not a button.

    What is the security level of your form? Default is Domain Trust. If you make it Full Trust does this change the behavior?

     

    Patrick Halstead
    Project Manager at Qdabra
  • 04-07-2010 11:14 AM In reply to

    Re: How to redirect Infopath form to Specified URL ?

    Hi Patrick, Thanks for the reply. The Security level of the form is full trust. I can open up the url's like 'http://www.yahoo.com/latest-news.html' or 'http://www.google.com'. However when i pass on the above mentioned url to Response.Redirect() method, i get the Critical Error pop up
  • 04-07-2010 10:37 PM In reply to

    Re: How to redirect Infopath form to Specified URL ?

    i dont know whether it is similar issue or not, i faced one that seems to be similar, what i ended i doing was storing the url in a string variable and then passing the string variable to the method instead of the actual string, It seems it does not support longer strings. urls like google and yahoo work directly,

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.