Question : Open in a shell Adobe Reader with a file name and a search value

In VB6 I call this without problems
'works ok
Shell "AcroRd32.exe /A OpenActions " & Chr$(34) & "j:\fac\2010.pdf" & Chr$(34), vbMaximizedFocus

But wit a search Adobe will open blank ,  no file and a error for the syntax used
What would be a correct syntax with a search value added
'will give error
Shell "AcroRd32.exe /A OpenActions " & Chr$(34) & "j:\fac\2010.pdf=nameddest=Box: 42046" & Chr$(34), vbMaximizedFocus

Answer : Open in a shell Adobe Reader with a file name and a search value

1. I think the target file and destination should be:
        "j:\fac\2010.pdf#nameddest=Box: 42046"
...notice the change to a "#" symbol.

2. Do you know that that the named destination exists?  I always troubleshoot these kinds of issues by going back to basics, plain vanilla.  Try executing a complete command from a command line.  Verify that works, then you should be able to know exactly how the Shell cmd should be built in your app.
Random Solutions  
 
programming4us programming4us