I have generated graphs in my rails project, and i would like to add ‘print page’ option so that i can have the hardcopy of the graph. My page contains tabs,header,footer, but i would link to print only the graph protion.
So, please advise me how to go about it.
i have used following code to print page,
<%=link_to_function("Print this Page", "javascript:print()")%>
thanks
Take a look at CSS print stylesheets (on StackOveflow).