Export xml to mht - InfoPath Dev
in

InfoPath Dev

Export xml to mht

Last post 02-19-2010 08:09 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-16-2010 05:58 AM

    Export xml to mht

    I'm getting a error when I want to export a XML file to mht. I have a vbscript that opens a xml file and it must then export it to mht.

    The error I'm gettig is :
    Infopath has encountered an error. The Operation failed.
    The form cann't be exported.
    The paramenter is incorrect

    Code 80070057
    Source infopath

    It is en form published on our intranet site.
    I need to export the xml to mht.


    Set appInfoPath = CreateObject("InfoPath.Application")

    appInfoPath.XDocuments.Open(xmlFile)
    appInfoPath.XDocuments(0).View.ForceUpdate
    appInfoPath.XDocuments(0).view.Export mhtLocation, "mht" ( this is where I get the error)
     appInfoPath.XDocuments(0).Close
    appInfoPath.Quit

  • 02-19-2010 08:09 AM In reply to

    Is 'view' supposed to be capitalized in the line with the error? What about 'mht'? In the MSDN documentation, it looks like View and MHT.

    Hilary Stoupa

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