The code below shows you how to use the OpenFileDialog method.
- Import the trial Developer License:
License.Import(new StreamReader(@"C:\Users\Joe\license.xml"));
- Locate TIFF Files using OpenFileDialog:
OpenFileDialog dialog = new OpenFileDialog();
//show only Tiff Files
dialog.Filter = "TIFF files (*.tif)|*.tif";
dialog.Multiselect = true;
if (dialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
{
dosomethingwiththefile(dialog.FileName);
}
private void dosomethingwiththefile(string p)
{
throw new NotImplementedException
}
...
-
Do something useful with your files:
Now you are ready to do something useful with your TIFF files like converting them into a PDF file.