Play VCD in VLC Player in Ubuntu Get link Facebook X Pinterest Email Other Apps May 15, 2013 Type this command to play vcd in vlc palyer in ubuntu. vlc vcd:///dev/sr0 Get link Facebook X Pinterest Email Other Apps Comments
Appending hyperlink into Docx file using docx4j library March 23, 2012 Download docx4j library. filepath = valid path to .docx file url = hyperlink to append into end of the file public boolean appendUrlDocx() { try { File inputFile = new File(filepath); WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(inputFile); // Create hyperlink P.Hyperlink link = createHyperlink(wordMLPackage, url); // Add it to a paragraph org.docx4j.wml.ObjectFactory wmlFactory = new org.docx4j.wml.ObjectFactory(); org.docx4j.wml.P paragraph = wmlFactory.createP(); paragraph.getParagraphContent().add(link); wordMLPackage.getMainDocumentPart().addObject(paragraph); // Now save it wordMLPackage.save(inputFile); return true; } catch (InvalidFormatException ex) { ex.printStackTrace(); return false; } catch (Exception ex) { ex.printStackTr... Read more
Simple Invoice Creation With Jasper Report April 03, 2012 <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="invoicePdf" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="30" rightMargin="30" topMargin="30" bottomMargin="50"> <property name="ireport.zoom" value="1.5"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="140"/> <property name="ireport.callouts" value="##Fri Mar 30 16:17:30 NPT 2012"/> <style name="table"> <box> <pen li... Read more
Dynamic Image in Jasper Report August 08, 2012 jrxml content <image> <reportElement x="5" y="5" width="200" height="90"/> <imageExpression class=" java.awt.Image "><![CDATA[$P{logo}]]></imageExpression> </image> Java Code to convert image from URL into BufferedImage URL url = new URL("http://localhost/image/image.jpg"); // Read the image ... InputStream inputStream = url.openStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int n = 0; ... Read more
Comments
Post a Comment