This topic is locked

PDF

2/23/2009 1:06:48 PM
PHPRunner General questions
G
garethp authorDevClub member

Hi
Wonder if there is anyone who can help on this...
I have a purchase order system that uses two tables purchase_header and purchase_details.
I want to have a link (or something) to press on the header list that creates a nice pdf that a user can save or print.
How can I do this? I have tried exploring the pdf view option but never manage to get very far.
Can anyone help - this is the only thing that I don't find very easy to phprunner.
Gareth

Sergey Kornilov admin 2/23/2009

Gareth,
enable 'PDF view' option in PHPRunner. While on order details page users can click 'Printer-friendly' and save it as PDF.
Is that what you looking for?

G
garethp authorDevClub member 2/23/2009

Sergey
Thanks for repsonse. This may be what I am looking for but I have a couple of questions...

  1. I can see the pdf are stored in the templates_c folder and the link looks into here. Will these pdf's ever get removed from here (not sure how but worth asking) or just keep building up? Could end up quite large!
  2. Instead of being put into this templates_c folder - could they be put somewhere else and with a specific file name depening on the record being viewed? eg order 1234
  3. I need to bring in some info from a 'company' table that is the name and address of the company raising the order. I do not want to manually add this using visual editor but pull the info from the company table so if any changes are made this is applied to all purchase order, invoice etc pdf's automatically. Can this be done - this table is not in the sql statement of the master or details. There is only ever one record in this company table.
    many thanks
    Gareth