Advertisement
Guest User

Untitled

a guest
Jun 16th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. InfoPath library throws NotImplementedException for XmlFormView.XmlForm.SaveAs method
  2. <InfoPath:XmlFormView ID="infoPathFormView" ShowHeader="false" Style="width: 100%;" runat="server" />
  3.  
  4. infoPathFormView.SaveLocation = "http://localhost/MyFormLibrary";
  5. infoPathFormView.DataBind();
  6.  
  7. if(infoPathFormView.XmlForm.New)
  8. {
  9. string fileName = Page.User.Identity.Name;
  10. infoPathFormView.XmlForm.SaveAs(fileName); // This line throws.
  11. }
  12. else
  13. {
  14. infoPathFormView.XmlForm.Save();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement