This topic is locked

Custom Print button on view page to print QRCode

2/5/2014 2:47:26 PM
PHPRunner General questions
A
Abul author

I have ord_view.php page where I can show QRCode for an order number. I would like to print this ord_view.php page with QRCode image. I understand, current PHPR has not optimized to print QRCode rather than view only.
Problems are below:

  1. If I use PHPR "PDF View" option for my view page then QRCode does not show up. However, if I use this method to print the view page then no images are printed including QRCode, and other built-in form buttons ( i.e. "Back to List", "Edit", etc).
  2. If I use custom button to print my view page rather than PHPR PDF View option, then I can print the whole view page with all records and images including QRcode and other built-in form buttons. However, I want to print all information from the view page including QRCode image but not other built-in form buttons.
    How can I acheive this. Could you please help me out? Thanks in advance.

Sergey Kornilov admin 2/6/2014

QRCode plugin implemented in Javascript, this is the reason it only works on the View page. We will add the support for Javascript View plugins on the Printer page but export to PDF may not possible at all until someone develops an image-based version of plugin.
In regards to hiding certain controls for printing on View page check CSS media types, specifically @media print

http://www.w3schools.com/css/css_mediatypes.asp