-
Have you insert the"try" in front of the sample of code ?
-
Hi, it's possible, this sample can do it but an adobe viewer window will open at the end of the print, it's exist some other tool without this drawback but it's not free.
try
{
...
-
Hi, for redirect the user after the submit, this link can help you:
http://moldenco.blogspot.com/2007/10/redirecting-after-using-infopath-form.html
-
Hi, sorry for the "p" of Print().
The command to do that is :
this.CurrentView.Export(@"\\SHARE\test.pdf", Microsoft.Office.InfoPath.ExportFormat.Pdf);
-
Can you confirm that in form option, compatibility, Infopath filler form is selected. You must use this option if you want to use this.print().
-
Hi, do you use Infopath Form server or InfoPath rich client ?
-
You can find this option on the properties of a field wich have some calculated default value on 2010 it's "refresh value when formula is recalculated"
-
[quote user="send2mark"]but wouldn't that field with Now() change everytime you open the form[/quote]
If you uncheck "Update this value...." it doesn't change anytime you open the form.
The problem is you use directly the function now() on your submit, so you just can't make any change on an existing form. With ...
-
Not on my knowledge, to save as sources files, go on File and select "save as source files"
-
Hi, I suggest that you add a field and set the default value of this field with the function now() after that you modify your submit and set it with this field instead of Now(). If you do that you just create one form eventough you have submited it many times.