
Originally Posted by
Lawbird123
I got up to page 20 of this thread and figured I'd stop and just ask the question...
When you click on Print Forms the invoices you choose come up in a browser window in individual frames. In order to print a full invoice, at least in Firefox, resize the frame of every invoice and then print. According to the README file all you had to do was click the button and press print, but if I do that then I get one page of the letterhead for my invoices repeated all down the page. The README states that PDF formatting is planned for a future release. Is there an easier way to print these invoices? If not, when can we expect PDF formatting?
Other than that, this is an amazing mod... great job!
hey I just came up w/ a solution for the fire fox view thing, and I frame in stead of a frame.
in admin/super_batch_forms.php, add
PHP Code:
foreach ($batch_order_numbers as $order_number) {
$iframes .= "\t" . '<iframe height="500" width="100%" src="' . $target_file . '?oID=' . $order_number . '"></iframe>' . "\n";
if ($num_copies > 1) {
for ($i = 1; $i < $num_copies; $i++) {
$iframes .= "\t" . '<iframe height="500" width="100%" src="' . $target_file . '?oID=' . $order_number . '">' . "\n";
}
}
}
around line 383
and below in the mark up you may want to just over write lines 405 -420 to look like
PHP Code:
<body>
<?php
echo $iframes;
// echo $frame_set_start;
//echo $frames;
//echo $frameset_end;
// debug
/*
echo "Sessions: <pre>";
echo 'order numbers:';
print_r($batch_order_numbers);
echo "</pre>";
*/
echo '</body></html>';
you can then very easaly pring the orders in to pdf's by maeking a printer stule sheet for this page.
JOsh
Bookmarks