PureJS 인쇄 매수 설정
페이지 정보
작성자 윤현빈 작성일 2024-04-17 17:07 조회 37회 댓글 0건본문
관련링크
안녕하세요,
프린트 매수를 스크립트에서 설정 후 사용해야하는 부분이 생겨 문의드립니다.
프린트 매수를 스크립트에서 설정할 수 있는 방법이 있나요?
현재 아래와 같이 사용중입니다.
async function onLoad() {
const viewer = new ActiveReports.Viewer("#root");
const data = await loadData();
const report = await loadReport();
report.DataSources[0].ConnectionProperties.ConnectString =
"jsondata=" + JSON.stringify(data);
viewer.open(report);
}
async function loadData() {
var ReportParams = new Array;
...
ReportParams.push(...);
const data = ReportParams;
return data;
}
async function loadReport() {
const reportResponse = await fetch(
"/json/...rdlx-json"
);
const report = await reportResponse.json();
return report;
}
# 뷰어에 옵션을 추가해봤으나 작동하지 않습니다.
const viewer = new ActiveReports.Viewer("#root", {
options: {
printerSettings: {
// 인쇄 매수 설정
copies: 2 // 원하는 인쇄 매수로 설정합니다.
}
}
});
확인 후 답변 부탁드립니다.
감사합니다.
댓글목록
등록된 댓글이 없습니다.