Exemple #1
0
 private void viewHelpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //IExplorerMg.RunIExplorerTool(FileMg.MapRelToAbsFilePath(Constants.HelpPageFilePath));
     try
     {
         object  pageNumber = 1;
         string  filePath   = FileMg.MapRelToAbsFilePath(Constants.HelpPageFilePath);
         Process myProcess  = new Process();
         myProcess.StartInfo.FileName  = "AcroRd32.exe";
         myProcess.StartInfo.Arguments = string.Format("/A \"page={0}\" \"{1}\"", pageNumber, filePath);
         myProcess.Start();
     }
     catch
     {
         MessageBox.Show("Failed to open pdf file. We need adobe reader to open the pdf file. Please make sure you have setup Adobe reader.");
     }
 }