webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
621 stars 224 forks source link

SaveOnServerPath not work #217

Closed zanyar3 closed 4 years ago

zanyar3 commented 4 years ago

ViewAsPdf use to Save file on Server Path but not work by SaveOnServerPath Property

var pdfname = String.Format("{0}.pdf", Guid.NewGuid().ToString());
var path = Path.Combine(@"MyPathProject\wwwroot\doc\Claim\Request", pdfname);
path = Path.GetFullPath(path);
var pdfResult = new ViewAsPdf
{
     ViewName = "_ToPDF",
     Model = memo,
     FileName = pdfname,
     SaveOnServerPath = path
};