开发者

Authorizing SharePoint Site

开发者 https://www.devze.com 2023-02-15 01:22 出处:网络
I wrote a method which will convert the word documents in a sharepoint library into PDF. public WordToPDF(string fileName, string filePath, string userName, string passWord)

I wrote a method which will convert the word documents in a sharepoint library into PDF.

public WordToPDF(string fileName, string filePath, string userName, string passWord)

    {
        //Code to convert word to PDF.

    }

I can give the username and password hardcoded.But in runtime I am unable to use this method.Because you are unable to ret开发者_如何学JAVArive the password in sharepoint.So How can I modify the above function? Thank YOU.


I assume, I understood the question(:

If you are using this in a web part that will be published, you can elevate user priviliges.

Check here

0

精彩评论

暂无评论...
验证码 换一张
取 消