Infopath 2010 export to pdf - InfoPath Dev
in

InfoPath Dev

Infopath 2010 export to pdf

Last post 07-11-2011 01:35 PM by tberch. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-05-2010 03:26 PM

    Infopath 2010 export to pdf

    We have recently upgraded a number of our forms from InfoPath 2007 to InfoPath 2010 and are encountering a strange occurrence when export the completed forms to pdf via submit code.  This process was working with the same code on version 2007 without issue. What seems to be happening is that the first time the user submits the form it  is exported to .pdf just fine and the form is closed based on the setting in the submit options however a ghost process of infopath.exe*32 is still running in task manager even though the application is closed. The second time the user tries to submit the form the .pdf is created but also a print preview window is opened. I believe this is due to the ghost process. After the second submit is process a second ghost process of infopath.exe*32 is present. After about the 3rd or 4th submit attempt the export to .pdf process does not run at all and just a print preview window is open. We are testing on Windows7 x64 bit machines with Office 2010 32-bit version. The code block is below. I have tried variations of submit options and settings as well as adding a thread.sleep command to try and wait for the process to finish before the forms is closed but no matter what it always leaves that ghost infopath.exe*32 process running. If I go in a kill that process in between submit attempts it functions as expected. Any help would or a work around would be greatly appreciatedJeff Murtari[email protected]  Public Sub FormEvents_Submit(ByVal sender As Object, ByVal e As SubmitEventArgs)                   'export pdf version            If Directory.Exists(custpdfpath) = False Then                Directory.CreateDirectory(custpdfpath)            End If            Me.CurrentView.Export(custpdfpath & ".pdf", ExportFormat.Pdf)            e.CancelableArgs.Cancel = False End Sub

     

  • 06-29-2011 08:12 AM In reply to

    Re: Infopath 2010 export to pdf

    Hello - we have pretty much the exact same problem here at our organization. We are ready to deploy office 2010 and this problem is going to really hurt us - we have one form where there are multiple PDF exports and this of course is crashing infopath. In addition my pdf gets passed over to a fax server which errors because the infopath process has the file locked.

    I downloaded and applied Office 2010 service pack this morning and it does not address this issue. Went through the service pack docs and they did not even address infopath. Sorry but that aint good enough Microsoft.

     I am going to try to setup Office 2010 without infopath and see if I can install Infopath 2007- so everything other than infopath will be 2010 and infopath 2007. Not terribly optimisitc that it will be successful.

     

  • 07-11-2011 01:35 PM In reply to

    Re: Infopath 2010 export to pdf

    The best solution for this I have found is muhimbi Software to automate your needs for infopath to PDF. Please tell them I referred you to their product. I am working on getting credit for another one of their products. I have been very happy with their products,  and highly recommend them. Let them know that Tom Berchenbriter Referred you.

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