Export to web error - InfoPath Dev
in

InfoPath Dev

Export to web error

Last post 05-15-2008 06:54 PM by PJagger. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 05-27-2005 10:34 AM

    Export to web error

    Hi
    Every time I try to export an Infopath form as a .mhtml from a sharepoint library by clicking on file -> export to -> web... I recieve an "Infopath cannot save the form." error. I have given full trust permissions to the form and I have digitally signed it in creation.

    I have also tried to export it using a button and the following script code:
    XDocument.View.Export("C:\\test", "MHT");
    And I recieve the following error: "InfoPath cannot export the form."

    Does anyone know how I can fix this?

    Thanks

  • 07-08-2005 08:54 AM In reply to

    If anyone is interested the problem has been resolved. It ended up being that Infopath uses Outlook Express to export the .mhtm file and my company has implemented some security patches that lock up Outlook Express so the file could never be created.
  • 07-08-2005 01:48 PM In reply to

    Hi Richard,
    Cool. Thanks for posting this. Apparently it was a mystery to us all... :S

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 07-27-2006 09:35 AM In reply to

    • MApitz
    • Not Ranked
    • Joined on 07-27-2006
    • Germany
    • Posts 1
    Hi,
    I have the same problem but not for all users and not on all WSS. Does anyone know which security patches inhibiting the export of documents?

    Thanks,
    Maik
  • 10-05-2007 07:51 AM In reply to

    When I try this I get the following error:

     

    InfoPath cannot open the selected form beaqcuse of an error in the form's code.

    The following error has occured:

     Cannot use parentheses when calling a Sub

    File:script./vbs

    XDocument.View.Export("C:\\Test","XLS")

     

    Any ideas on what I'm doing wrong?

     

  • 01-24-2008 12:38 AM In reply to

    • GazM
    • Top 200 Contributor
      Male
    • Joined on 11-09-2005
    • England
    • Posts 54

    Hi

    I am also having trouble with a similar statement/error for a simple button to export to mht

    InfoPath cannot open the selected form because of an error in the form's code.
    The following error occurred:

    Cannot use parentheses when calling a Sub
    File:script.vbs
    Line:79
    XDocument.View.Export("C:\\MyTest.mht","MHT")

    Any help out there

     

    Gary

  • 05-15-2008 06:54 PM In reply to

    • PJagger
    • Top 500 Contributor
      Male
    • Joined on 11-19-2007
    • Australia
    • Posts 40

    Hi,

    I am trying also to launch into an excel export via code, however, I cannot find anything to help with the correct format.  I am using Infopath 2007 (fully trusted) and Excel 2007 and I have not cracked the correct code for the format (it doesn't work with XLS or XLSX).

    Any help would be greatly appreciated.

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