Webexport - InfoPath Dev
in

InfoPath Dev

Webexport

Last post 01-26-2007 07:30 AM by zaphi. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-29-2006 07:44 AM

    • zaphi
    • Top 150 Contributor
    • Joined on 01-09-2006
    • Switzerland
    • Posts 82

    Webexport

    Hi

    I need to open the Window "Webexport" with a button and to set a default location and filename (.mht), in the same way like the SetSaveAsDialogLocation and SetSaveAsDialogFileName methods.

    Can anybody help me?
    Best regards.
    Philippe
    Infopath 2007/SP2
  • 01-02-2007 06:27 AM In reply to

    Hi Philippe,

    Sorry for the delay in response, the holidays have had us away from our computers. This should be doable, but I'm not sure if it will require Full Trust or not. Take a look at the Window.CommandBars object. The following tutorial describes how to edit the command bars, but I think I remember that you are able to invoke a command menu using this object or something like it as well.

    If you figure this out, please post back with your results. Thanks!

    http://msdn2.microsoft.com/en-us/library/aa192513(office.11).aspx
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 01-03-2007 06:13 AM In reply to

    • zaphi
    • Top 150 Contributor
    • Joined on 01-09-2006
    • Switzerland
    • Posts 82
    Hi Matt

    I have done one step forwards. I have written the following code:

    var objCommandBars = Application.ActiveWindow.CommandBars;
    var objCommandBarControl = objCommandBars.FindControl(1,7721);
    objCommandBarControl.Control.Execute();

    And the dialog window "Web export" is now opened, like I wanted. The default location is "My documents" and the default file name is "Form name + View name.mht".

    What I need is to set the location and filename by code.
    Have you got any idea?

    Thanks fpr your reply.

    Best regards.
    Philippe
    Infopath 2007/SP2
  • 01-26-2007 07:30 AM In reply to

    • zaphi
    • Top 150 Contributor
    • Joined on 01-09-2006
    • Switzerland
    • Posts 82
    Hi
    I need to set the file name and file location in the dialog box "Web export"..

    Does anybody know, if it is possible?

    Thanks for your help.
    Philippe

    Infopath 2007/SP2
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.