Programmatically Opening the Standalone Viewer

When I run the line

clickData.func.command.RunCommand "Show VIEWERCMD=(""open,""Anna Friel - Photoshoot by Mike Owen in 2009_2A.jpg"")"""

in a VB Macro I am trying to develop the picture opens in the viewer fine.

However when I store the filename in a variable called pathbo and run this line

clickData.func.command.RunCommand "Show VIEWERCMD=(""open,""pathbo"")"""

The image does not open in the viewer

I have double-checked the value of the pathbo variable andit is correct.

Also could you tell me where in these statements I would insert the new command POS 0,0?

You aren't using the pathbo variable in the command. You've just put the literal text "pathbo" into the command, the same way you did with the hardcoded file name.

You can debug things like this by using DOpus.Output to print out the command line you are generating to see what you're running. If you do that, you'll see the command line says "pathbo" and not whatever the value of pathbo is.