C# Class PdfRpt.Core.Helper.SoftHttpContext

This class has not a hard reference to the System.Web assembly. So it can be called from the `.NET client profile` library.
ファイルを表示 Open project: VahidN/PdfReport

Public Methods

Method Description
FlushInBrowser ( string fileName, byte fileData, FlushType flushType = FlushType.Attachment ) : void

Flushes the fileData into the user's browser. It's designed for the ASP.NET Applications.

Private Methods

Method Description
addHeaders ( string fileName, long fileLength, object response, FlushType flushType ) : void
clearResponse ( object response ) : void
getCurrentHttpContext ( ) : object
getCurrentResponse ( object context ) : object
responseEnd ( object response ) : void
setBufferTrue ( object response ) : void
setContentType ( object response ) : void
setNoCache ( object response ) : void
writeToOutputStream ( byte fileData, int fileLength, object response ) : void

Method Details

FlushInBrowser() public static method

Flushes the fileData into the user's browser. It's designed for the ASP.NET Applications.
public static FlushInBrowser ( string fileName, byte fileData, FlushType flushType = FlushType.Attachment ) : void
fileName string name of the file
fileData byte byte array containing the file's data
flushType FlushType How to flush an in memory PDF file
return void