Announcement

Collapse
No announcement yet.

How to generate a 'line-by-line' PDF report?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to generate a 'line-by-line' PDF report?

    I need to generate a PDF for Questions Answer form (where each question can have multiple answers)
    What i can select from PDF option are just 'Records per line' or 'Records per page' and both doesn't give me expected result.

    'Records per line' - it generated questions and answers overlapped on each other
    'Records per page' - each page only generate one question where left a big blank space below
    Plz check my attached zip reports

    What i am looking for, the print point will smart enough to print each question-answer on line below, and if reach below page, it will break into new page. So possible each page have more questions and some have lesser (if the question is too long)

    How can i achieve the requirement mentioned above?
    i visited the examples under
    http://www.scriptcase.net/scriptcase-samples/ and yet i dont see a suitable one.


    Thanks
    Attached Files

  • #2
    If i have 10 questions and each question could have an image (may not) attach, each image could have different height
    How could i set Y position for next line after the image?

    you can check the attached report in my previous post, the image X, Y are static and the next line eventually overlapped with the image.

    i checked the API http://www.fpdf.org/en/doc/index.php
    It seems like there is no 'get-attached-image-height' method and it can't tell how far the gap to print next statement
    Last edited by weilies; 08-03-2014, 01:29 AM.

    Comment


    • #3
      Originally posted by weilies View Post
      If i have 10 questions and each question could have an image (may not) attach, each image could have different height
      How could i set Y position for next line after the image?

      you can check the attached report in my previous post, the image X, Y are static and the next line eventually overlapped with the image.

      i checked the API http://www.fpdf.org/en/doc/index.php
      It seems like there is no 'get-attached-image-height' method and it can't tell how far the gap to print next statement
      I don't know if it will help you, but I integrated tcpdf because I needed a more advanced html2pdf function. In fact you only need to do an include of the library to get it working. So if you find a lib with a better solution then don't hang on to the old and obsolete fpdf... There are other libs with pdf within sc now, but they are *huge* and it would be great if sc would get rid of them...
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        i hope someone could tell me how JasperReport work with SC, i am cracking my head with JasperServer, Library and Studio where i found it over complex.
        My objective is to find a complete doc suite which can design as WORD, RTF, EXCEL and export end result as DOC, DOCX, XLS, XLSX, PDF, HTML (something similar to XML Publisher + Peoplesoft coz i came from that background)

        i really dont kneen to set XY position everytime to generate a report

        Comment


        • #5
          hi Albert,

          If possible, could you provide a step by step how to get TCPDF work 'inside' SC PDF which is developed based on FPDF?

          Appreciate in million

          Comment

          Working...
          X