No announcement yet.

Print two reports using one print button

  • Filter
  • Time
  • Show
Clear All
new posts

  • Print two reports using one print button

    I have a unique situation where I have a complex pdf report with static fields/columns and a grid report with dynamic columns / rows. The first I created in the scriptcase pdf generator, the second I created using the user-defined grid. Currently to run these two reports the user has two buttons, one to run the pdf, the other to run the grid. Is there any way to combine this? Like a one button prints both option, or is there a way to add the grid report (which contains multiple grids multiple tables into one report) to automatically print with the pdf? I tried adding new fields but with the pdf everything is static and I need it to be dynamic. I tried recreating the complex report in html and adding it to the user defined grid but that looked awful and didn't fit to the page settings. The pdf version is much cleaner.
    Any ideas?

  • #2
    to create dynamic reports, a view showing all your fields would be ideal, create a search in pdf from this view (you create the pdf on the table, but you look for your results in your view), then you create conditions in your pdf that will work based on your search fields, tcpdf is excellent for all this, it works very well for me, obviously it is not always easy, but quite possible,
    good luck


    • #3
      good morning
      I also have the same problem or at least very similar
      I have to print a page with customer data and a second print with a series of pages based on the records that the customer inserts.
      It is not an invoice since the records are of three different archives.
      The first archive must be printed as a page and the rest with a record and its sub-records
      I have prints on two pdf reports but if I create a button with
      calls (sc_redir) to the two prints only print the first one
      So I made two buttons, very bad
      If you have suggestions
      Thank you


      • #4
        put the code of the 2 buttons in one button.


        • #5
          Ok I do so, but is very terrible and the user don't understand becaiuse there is two buttons insted one such as other applications


          • #6
            after putting the code of the two buttons into a thrid one, you must hide these using css. So in that case users only see the 3rd button