简体   繁体   English

想要将C#代码中的PDF文件保存到特定文件夹中

[英]Want to save a PDF file from C# code in a specific folder

I am trying to save a PDF file in a specific folder using C#. 我正在尝试使用C#将PDF文件保存在特定的文件夹中。 But, the file is always being saved in D: drive instead of D:\\PO(PO is the folder inside D Drive). 但是,文件始终保存在D:驱动器中,而不是D:\\ PO(PO是D驱动器中的文件夹)中。 I want the file to be saved inside the PO folder. 我希望将文件保存在PO文件夹中。 The code is: 代码是:

string fName = @"D:\PO\" + VendorName + "-" + woid + ".pdf";

输入如下路径:Path.Combine(@“ F:\\ pft \\ activityobjids \\ DEV \\ Jan \\ Part1”,ObjId +“ .txt”)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM