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
精彩评论