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 2008

Tip: Looking for answers? Try searching our database.

hosting external file in  xmlformview control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred - 03 Apr 2008 16:01 GMT
I know that xmlformview can render a xml file in the sharepoint site,
but can I use the control to render a xml file which is not in the
same site. for example

  <cc1:XmlFormView ID="formViewer" runat="server" Height="250px"
Width="100%"
              XmlLocation="http://localsite/getfile.aspx" />

I can return an instance of xml file in the http://localsite/getfile.aspx,
but the control can not render the xml file. Is there anyone who have
this experience?

Thanks
Greg Collins - 03 Apr 2008 18:37 GMT
In your ASPX page do you set the content type?

<%@ Page . . . .  ResponseEncoding="UTF-8" ContentType="text/xml" %>
<%@ Outputcache Location="None"%>

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com

Fred - 03 Apr 2008 19:33 GMT
Yes, when I use IE to browse the page(http://localsite/getfile.aspx),
IE display it in styled xml format, this prove that the return ouput
is valid. But the page with form viewer shows "The form has been
closed".

Maybe the from service does not support this? I guest form service is
not retrieving the file content by http call to the url, but translate
the url into object model call.

Thanks

> In your ASPX page do you set the content type?
>
[quoted text clipped - 6 lines]
> Visit Braintrove athttp://www.braintrove.com
> Visit InfoPathDev athttp://www.infopathdev.com
Greg Collins - 03 Apr 2008 21:44 GMT
Don't trust just browsing to the page... make sure the actual page itself
has the content type set to XML.

Outside that I can't help any more here... someone else will have to jump in
if they have ideas.

Signature

Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com
Visit InfoPathDev at http://www.infopathdev.com

 
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.