1. Install for Magento¶
- Activate magento caches in System - Cache Management, then unzip the archive and upload it to your remote web site.
- Once all files are uploaded, you have to refresh magento caches.
- Once it’s done, log out and login again into your admin panel ( in order to reset Magento permissions ).
2. Install for your computer¶
On Windows 7,8 or 10, please remember to replace “Program Files” into “Program Files (x86)”
First of all, you need to copy the directory “MagentoClientComputer For Windows” from your unzipped file to anywhere on your PC.
Now to use MagentoClientComputer.exe properly, you must install a PDF reader software (many are free on the web).
Here is the process in 3 steps :
- Download / install the PDF Reader (for instance Foxit Reader)
- Configure the printer
- Edit the file pref.xml
We will take Foxit Reader here as an example, since that is a free, quick and light PDF report.
1 - Download / install Foxit Reader¶
Download Foxit reader from : http://www.foxitsoftware.com/downloads/ , then install it on your computer.
2 - Configure your printer¶
Open a recorded PDF, then press “print settings”.
In the new window tick the option for “auto resize” , or “fit to size”.
Save the window and close it.
3 - Edit the file pref.xml¶
The pref.xml file is located in the directory used to unzip the “MagentoClientComputer For Windows”
First of all, find out the path to Foxit reader.exe, copy / paste it into Notepad, add Foxit reader.exe to read something like
C:/Program Files/Foxit Software/Foxit Reader/Foxit Reader.exe
Then in pref.xml, edit the following line, by pasting the copied path to read exactly
<pref name="print_command" value=""C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe" /p "$fileName"" />
Erase any letter / caracter which are not showing here.
Now save the file.
Congratulations, the installation is over !
Print on a non-default printer¶
If you want to be able to choose another printer :
- Replace /p by /t
- Add your printer name in the print command line
<pref name="print_command" value=""C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe" /t "$fileName" "HP LaserJet Pro"" />
Replace HP LaserJet Pro with your printer name
Print on a remote network printer¶
<pref name="print_command" value=""C:\Program Files (x86)\Foxit Software\Foxit Reader\FoxitReader.exe" /t "$fileName" \\192.168.0.160\HP LaserJet Pro" />
Replace 192.168.0.160 with your printer IP address, and HP LaserJet Pro with your printer name.