Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: Invalid File Format in v14 (worked in v12)
Started by Joe Stanton at 08-09-2007 17:08. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
  08-09-2007, 17:08
Joe Stanton is not online. Last active: 1/14/2007 6:31:05 PM Joe Stanton

Not Ranked
Joined on 01-14-2007
Posts 4
Invalid File Format in v14 (worked in v12)
Reply Quote
I get "Invalid file format" error with the file attached.

This file has been previewed before with LEADTools v12 software (ActiveX). I am now evaluating v14 for it's native .NET 2.0 support.

This version of Raster Imaging Pro does not read this file type. It is sad that perhaps functionality has been lost instead of gained over the years, but perhaps I have another problem you can see in my code and address.

Simple code sample:

Dim loCodecs As New RasterCodecs
Dim lsFileName As String = TextBox1.Text
Try
If File.Exists(lsFileName) Then
RasterImageViewer1.Image = loCodecs.Load(lsFileName)
End If
Catch
End Try

Results:

?err
{Microsoft.VisualBasic.ErrObject}
Description: "Invalid file format"
Erl: 0
HelpContext: 0
HelpFile: ""
LastDllError: 3
Number: 5
Source: "Leadtools"

Please note that this file is a TGA though it's extension is 1. This file type is used in retail merchandising and the 1 means "front view of product".
   Report 
  08-09-2007, 17:10
Joe Stanton is not online. Last active: 1/14/2007 6:31:05 PM Joe Stanton

Not Ranked
Joined on 01-14-2007
Posts 4
Re: Invalid File Format in v14 (worked in v12)
Reply Quote
Apologies! I found the issue.

In my defense, your Image Processing example did not show that for different image formats the specific format library needed to be added as a reference. My assumption had been that they would find the needed code and work as previous versions of the software (ActiveX specifically) had.

It should also be noted that your website documentation does not show that yout products supports .NET Framework 2.0, it simply says support 1.1.
   Report 
  08-13-2007, 11:43
Amin is not online. Last active: 9/28/2008 5:38:40 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 748
Re: Invalid File Format in v14 (worked in v12)
Reply Quote
Joe,
It seems you tried to attach files. Currently, not all attachment types are allowed, so to ensure a file uploads correctly, you can put it in a .ZIP or .RAR archive.
Some of the other allowed attachment types include .JPG, .GIF, .PNG and .TXT files.

About the file format Codec DLLs, you don't specifically need to add them as references in LEADTOOLS 14, but you must have the DLL present in the path specified in the CodecsPath property.

About the webpage that fails to mention .NET 2.0, could you please tell me what its link is?


Amin Dodin
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Enduser » LEADViEW » Re: Invalid File Format in v14 (worked in v12)

Powered by Community Server, by Telligent Systems