# A second print button on a browse always prints the first record, not the highlighted one

**URL:** <https://forums.softvelocity.com/t/a-second-print-button-on-a-browse-always-prints-the-first-record-not-the-highlighted-one/794>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 9, 2026, 1:23am UTC](https://forums.softvelocity.com/t/a-second-print-button-on-a-browse-always-prints-the-first-record-not-the-highlighted-one/794 "2026-11-09T01:23:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 1:23am UTC](https://forums.softvelocity.com/t/a-second-print-button-on-a-browse-always-prints-the-first-record-not-the-highlighted-one/794/1 "2026-11-09T01:23:07Z")

</div>

**Applies to:** ABC chain; posted in the Clarion 5.5 EE group (one poster signs "C5ee ABC").

**Problem**

A browse needs two print buttons, each printing a different report. The Print Button template served for one. A standard button calling the second report procedure always printed the first record in the browse, not the highlighted record.

**Solution**

1. Use a regular button that calls the report procedure, with Initiate Thread NOT checked.
2. In the report procedure set the range limit to Current Value. It then prints the highlighted item's data only. The original poster tried this, reported "Works fine now", and said he had also been initiating a thread.
3. Alternative: in the second button's embed do a `Access:File.Fetch(uniqueKey)` to get the current record, copy its key into a global (`glo:number = pre:number`), call the report, and in the report filter use `pre:number = glo:number`.
4. Alternative: START a thread for the report and pass the record's primary key as a parameter.

**Caveats**

- A poster explained why the thread mattered: a report procedure that opens its own thread starts reading the file from the start, which gives the first record. Another replied that a thread works if you pass an ID and Fetch it.
- The thread names no template prompt text beyond "Initiate Thread" and "range limit = Current Value".
- Only the first option was reported back as working.

**Today (2026)**

Likely unchanged, as these are ordinary procedure and range-limit settings; not re-tested.

**Sources:** Ben M. (Nov 2001, the question), Eric J., Louis A. (Nov 2001), Andres S., Steve P., Tom R. (Nov 2001) in softvelocity.products.c55ee.
