Welcome to LEAD Support Forum Login | Register | Faq  

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

Strange behavior with ShowFileConversionDlg
Started by bsardinha at 08-30-2007 13:51. Topic has 8 replies.

Print Search « Previous Thread Next Thread »
  08-30-2007, 13:51
bsardinha is not online. Last active: 9/11/2006 10:47:33 PM bsardinha

Top 500 Posts
Joined on 09-11-2006
Posts 11
Strange behavior with ShowFileConversionDlg

Attachment: AskDialog.jpg
Reply Quote

I'm using LeadTools v14.0.

There are two strange things happening with this dialog.  The first is that the dialog will only allow you to select up to 5 files when choosing to Add Files.  If you select more than that, it simply won't add them.

The second is that if you allow the dialog to show "Ask" for overwriting, the attached is what the dialog looks like.  The text of the dialog is gibberish.

Any ideas?



   Report 
  09-02-2007, 11:35
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: Strange behavior with ShowFileConversionDlg
Reply Quote

What build of LEADTOOLS v14 are you using? Also, what is the build number (version info) of LEADTOOLS DLLs you have?

Can the problem be shown using one of our demos? If yes, which demo and what are the steps?

If it only happens in your code, please put the code in a small test project (not your full application) and send me this test project in a ZIP or RAR file.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  09-03-2007, 19:34
bsardinha is not online. Last active: 9/11/2006 10:47:33 PM bsardinha

Top 500 Posts
Joined on 09-11-2006
Posts 11
Re: Strange behavior with ShowFileConversionDlg
Reply Quote

I'm using the following builds:

ltkrn14N.dll 14.0.0.13

ltdlgkrn14n.dll 14.0.0.13

I occurs using both my program and the raster imaging pro COM VB main demo.  It occurs for me and for our test machines using this same build.

If you need any further info, just let me know.


   Report 
  09-04-2007, 6:08
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: Strange behavior with ShowFileConversionDlg
Reply Quote

You are using a very old build of LEADTOOLS DLLs. Please send your serial number to support@leadtools.com and mention this post to get the latest LEADTOOLS v14 patches instructions.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  09-04-2007, 11:46
bsardinha is not online. Last active: 9/11/2006 10:47:33 PM bsardinha

Top 500 Posts
Joined on 09-11-2006
Posts 11
Re: Strange behavior with ShowFileConversionDlg
Reply Quote

I do have a higher version already, but we're not using it because in the older version the BitmapXRes returns 1 if the DPI is unknown whereas in the newer version, this funtion returns a default value (I believe it's 150).  I need to know if the DPI is unknown, and if so, the user must perform a calibration to identify the true DPI of the image.  These are medical images so the DPI's vary widely and 150 may be a valid value.

Is it possible to use the older version for the main LeadTools control and use the higher version for the dialogs?  Or, in the newer version, is there a way to know if the DPI is unknown?  I would like to upgrade fully for everything, but I need to know if the DPI is unknown.

 


   Report 
  09-05-2007, 11:49
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: Strange behavior with ShowFileConversionDlg
Reply Quote

You can use the RasterIO.GetFileInfo() method, and check the value of the InfoNoResolution property to know if the file has actual DPI information or not.

In the DLL API, this property corresponds to the FILEINFO_NO_RESOLUTION flag.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  09-05-2007, 16:45
bsardinha is not online. Last active: 9/11/2006 10:47:33 PM bsardinha

Top 500 Posts
Joined on 09-11-2006
Posts 11
Re: Strange behavior with ShowFileConversionDlg

Attachment: Images.zip
Reply Quote

I tried this with v14.5.0.48 and it seems to work well with DICOM files, but not with JPG.  I have a JPG file with what I believe to be no DPI and it is returning 150 and False for InfoNoResolution.  If you open the same file in Paint or other viewer, it says the DPI is 96 (which is I believe that program's default when it doesn't know the DPI).  I've attached a zip file with 3 files (one good DICOM file, one JPG set to 112 DPI, and the JPG which I believe doesn't have a DPI).

The file conversion dialog does seem to work well in this version though.


   Report 
  09-06-2007, 8:00
bsardinha is not online. Last active: 9/11/2006 10:47:33 PM bsardinha

Top 500 Posts
Joined on 09-11-2006
Posts 11
Re: Strange behavior with ShowFileConversionDlg
Reply Quote

I just downloaded the latest patch (14.5.66) and the InfoNoResolution works for the JPG images.  Looks like this solves all my problems!

Thanks!!

P.S. Are there newer help files that I could download?  The patches I've downloaded include properties that aren't included in the help files I have from v14.0 (including the InfoNoResolution property).


   Report 
  09-09-2007, 10:29
Adnan Ismail is not online. Last active: 8/14/2008 1:40:07 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,124
Re: Strange behavior with ShowFileConversionDlg
Reply Quote
I have sent you details about this in ticket#2007090510001255 from our support email. If you have any comments regarding this issue. Please reply to that ticket.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Common Dialogs » Strange behavior with ShowFileConversionDlg

Powered by Community Server, by Telligent Systems