IDEMPIERE-4753 Make printing filename configurable - bug (#1278)

This commit is contained in:
PeterTakacs300 2022-04-05 04:37:46 +02:00 committed by GitHub
parent 5d15bcf3ff
commit d65acb3dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -1730,6 +1730,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
@Override
protected void doRun() {
try {
viewer.m_reportEngine.initName();
if (!ArchiveEngine.isValid(viewer.m_reportEngine.getLayout()))
log.warning("Cannot archive Document");
viewer.createNewMedia(PDF_MIME_TYPE, PDF_FILE_EXT);
@ -1767,6 +1768,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
@Override
protected void doRun() {
try {
viewer.m_reportEngine.initName();
if (!ArchiveEngine.isValid(viewer.m_reportEngine.getLayout()))
log.warning("Cannot archive Document");
viewer.createNewMedia(HTML_MIME_TYPE, HTML_FILE_EXT);
@ -1805,6 +1807,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
@Override
protected void doRun() {
try {
viewer.m_reportEngine.initName();
if (!ArchiveEngine.isValid(viewer.m_reportEngine.getLayout()))
log.warning("Cannot archive Document");
viewer.createNewMedia(EXCEL_MIME_TYPE, EXCEL_FILE_EXT);
@ -1842,6 +1845,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
@Override
protected void doRun() {
try {
viewer.m_reportEngine.initName();
viewer.createNewMedia(CSV_MIME_TYPE,CSV_FILE_EXT);
} catch (Exception e) {
if (e instanceof RuntimeException)
@ -1881,6 +1885,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
{
try
{
viewer.m_reportEngine.initName();
if (!ArchiveEngine.isValid(viewer.m_reportEngine.getLayout()))
log.warning("Cannot archive Document");
viewer.createNewMedia(EXCEL_XML_MIME_TYPE, EXCEL_XML_FILE_EXT);