Loading ...
Sorry, an error occurred while loading the content.
 

Print Button in a GD Library

Expand Messages
  • syam mohan
    Hai Friends.. I am New Bie to GD Library. I made a bar graph using GD library. Now i want a print button at the below of the Graph. Is there any solution to
    Message 1 of 2 , Jun 18, 2008
      Hai Friends..
      I am New Bie to GD Library. I made a bar graph using GD library. Now i want a print button at the below of the Graph. Is there any solution to place this button, because the usual Cannot mdify header info is showing always, when i tried to place a button. Is there any method for this.
      Thanks ....
      Syam


      Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

      [Non-text portions of this message have been removed]
    • C S Shyam Sundar
      Yes., it is very easy You need to call the php that generates the bar chart in img tag. Eg: Assuming., you have the script which generates bar chart as
      Message 2 of 2 , Jun 18, 2008
        Yes., it is very easy

        You need to call the php that generates the bar chart in img tag.

        Eg:

        Assuming., you have the script which generates bar chart as bar-chart.php.

        If you want a print button., have a new php file, in that add like this.

        <img src=bar-chart.php>

        <input type=button onClick="print()">


        --
        C S Shyam Sundar

        [mobile] +91-97877-SHYAM | [voip] +1-425-998-1134

        "It's easy to tell the difference between right and wrong. What's hard is
        choosing the wrong that's more right."


        On Wed, Jun 18, 2008 at 3:24 PM, syam mohan <syammohan_ch@...> wrote:

        > Hai Friends..
        > I am New Bie to GD Library. I made a bar graph using GD library. Now i want
        > a print button at the below of the Graph. Is there any solution to place
        > this button, because the usual Cannot mdify header info is showing always,
        > when i tried to place a button. Is there any method for this.
        > Thanks ....
        > Syam
        >
        > Unlimited freedom, unlimited storage. Get it now, on
        > http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
        >
        > [Non-text portions of this message have been removed]
        >
        >
        >


        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.