replace tag with "",tag2 with ""in your application in order to remove the printer environment? Reports included in a exe are readonly, I think. That's why you the command fails. You only need to remove the printer enverironment once. So if you've done that before you build the exe, you don't need to issue that command in your application (exe).
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature