B
Booney440
Guest
How do I open a PDF file without the Open file dialog box showing up? I have a Winform and using AcroPDFLib and AxAcroPDFLib as reference. The PDF file is is the Bin folder I cant figure out how to disable the box and use relative path.
private void button1_Click(object sender, EventArgs e)
{
{
OpenFileDialog dlg = new OpenFileDialog();
// set file filter of dialog
dlg.Filter = "pdf files (*.pdf) |*.pdf;";
dlg.ShowDialog();
if (dlg.FileName != null)
{
// use the LoadFile(ByVal fileName As String) function for open the pdf in control
axAcroPDF1.LoadFile(dlg.FileName);
}
}
}
}
}
Booney440
Continue reading...
private void button1_Click(object sender, EventArgs e)
{
{
OpenFileDialog dlg = new OpenFileDialog();
// set file filter of dialog
dlg.Filter = "pdf files (*.pdf) |*.pdf;";
dlg.ShowDialog();
if (dlg.FileName != null)
{
// use the LoadFile(ByVal fileName As String) function for open the pdf in control
axAcroPDF1.LoadFile(dlg.FileName);
}
}
}
}
}
Booney440
Continue reading...