Taking a screenshot on the stand alone game.

I am attempting to code a way a player can take a screenshot of what the camera is showing and while I have found the Application.CaptureScreenshot it seems fine when I’m play testing the game but when I’m running the stand-alone it doesn’t work.

Am I missing something here or do I need a different type of method/code (I apologize, I’m still learning the technical terms) to take a screenshot on the stand-alone?

Thanks

from docs:

Thanks for the reply, when I said stand alone I meant the exe file on my computer. In this case is the web player and the exe file on a pc the same thing?

Ok, please read this Application.CaptureScreenshot - Unity Engine - Unity Discussions
So, do you use Application.dataPath or just hard-code the path to the screenshot?