无预览打印

ActiveReportsJS反对无预览打印,就是报表不预览,间接调用web端打印,间接点击打印按钮就能够打印报表。效果图如下

ActiveReportJS Viewer 提供了打印 按钮 ,当报表加载实现后,可点击打印按钮进行报表打印。 除此之外,Viewer提供了 打印办法API。

1、一键打印报表

ActiveReportsJS 提供了一键打印的 API ,即在不预览报表状况下,能够间接打印,代码示例:

import { Core } from "@grapecity/activereports";const report = new Core.PageReport();await report.load("/reports/text-only.rdlx-json");const doc = await report.run();doc.print();