SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
SharePoint InfoPath formviewer part

I have a requirement for opening an InfoPath item from an InfoPath library in a custom application page. Here is the code:

XmlFormView formview = null;
formview = new XmlFormView();
formview.Width = Asp.Unit.Percentage(100);
formview.Height = Asp.Unit.Pixel(800);
formview.XsnLocation = "http://dev/infopathlibrary/forms/template.xsn";
formview.ShowHeader = false;
formview.ShowFooter = true;

I am not able to view the InfoPath item but I am getting the view and close button only.

Could anyone help me to solve this issue ?

share|improve this question

marked as duplicate by SPDoctor Nov 6 '11 at 17:20

This question was marked as an exact duplicate of an existing question.

You might this solution: In this solution, the InfoPath control is called via an ASP.NET control on the ASPX page instead of the code-behind.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.