Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Repeating PDF form fields

As a first shot at using PDF form fields I took a report and placed a form field on the detail band. The resulting PDF document now has an editable field on the first detail only. I realise that I have a report rather than a form. I may have to rewrite this report as a form with non-repeating fields but was wondering if there is another way to get all repeating fields active in my current report?

Comments

  • Hi Martin,

    As a quick test with RB 19.01 I placed a form field in the detail band of a simple report and it exported the editable form field to every detail band printed.

    Is your report connected to any data? By default all reports not connected to data will only print a single detail band unless the AutoStop property is set to False. Note that a report with AutoStop set to False with no data will run indefinitely. Use the PageCount property to avoid this.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Nico,

    It looks like I did set something up wrong. However I now see that typing test in the first field duplicates the text in all details bands. Is this expected behaviour?

    Martin
  • Hi Martin,

    Which PDF viewer are you using? In my testing (with my test PDF I created earlier) and Adobe Acrobat DC, altering the text of the first form field does not have an effect on the other form fields.

    If you are referring to the initial text entered from within ReportBuilder repeating for each detail band, this is normal behavior. Similarly if you place a static label with the caption "Test" in the detail band, it will be duplicated for each detail printed.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Nico

    This repeating behaviour occurs when I set FieldTitle on the form field. I don't need a FieldTitle so am now very happy with the results.

    Thanks for your assistance

    Martin
  • Weird, I had this problem appearing always when I put the FieldTitle out from an exact field. I tried then to open it with another form building tool, a primitive one https://online-form-builder.pdffiller.com/ yet it worked out there and only there. Adobe Acrobat, Master PDF couldn't layout the form in a right way. But even if the form filled with PDFfiller tool and saved as a new file, the issue remains
  • The issue Mr. Lawrence was having was due to the FieldTitle property being set for a form field in the detail band of a report. Some PDF viewers check the form-field Title property and duplicate the data if the title is the same for multiple fields.

    The FieldTitle should only be used when post processing of the PDF document is necessary. If not, it should be left blank. I will add it to our list to enhance this to create a unique field title for labels in the detail band if desired.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.