Tag Archives: printing

Changing orientation via a stylesheet

This magic CSS code is able to change the orientation of the printed page: @page port {size: portrait;} @page land {size: landscape;} .portrait {page: port;} .landscape {page: land;} For more information, take a look to the CSS Print Profile specification … Continue reading
Posted in English Content, Knowledgebase | Tagged , , , , | Comments Off on Changing orientation via a stylesheet

Java Session Fancy Printing

    public static final String convertToString(HttpServletRequest request) {        StringBuffer msg = new StringBuffer();        try {             msg.append("*RequestURI:" + request.getRequestURI() + "\n");            msg.append("*ContentType:" + request.getContentType() + "\n");             msg.append("== Request Header\n");            Enumeration headers = request.getHeaderNames();            while (headers.hasMoreElements()) {                String headerName = … Continue reading
Posted in English Content, Legacy ObjectsRoot.com | Tagged , , , , | Comments Off on Java Session Fancy Printing