gnope php gtk gui gnope.org  

Renerating reports in PHP-gtk applications

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
rajuvk



Joined: 02 May 2006
Posts: 10
Location: Kerala, India

PostPosted: Tue May 09, 2006 1:54 pm    Post subject: Renerating reports in PHP-gtk applications Reply with quote

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

PostPosted: Tue May 09, 2006 2:27 pm    Post subject: Reply with quote

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

PostPosted: Tue May 09, 2006 8:28 pm    Post subject: Reply with quote

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

PostPosted: Tue May 09, 2006 10:26 pm    Post subject: Printer Extensions Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.