Table of Contents
ResultAsDownload Property

Gets or sets a value indicating whether to send the result as a file download.

Syntax
 public static Boolean ResultAsDownload { get; set; }
Remarks

By default this property is true, in that case the result PDF file is sent to the client as a file download. You can use ResultFileName to specify the download file name.

Note this property is only used when RenderAsPDF is manually called. When RenderAsPDF is automatically called, you should use RenderAsPdfAttribute.ResultAsDownload instead.

See Also