I'm developing a GUI for Infopath. I'm using Microsoft Visual Studio Tools for Applications with C# as developing language. I have two views in my project, one is the result of the other. I'm getting problem with print button (as PDF): I'm trying to print the resulting view (modified over the first) from the editing one. What I got until now is a code that prints the current view. How can I print the second one !
public void PrintBtn_Clicked(object sender, ClickedEventArgs e)
{
this.CurrentView.Export("TestFileName.pdf", ExportFormat.Pdf);
}
Thanks. Best regards.