Results 1 to 2 of 2

Thread: Print Article as PDF for paginated reports

  1. #1
    New user
    Join Date
    12-21-09.
    Posts
    10

    Default Print Article as PDF for paginated reports

    Hi,

    We have paginated reports based on some catalogs and we use catalog extensions to populate them on front end. Some reports are generated using custom modules (extended from catalog module) with basic pagination. We also have a setting for the end user to change no. of items being displayed in the front end. This all is working fine.

    In the PDF all content for pagination, filter and sorting modules is also included. To overcome this, we used "printArticleAsPdf " hook and removed the un-necessary "divs" for filter, sorting and pagination from the content being sent to PDF.

    The problem that we are facing now is, if we select 20 items per page and select "Print Article as PDF", only the records that are present in the visual context are included in the PDF.

    Can we have a solution to get all the records returned by the query to be sent to PDF irrespective of pagination being active. Any valuable input or suggestion might point us in the right direction.

    Thanks,
    Ajay

  2. #2
    New user
    Join Date
    12-21-09.
    Posts
    10

    Default Re: Print Article as PDF for paginated reports

    Hi,

    We attained the objective. Don't know whether its the right way to do it, but it solved our purpose.

    We introduced a link on the page (custom HTML), which self submits with a get parameter. We captured the get parameter in the module code that generated the report. Based on the get parameter, removed the pagination limits from the query and sent the content obtained after query execution directly to the PDF generator module.

    So, the "Print Article as PDF" retains its native behavior and the new link "Print Report" gives a complete report irrespective of the pagination.

    Hope this information helps.

    Regards,
    Ajay

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •