When Printing, there are two options you can specify: Records Being Browsed or Current Record. Records Being Browsed prints the entire found set of records so this should enable you to print all 10 records in one print job if they are all to be printed from the same layout. (Create your records in the loop, then use a single Print step after you exit the loop).
Preview Mode always assumes the "records being browsed" option so you'll see the first record in your found set previewed insted of the current record. You can click the book control to page through the previewed report to get to the current record and you may be able to use Go To Record/Page/Request to advance the previewed report to the current record if you can determine which page will contain the current record. (Not always possible as you may have layouts that use sliding fields)
IYou can also isolate the current record in a found set of one record and then your preview will show the current record that way as it is now the only record. In your case, that could easily be done if you performed a find for the new record instead of a quick find. (You can also set up a completely empty found set before creating new records and then your found set will only contain the new records your script contains.)
Here's a way to produce an empty found set that works reliably in networked environments:
Enter Find Mode
Set Field [NCR Log::NCR Number ; -1] //I'm assuming no record will ever have -1 in this field
Set Error Capture [on]
//now put your code here to create and print your new records.
1st Phil Thanks for the help
I see what the plan is but it wasn't working. After some attempts I found that entering the find mode, setting the field to -1 or other value, then doing the perform find was sending the error "not a valid find request" and was not producing an empty found set but is reverting to all records shown. I next tried putting the -1 value in the ENTER FIND MODE command and removing the set field command and that seemed to work for both the single and the set of 10. Now that I think about it, the NCR Number field is set on record creation and cannot be modified by the user, so I guess that is why the set field didn't work.
Chances are you had the -1 in the wrong part of the set field step. The validation rules you've set for this field should not prevent set field from entering the criteria in this fashion. If it did, your Enter Find Mode alternative would have tripped the same error.
Since the error message indicated that there wasn't any valid criteria entered, I would guess that your set field step looked like this:
Set Field [NCR Log::NCR Number [-1]]
instead of like this:
Set Field [NCR Log::NCR Number ; -1]