There was an entire TNG episode (Season 6, Episode 12) whose plot centered around this:
spoiler
Moriarty was reactivated by mistake, and took the ship hostage, demanding to be able to leave the holodeck.
Geordi and Data spent half the episode experimenting with beaming (inanimate) holographic objects off the holodeck, to no avail. With that said:
spoiler
Their transporter turned out to be a holographic fake (and so was Geordi), so who knows if the results were valid.
My old boss actually thought it was a waste of time bringing everyone back as well. This was a big enterprise, all the RTO orders were coming down from the C suite and senior leadership.