So sparen Sie Rotativa PDF auf dem server

Ich bin mit Rotativa generieren Sie PDF in meinem "MVC" - Anwendung. Wie kann ich sparen Rotativa PDF? Ich brauche, um das Dokument zu speichern auf einem server, nachdem alle der Prozess abgeschlossen ist.

Folgenden Code:

public ActionResult PRVRequestPdf(string refnum,string emid)
{
    var prv = functions.getprvrequest(refnum, emid);            
    return View(prv);

}
public ActionResult PDFPRVRequest()
{
    var prv = Session["PRV"] as PRVRequestModel;
    byte[] pdfByteArray = Rotativa.WkhtmltopdfDriver.ConvertHtml("Rotativa", "Approver", "PRVRequestPdf");
    return new Rotativa.ViewAsPdf("PRVRequestPdf", new { refnum = prv.rheader.request.Referenceno });            

} 
InformationsquelleAutor user3778485 | 2014-10-28
Schreibe einen Kommentar