I Need to open a specific page of a pdf file.
I tried:
private void Button_Click_20(object sender, RoutedEventArgs e)
{
Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
process.StartInfo = startInfo;
startInfo.Arguments = "/A \"page=5\"";
startInfo.FileName = @"J:temp.pdf";
process.Start();
}
but it still opens the first page. Still unsolved.
if i Change to this
private void Button_Click_20(object sender, RoutedEventArgs e)
{
{
Process process = new Process();
process.StartInfo.Arguments = @"/A \"page=5\" \"J:\\temp.pdf"";
process.StartInfo.FileName = @"J:\temp.pdf";
process.Start();
}
}
i get seven Errors (Semicolon, page no context...)