PureJS PDF 병합관련 추가질문
페이지 정보
작성자 wildlife 작성일 2023-04-20 15:49 조회 458회 댓글 1건본문
첨부파일
관련링크
앞서 문의드린 pdf 병합 기능 관련하여 오류가 발생합니다.
report 로드 시 구문이 틀린데,
// report 불러오기
// const reportResponse = await fetch("./reports/"+reportFileName); <- 기존
// const report = await reportResponse.json();
const report = new GC.ActiveReports.Core.PageReport(); <- 변경
await report.load("./reports/"+reportFileName);
//런타임 바인딩
var i = 0
report.DataSources[i].ConnectionProperties.ConnectString = "jsondata=" + JSON.stringify(headRow) ; <- 오류 리턴
const pdfExportSettings ={
pageSettings :{size:'A4'},
pdfVersion: '1.7'
// comparess:true,
};
const doc = await report.run();
const result = await GC.ActiveReports.PdfExport.exportDocument(doc, pdfExportSettings);
result.download("exportedreport.pdf");
리포트 로드 구문을 변경하였는데, 바인드가 실패하고 있습니다.
도움부탁드립니다.