简体   繁体   中英

Authorizing SharePoint Site

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 retrive 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM