USB OTG cable and printing on HP All-In-One Printer from Android

I wonder why we need to route printing activities over Cloud Print to print on a printer installed at home. Fortunately, I have an HP F735 deskjet printer which does not have wireless printing capability and I need to print from an Android phone to it. The only way was to use a USB OTG … Continue reading USB OTG cable and printing on HP All-In-One Printer from Android

How to view XPS file created on Microsoft Windows in Linux

Method 1: The okular application in KDE allows you to open and view XPS files created on Microsoft Windows. You can then print the file from okular. Method 2: However, if you want another method, where you do not have to install KDE and it's several libraries, you can follow the steps below: $ sudo … Continue reading How to view XPS file created on Microsoft Windows in Linux

Use JTextPane in Java with HTML to print reports

We are all familiar with the Java Swing class JTextArea. Java also has a method called print associated with the JComponent class that can be used to print a JTextArea contents onto a printer. JTextArea jt = new JTextArea();┬ájt.setText("whatever text you desire"); jt.print(); The above code segment will print the contents of the JTextArea jt … Continue reading Use JTextPane in Java with HTML to print reports

How to print a date in the default JTable.print() header and setup the page

After a struggle, managed to figure out that the MessageFormat is not that complicated at all. All I wanted was to print a heading on each page of the JTable with the current date in it. The heading was to read "Report as on " + today's date. Here is how I accomplished the task. … Continue reading How to print a date in the default JTable.print() header and setup the page

Print Options for Transaction Statement in Gnucash

Printing transaction statement from Gnucash can span several pages. Found this to the most efficient: In transaction report -> options -> display tab, put a check against the following check boxes: Date, Num, Description, Other Account Name, Running balance. In transaction report -> options -> sorting tab, put a check against the following check boxes: … Continue reading Print Options for Transaction Statement in Gnucash