send form but delete file first - InfoPath Dev
in

InfoPath Dev

send form but delete file first

Last post 05-02-2006 10:03 PM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-02-2006 08:11 AM

    send form but delete file first

    Hello everyone,
    I've got seemingly easy problem but am not able to solve it, so please help me out.

    The actual problem is to send the form via smtp within the comapanynet. As we have Outlook 2000 I couldn't use the built-in IP-Function. BUT for some reason you can only send saved and closed files with smtp. Okay so I save the file twice! with two different names to keep it open and send the first-saved file away.

    But now I've got two! files with highly questionable content that I really really don't want there lying around as the user has no idea of this and some day a searchengine will find this and so on ...

    1. How can I delete these files, when one of them is open and I am currently looking at it. How can I delete the file I am working on?!?!
    2. Can I solve it more elegantly by some cast/conversion/ makefileObjekt that I give the smtp-routine in the first place.

    I take any code, preferably C#.

    Well, what do you people think?
    thx very much
    Michael
  • 05-02-2006 10:03 PM In reply to

    Re: send form but delete file first

    Where do you have the file saved in the file system or the Sharepoint?

    If it is Sharepoint you can delete the file by using "Lists" webservice provided by Sharepoint.

    If it is File system you can use System.IO.File.Delete("path");
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.