Hi, can anyone help me with the following.
I have a winforms application with a InfoPath 2007 FormControl to show and fill out a form.
The form contains no code. All is handled by the application. When calling the export_to_pdf function from within managed code (C#) I sometimes get the following exception "InfoPath cannot export the form. The parameter is incorrect". Depending on the filedestination i present to the export function the exception does or does not occur. When suplying it with @"D:\[somedirectory]\[filename].pdf everything is ok, but when suplying the literal filestring of "MyDocuments" being: "\\\zkh\\[somedir]\\[somemachinename]\\[somesubdirname]\\[somefilename].pdf" ((sorry for the strange paths, securitymatters) the exception is thrown.
Anyone ideas?!?