Usage
npm i @icreate/ics-chromely-plugin-report-js-sdk
Features
0.0.4 增加预览准备报表ShowPrepared
0.0.3 将注册数据源数据转为为json字符串
Importing library
You can import the generated bundle to use the whole library generated by this starter:
import ReportHelper from '@icreate/ics-chromely-plugin-report-js-sdk'
ReportHelper
load(fileName: string): Promise<any>
loadFromId(reportId: string): Promise<any>
clearData(): Promise<any>
registerData(name: string, data: Array<any>): Promise<any>
doublePass(value: Boolean): Promise<any>
prepare(append: Boolean): Promise<any>
addParameter(name: string, value: string): Promise<any>
design(): Promise<any>
show(): Promise<any>
ShowPrepared(): Promise<any>
print(printerName: string): Promise<any>
ExportToPdf(fileName: string): Promise<any>
exportToHtml(fileName: string): Promise<any>
dispose(): Promise<any>
示例
reportHelper.load('xxxx.frx')
reportHelper.clearData()
reportHelper.registerData('患者基本信息',[{ id:"1",name:"张三"}])
reportHelper.design()
reportHelper.show()
reportHelper.print()