授权 SharePoint 网站
我写了一个方法,可以将共享点库中的Word文档转换为PDF。
public WordToPDF(string fileName, string filePath, string userName, string passWord)
{
//Code to convert word to PDF.
}
我可以给用户名和密码硬编码。但是在运行时我无法使用这个方法。因为你无法在sharepoint中检索密码。那么我该如何修改上述函数呢?谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想,我理解这个问题(:
如果您在将要发布的 Web 部件中使用此问题,
您可以提升用户权限。
检查这里
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