简体   繁体   English

如何将.pdf文件从服务器保存到客户端?

[英]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.

相关问题 如何将文件从服务器文件夹保存到本地驱动器/客户端? - How save file from server folder to local drive/client side? 从客户端保存到sql server数据库 - save to sql server database from client side 如何在客户端(javascript)或服务器端的asp.net上将html页面的一部分保存到图像或pdf? - How to save part of an html page to an image or pdf either on client (javascript) or asp.net on the server side? 使用javascript客户端将div内容另存为.txt或PDF文件 - save div content as .txt or PDF file with javascript Client-Side 创建表客户端,然后下载excel文件或在服务器端生成excel文件,保存到服务器,然后使用JQuery从那里下载? - Create table client side, then download excel file OR generate excel file server-side, save to server, and use JQuery to download from there? 在客户端打印pdf文件 - Print a pdf file at client side 从服务器下载一个PDF文件到客户端 - Download a PDF file from the server to client 如何将json对象保存为文件服务器端? - How to save json object as a file server side? 如何获取文件从服务器端到客户端-Asp.Net的下载时间? - How to get the downloading time of a file from server side to Client side - Asp.Net? 如何在不使用处理程序的情况下使用ajax从客户端将文件发送到服务器端? - How to send file to server side from client side using ajax without using handler?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM