Delete a file

  • Thread starter Greg McAllister
  • Start date
G

Greg McAllister

I am down to one last step in my program requirements. I need to delete the
original infopath file from its original directory. The button -'Close
Document' should run a routine in the infopath form that will Move the
document to a 'completed' Library. I cannot seem to find a move command
associated with the XDocument. So I can do a saveas ok - but then I can find
no 'delete' option for the XDocument. Please help me overcome this issue?. I
have also tried to use the Sharepoint impprts to no avail because the
Infopath Code is not recognized as being able to use web controls. Hellllpppp.

Summmary - How do I move an infopath file - the final goal being one
document in a different library than it was from when it was opened?

Thanks all - Greg
 
G

Greg McAllister

Thanks Kalyan. It was close to what I needed and pointed me in the right
direction. I ended up using the Scripting.FileSystemObject approach.
 
K

Kalyan Reddy

Hi Greg,

I am glad these links helped you. Try reading the Howto's at this site. It
helps you in solving many such trivial issues.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top