>I have a weird situation.
>I have a commandbutton to print the receipt, all the coding is in the thiscmdbutton.click
>
>If I click it with mouse, everything is good.
>
>If I use keyboard (hotkey), it only prints one item instead of the whole list, wrong result.
>
>If in the coding, I add:
>
>select invoice_item
>browse normal
>
>then everything is good
>
>But I cannot have browse in the program, is there 'silent browse' or any command can fix this?
>
>Thanks for the help.
>
>Jerry Yang
Make sure that the grid doesn't have focus when the report starts. IOW someotherobject.setfocus().