Jump to content


Photo

need help in printing


  • Please log in to reply
7 replies to this topic

#1 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 28 May 2006 - 02:33 PM

hi..
hmm dont have any idea printing in php...
got this sample code printing in pdf but theres an error on it
error in pdf_new() ..something with pdflib...

what will i do?


or any other way in printing...

#2 perezf

perezf
  • Members
  • PipPipPip
  • Advanced Member
  • 301 posts
  • LocationFort Lauderdale

Posted 28 May 2006 - 02:55 PM

What are you trying to accomplish

#3 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 28 May 2006 - 03:45 PM

pdf created in php .....

like the "hello world" be put in pdf using php

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 28 May 2006 - 04:03 PM

We can't help with the minimal information you've provided. The best place to start would be to read the documentation on pdflib/pdf class you're using.

If/when you get an error, please post the complete error message you get.
Legend has it that reading the manual never killed anyone.
My site

#5 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 28 May 2006 - 05:14 PM

ok...
heres the error message...

Fatal error: Call to undefined function: pdf_new() in /home/daxavl/public_html/testing/pdf2.php on line 2

#6 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 28 May 2006 - 06:33 PM

Have you read [a href=\"http://ca.php.net/pdf\" target=\"_blank\"]the php manual[/a]'s page about PDF functions? One thing that jumps out is the very first example which refers to the function name as PDF_new not pdf_new. Maybe your problem's as simple as case sensitivity.
Legend has it that reading the manual never killed anyone.
My site

#7 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 29 May 2006 - 02:39 AM

have change pdf_new to PDF_new and still got the same error...

how can i install the pdflib to the hosting server?....

sorry for being so noob :D


#8 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 30 May 2006 - 04:09 AM

is there any other way print a report using php?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users