Export to pdf from FormControl in WinForms application - InfoPath Dev
in

InfoPath Dev

Export to pdf from FormControl in WinForms application

Last post 02-16-2009 05:20 AM by jb.mulder. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-13-2009 07:31 AM

    Export to pdf from FormControl in WinForms application

    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?!? 

  • 02-16-2009 05:20 AM In reply to

    Re: Export to pdf from FormControl in WinForms application

    I think i ound the problem. In my application the InfoPath View.Export method can only take a location string parameter with a maxumum lentgh of 32 characters (including path, filename and extension).

    Does anyone have an idea about a 32 caharacter restriction???

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