자바 스크립트 용 ArcGIS API를 사용하여 PDF 보고서를 표시해야하는데, ArcGIS 서버에서 보고서를 작성했기 때문에이 API를 사용하고 있습니다.JavaScript 용 ArcGIS API - 인쇄 작업이 수행되지 않습니다.
JS 코드 : 저는는 ArcGIS에서 온 응답을 분석하고 있습니다 때문에이 printReport 방법을 실행하면
function printReport(){
var printTask = new PrintTask({
url: ptReport,
mode: "async"
})
var template = new PrintTemplate({
format: "pdf",
exportOptions: {
dpi: 96
},
outputSize:[800, 1100],
layout: "",
layoutOptions: {
titleText: "",
authorText: ""
}
});
var params = new PrintParameters({
view: view,
template: template,
extraParameters: {
"pPerdidaCablesConectores" : "1 dB",
"pOtrasPerdidas" : "0 dB"
}
});
printTask.execute(params).then(sendRequestPrint, showError);
}
function sendRequestPrint(data){
console.log(data.value); //it always is void
}
그것이 사실, 보고서는 서버에 생성되고, 잘 작동, 나는 그것을 알고 서버 : sendRequestPrint 방법이 runned 때
이 시점에서 모든 잘 작동하지만, 응답은 항상 무효 온다.
보고서가 생성되었는지 여부가 응답에 포함되지 않은 이유는 무엇입니까?
Pls가 직접 답변을 게시하는 대신 올바른 답을 표시합니다. 감사 –