| View previous topic :: View next topic |
| Author |
Message |
rajuvk
Joined: 02 May 2006 Posts: 10 Location: Kerala, India
|
Posted: Tue May 09, 2006 1:54 pm Post subject: Renerating reports in PHP-gtk applications |
|
|
I have been exploring the features of PHP-Gtk over the last few days, with some success. Since I have no experiance in developing stand alone applications the progress is very slow.
My new question is how can I generate printable reports in PHP-Gtk ?. Can I generate PDF out put ?. it seems that PDFlib is not to be included in the GNOPE distribution . Is there any other reporting tool that can be used along with PHP-gtk ?.
Regards,
Raju |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Tue May 09, 2006 2:27 pm Post subject: |
|
|
| Have a look at http://pecl4win.php.net - you will find the dlls for php there, including pdflib |
|
| Back to top |
|
 |
Mikey
Joined: 02 May 2006 Posts: 10
|
Posted: Tue May 09, 2006 8:28 pm Post subject: |
|
|
Even though it's not as powerful, you could use FPDF - it's a pure PHP PDF solution. I've used it a few times for projects, but not for a GTK app yet. Takes some playing with.
http://www.fpdf.org/ |
|
| Back to top |
|
 |
omis28ca
Joined: 26 Dec 2005 Posts: 11 Location: Fresno, CA
|
Posted: Tue May 09, 2006 10:26 pm Post subject: Printer Extensions |
|
|
It would be really nice to a have direct printing capabilities from PHP to windows. I have experimented with the PHP_PRINTER.DLL from Pecl but have found it difficult to create decent looking documents because of the limitations of the low level printing functions it provides. I am currently creating an RTF document template with embeded tags (%%TAG%%), I then parse the tags out and send the document directly to MS WORD through PHP's COM extension.
Heres the code i am using....
| Code: | //Print through MS WORD (win32 only)
try {
$word = new COM("Word.Application");
$word->visible = true;
$word->Documents->Open($filename);
$word->ActiveDocument->PrintOut();
$word->ActiveDocument->Close();
$word->Quit();
} catch (Exception $e) {
echo 'Error: ', $e->getMessage(), "\n";
} |
It works for now but direct access to windows printing would make PHP-GTK2 a lot nicer to work with for POS and SOHO apps.
[/code] |
|
| Back to top |
|
 |
|