2

I have a module for drupal 7 that generate reports. I want to print one of the reports with out drupal menus and footer. I want the report to be displayed on second page alone with view descriptive data? Please Help.

1
  • are you using any contributed module or using custom code to create report?
    – Cool
    Dec 3, 2013 at 13:32

3 Answers 3

1

You might want to check out the Print Module. I've used it successfully for print media in the past.

2
  • thanks for replay. but I want to integrate print functionality into my module rather than using other module
    – aladein
    Jun 6, 2012 at 13:12
  • Lester suggested a right module. This module will provide you to add your custom page template for your print layout. You can use it with your modules as well. Using this module if any path is prefixed with "print/" it will render content in print layout. print/mymodulepage OR print/node/1 etc. Jun 6, 2012 at 13:18
1

You should ask yourself if you really need/want to display the content on a separate page before printing it.

Providing a simple print style sheet in your theme with display: none for the regions that don't make sense when printed will work for all the pages on your site without the overhead of print module's approach

People that like to print things know their browser can print and will try it anyway whether you give them a print link or not.

0

You could use the Print Module. This module actually fixed the problem and performs the required functionality.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.