I need to set .pdf name before displaying it. I tried to set it like this
return new ViewAsPdf(GetViewName(), "", reportVM)
{
PageSize = Size.Letter, FileName = GetViewName() + "-" + DateTime.Now.ToShortDateString() + ".pdf"
}; ,
but in this way the .pdf will be automatically downloaded. Is it possible to set the .pdf name and not downloading it?
Thanks!