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 ...