[英]How to save .pdf file from server to client side?
I need some suggestion about how to save .pdf file from server to client side. 我需要一些有关如何将.pdf文件从服务器保存到客户端的建议。 I'm using C# console application to generate pdf file and save in server local c and I manage to do it by using .ExportToDisk(ExportFormatType.PortableDocFormat, report). 我正在使用C#控制台应用程序生成pdf文件并保存在服务器本地c中,我设法通过使用.ExportToDisk(ExportFormatType.PortableDocFormat,report)来做到这一点。 Now I need to save the file to client side rather than save in server local c because my user aren't allowed to access the server. 现在,我需要将文件保存到客户端,而不是保存在服务器本地c中,因为不允许用户访问服务器。 Appreciate if someone can help me about this. 感谢有人可以帮助我。 Thanks 谢谢
Your best option would be to export to a UNC path which the users can access. 最好的选择是导出到用户可以访问的UNC路径。 Don't forget your console application will have to run as a user with write access to the UNC path. 不要忘记您的控制台应用程序必须以具有UNC路径写访问权限的用户身份运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.