Programmatically attaching files to K2DocAttachment

  • 13 December 2005
  • 3 replies
  • 1 view

Badge +7
Hi,

Unfortunately can't find much info about K2DocAttachment component. Could you please advise me how I can upload file to K2DocAttachment component programmatically in my code.
I suppose it is possible to do with AddDocument method but I have no idea about the parameters.

Any help would be appriciated, thank you.

Regards,
A.

3 replies

Badge +7
there is a function K2DocAttachment.UploadFile but I can't use because it's a protected one.
need help
Badge +9
Hi W,

The methods of the control are not exposed and that restricts one to upload docs programmatically. The control makes use of the SPSList Web Service to upload documents into SharePoint. Please note that this is an internal web service used by the K2.net Components and was not intended to provide functionality outside the scope of K2.net Components, this is also the reason why no documentation is available in the help files on the web service. Using this web service programmatically may have a performance impact on the normal operation of K2.net Components.
Badge +7
I understand Renier, thanks for your reply!

Reply