I am trying to load tiff file and PDF file using below code snippet. Tiff file successfully loaded but PDF is not load and getting error like Wrong or Unsuported image format. Would you please guide on the same.
private void OpenFileAsynchronously()
{
try
{
UseWaitCursor = true;
annotationViewer1.Images.Add(_sourceFilename, _isFileReadOnlyMode);
annotationViewer1.DisplayMode = ImageViewerDisplayMode.SinglePage;
annotationViewer1.SizeMode = ImageSizeMode.Normal;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
}
