I am trying to open the pdf at the nameddest-- The bookmark I created using Adobe Acrobat Pro. I tried with the pagenumber, the same code but page instead of nameddest. It works just fine (Abode Acrobat Reader opens the pdf at specific page). However, it doesn't work with nameddest. It just opens the first page. I was wondering if the parameter.format() is the correct formatting to pass on ShellExecute?? Would appreciate if someone has any idea. If not, any better alternative ideas I can try instead of ShellExecute()??
CString readerPath = "\"" + path + "\""; // path for PDF to read
CString szNamedest = "Help";
CString parameter;
parameter.Format("/n /A \"nameddest=%s\" %s", szNamedest, readerPath);
//parameter.Format("/n /A \"page=27\" %s", readerPath); //this works just fine
//acrobatpath is the path for acrord32.exe
ShellExecute(NULL, "open", acrobatpath, parameter, NULL, SW_SHOWNORMAL);