Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Setting the filters in raster file open dialog
Started by alwayssmiling at 02-26-2007 8:27. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  02-26-2007, 8:27
alwayssmiling is not online. Last active: 8/20/2008 9:43:16 AM alwayssmiling

Top 50 Posts
Joined on 02-13-2007
Posts 36
Setting the filters in raster file open dialog
Reply Quote
Hi,

          How to set filters in raster file open dialog. I want to show only tiff files in the File open dialog. How can i acheieve this task using raster file open dialog().

Thank u.


   Report 
  02-27-2007, 5:31
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,715
Re: Setting the filters in raster file open dialog
Reply Quote
Hello,

Please provide me with the following information:
- What is the exact LEADTOOLS version that you use?
- What is the exact programming interface (COM, .Net, API, C++ Class Library, etc.) that you use?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  03-01-2007, 2:25
alwayssmiling is not online. Last active: 8/20/2008 9:43:16 AM alwayssmiling

Top 50 Posts
Joined on 02-13-2007
Posts 36
Re: Setting the filters in raster file open dialog
Reply Quote
Hi,

Im using leadtools raster imaging pro 15. And the programming interface is .net C#
   Report 
  03-04-2007, 5:37
Maen Hasan is not online. Last active: 8/14/2008 8:56:49 AM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,715
Re: Setting the filters in raster file open dialog
Reply Quote
Hello,

You can try to use the RasterOpenDialog.Filter Property to get or set the current file name filters array, which determines the choices that appear in the "Files of type" box in the dialog box.
You can use the following code:
+-----------------------------+
...
RasterOpenDialog openDlg = new RasterOpenDialog(rasterCodecs);
 
   openDlg.Filter = new RasterOpenDialogLoadFormat[]
   {
      new RasterOpenDialogLoadFormat ( "All Files", "*.*" ),
      new RasterOpenDialogLoadFormat ( "LEAD", "*.cmp" )
   };
...
+-----------------------------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » Common Dialogs » Re: Setting the filters in raster file open dialog

Powered by Community Server, by Telligent Systems