InfoPath 2010 FormControl Export to PDF and others does not work - InfoPath Dev
in

InfoPath Dev

InfoPath 2010 FormControl Export to PDF and others does not work

Last post 08-27-2012 03:29 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-20-2012 01:36 PM

    InfoPath 2010 FormControl Export to PDF and others does not work

    With InfoPath 2007, the following line of code used to work fine when you use the Microsoft.Office.InfoPath.FormControl control in a C# Windows Form application.

    formControl1.XmlForm.CurrentView.Export(path, Microsoft.Office.InfoPath.ExportFormat.Pdf);

    When you try to use the same line of code in InfoPath 2010, you get the error message:

    "InfoPath has encountered an error. The operation failed. InfoPath cannot export the form. No such interface supported"

    Has anyone figured out a way around this error? Or has anyone figured out a new to export to PDF from this control?
    I'd be glad to hear from anyone to see how you implement this functionality now that it does not work in 2010.

  • 08-27-2012 03:29 PM In reply to

    Re: InfoPath 2010 FormControl Export to PDF and others does not work

    Hi PDJoubil,

    The CurrentView.Export method is still valid for IP 2010 object model but it does require full trust. Is your form full trust? However, "no such interface" supported suggests that maybe you changed accidentally to a browser form.

    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.