Bienvenido a nuestro espacio, ahora encontrarás la resolución a lo que estabas buscando.
Ejemplo: c# guardar pdf en carpeta
protectedvoidsave_pdf()String path_name ="~/PDF/";var pdfPath = Path.Combine(Server.MapPath(path_name));var formFieldMap = PDFHelper.GetFormFieldNames(pdfPath);string username ="Test";string password ="12345";String file_name_pdf ="Test.pdf";var pdfContents = PDFHelper.GeneratePDF(pdfPath, formFieldMap);
File.WriteAllBytes(Path.Combine(pdfPath, file_name_pdf), pdfContents);WebRequest request = WebRequest.Create(Server.MapPath("~/PDF/"+ pdfContents));
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials =newNetworkCredential(username, password);Stream reqStream = request.GetRequestStream();
reqStream.Close();
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)