C# Class jsreport.Local.LocalReportingService

Direct rendering inside server-less local jsreport
Inheritance: ILocalReportingService
ファイルを表示 Open project: jsreport/net Class Usage Examples

Public Methods

Method Description
Initialize ( ) : void

Decompress the jsreport.zip and copy server.js and prod.config.json from jsreport/production folder

Render ( object request ) : Report

Complex rendering, see the

Render ( string templateName, object data ) : Report

The simpliest rendering using template name and input data

Private Methods

Method Description
CopyFilesRecursively ( DirectoryInfo source, DirectoryInfo target ) : void
Decompress ( ) : void
DeleteDirectoryContent ( string path, bool skipMainDir = true ) : void
IsWebApp ( AppDomain appDomain ) : bool

Method Details

Initialize() public method

Decompress the jsreport.zip and copy server.js and prod.config.json from jsreport/production folder
public Initialize ( ) : void
return void

Render() public method

Complex rendering, see the
public Render ( object request ) : Report
request object Complex dynamic rendering request. See the API dialog in jsreport studio for details
return Report

Render() public method

The simpliest rendering using template name and input data
public Render ( string templateName, object data ) : Report
templateName string template name can be taken from jsreport studio or from folder name in VS
data object any json serializable object
return Report