Hey all,
I wrote a simple script to graph values from my database using imagecreate, imageline, etc. This works great but I can't figure out how the client can print out the resulting graph. I don't want to screen grab <Prt Sc> since I don't want the browser window, only the graph.
Thanks for your help.
Printing dynamic Images
Moderator: General Moderators
Let me clearify one thing. When I try to print (File->Print) I get my HTML forms printed. The script starts off with forms to querie the client for what data to generate graphs from (Date, time etc.). The script is then resubmitted (PHP_SELF) and the graphing logic is activated. File -> Print results in the original HTML form page to print but the graph image is not printed. Could the imagedestroy be the cause? Maybe I need to delay this?
...I tried removing imagedestroy. Now the printer prints out an icon with a red X. Like you'd get while surfing and need to right click->Show Picture to download it. Any ideas? Sorry for for being a PITA.
...I tried removing imagedestroy. Now the printer prints out an icon with a red X. Like you'd get while surfing and need to right click->Show Picture to download it. Any ideas? Sorry for for being a PITA.
-
pootergeist
- Forum Contributor
- Posts: 273
- Joined: Thu Feb 27, 2003 7:22 am
- Location: UK