How to show the "Save As" dialog by c# code - InfoPath Dev
in

InfoPath Dev

How to show the "Save As" dialog by c# code

Last post 01-11-2006 01:39 AM by turboy. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-09-2006 01:53 AM

    • turboy
    • Not Ranked
    • Joined on 01-09-2006
    • Posts 5

    How to show the "Save As" dialog by c# code

    I am working on a form now.The boss required all menus and toolbars to be hidden. But I need a function to save the file with user inputed filename. How can I show the dialog built in infopath?
    thank you
  • 01-09-2006 09:23 AM In reply to

    Re: How to show the "Save As" dialog by c# code

    Hi Turboy,
    Welcome to the Forum!

    You can user to enter filename in the UI and use that. After taking username you can use
    "thisXDocument.SaveAs(filename);" to save the file.

    But if you save file with code then your form needs fulltrust.

    Other way is, if you are using sharepoint you can take a dataconnection to submit the form.

    Agni
    InfoPath Dev India
  • 01-09-2006 05:04 PM In reply to

    • turboy
    • Not Ranked
    • Joined on 01-09-2006
    • Posts 5

    Re: How to show the "Save As" dialog by c# code

    Agni,Thank you.But I want show the dialog that shown after we click "Save" button on toolbar in a new form. cank you help me on this?
    thank you again!
    turboy
  • 01-10-2006 06:53 AM In reply to

    Re: How to show the "Save As" dialog by c# code

    Hi turboy,
    Do you want to close the form after saving the file? In that case you can enable file save option in form options and call "thisXDocument.View.Window.Close(true)" method. When close() method is called Save dialog will automatically come up.

    I dont think that there is any other way of doing this. Probably you can call some ActiveX controls and do it!

    Agni
    InfoPath Dev India
  • 01-11-2006 01:39 AM In reply to

    • turboy
    • Not Ranked
    • Joined on 01-09-2006
    • Posts 5

    Re: How to show the "Save As" dialog by c# code

    I want to use Windows API to send a message to info now,I will try this way later.
    Thanks
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.