|
|
@ -1904,31 +1904,15 @@ public class SuperXmlTabelle extends AbstractSuperXServlet { |
|
|
|
} |
|
|
|
} |
|
|
|
String rptContentype=request.getParameter("RPTContentype"); |
|
|
|
String rptContentype=request.getParameter("RPTContentype"); |
|
|
|
String rptPageFormat=request.getParameter("RPTPageFormat"); |
|
|
|
String rptPageFormat=request.getParameter("RPTPageFormat"); |
|
|
|
String rptPageFormatX=request.getParameter("RPTPageFormatX"); |
|
|
|
|
|
|
|
String rptPageFormatY=request.getParameter("RPTPageFormatY"); |
|
|
|
|
|
|
|
//X- und Y Werte haben höhere Prio, das ist flexibler:
|
|
|
|
|
|
|
|
if(rptPageFormatX!=null && !rptPageFormatX.equalsIgnoreCase("") |
|
|
|
|
|
|
|
&&rptPageFormatY!=null && !rptPageFormatY.equalsIgnoreCase("")) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
transformer.setParameter("seitenbreite", rptPageFormatX); |
|
|
|
|
|
|
|
transformer.setParameter("seitenhoehe", rptPageFormatY); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if(rptPageFormat!=null && rptPageFormat.equalsIgnoreCase("a4")) |
|
|
|
if(rptPageFormat!=null && rptPageFormat.equalsIgnoreCase("a4")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
transformer.setParameter("seitenbreite", "842"); |
|
|
|
transformer.setParameter("seitenbreite", "842"); |
|
|
|
transformer.setParameter("seitenhoehe", "595"); |
|
|
|
transformer.setParameter("seitenhoehe", "595"); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if(rptPageFormat!=null && rptPageFormat.equalsIgnoreCase("a3")) |
|
|
|
if(rptPageFormat!=null && rptPageFormat.equalsIgnoreCase("a3")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
transformer.setParameter("seitenbreite", "1191"); |
|
|
|
transformer.setParameter("seitenbreite", "1191"); |
|
|
|
transformer.setParameter("seitenhoehe", "842"); |
|
|
|
transformer.setParameter("seitenhoehe", "842"); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
transformer.transform(new javax.xml.transform.stream.StreamSource(s1), new javax.xml.transform.stream.StreamResult(myOutwriter)); |
|
|
|
transformer.transform(new javax.xml.transform.stream.StreamSource(s1), new javax.xml.transform.stream.StreamResult(myOutwriter)); |
|
|
|
if(rptContentype.equals("text/xml")) { |
|
|
|
if(rptContentype.equals("text/xml")) { |
|
|
|