授权 SharePoint 网站

发布于 2024-10-20 18:50:06 字数 279 浏览 2 评论 0原文

我写了一个方法,可以将共享点库中的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

七禾 2024-10-27 18:50:06

我想,我理解这个问题(:

如果您在将要发布的 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文