Class PrintUtil


  • public class PrintUtil
    extends Object
    Some printing utility methods
    Since:
    8.6.1
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • PrintUtil

        public PrintUtil()
    • Method Detail

      • printPreview

        public static void printPreview​(String title,
                                        String htmlContent)
      • printPreview

        public static void printPreview​(String title,
                                        com.smartgwt.client.widgets.Canvas canvas)
      • printScreenShot

        public static void printScreenShot​(String id)
      • printScreenShot

        public static void printScreenShot​(String id,
                                           String title)
      • printScreenShot

        public static void printScreenShot​(String id,
                                           String title,
                                           String printLabel,
                                           String closeLabel)
        Uses Javascript to take a screenshot of a canvas and prints it
        Parameters:
        id - identifier of the canvas
        title - title of the window
        printLabel - title of the print button
        closeLabel - title of the close button