Importing Files from Hard drive into a Public Folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have developed a knowledge share folder under Public Folders.

This folder has a custom form I developed.

I need to import files(word docs, excel sheets, pdfs, images, etc) from my
hard drive into the knowledge share folder.

I need the custom form to populate and attach the imported file.

Is this possible?

Thanks!
 
Yes, it's possible. You'll need to write code to create a new instance of a
custom form programmatically, using the Add method on the target folder's
Items collection. You can use the code at
http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy
and return the MAPIFolder corresponding to a given path string. Then you can
use Attachments.Add to attach the desired file.

Depending on the functionality (and assuming your custom form is the default
for the folder), you may also be able to drag an individual file into the
folder.
 
Back
Top