Welcome to LEAD Support Forum Login | Register | Faq  

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

Regarding LTRASTERIOLib
Started by Vishal_Nerkar at 04-10-2008 5:47. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  04-10-2008, 5:47
Vishal_Nerkar is not online. Last active: 4/16/2008 7:02:10 AM Vishal_Nerkar

Not Ranked
Joined on 04-10-2008
Posts 1
Regarding LTRASTERIOLib
Reply Quote
First Error <br>
<br>
Following is my code <br>
<br>
Dim bits As Short = 0 <br>
Dim page As Integer = 0 <br>
Dim pages As Integer = 1 <br>
Dim path As String <br>
Dim fbk As Short <br>
Dim rasterIO As New LTRASTERIOLib.LEADRasterIO <br>
Dim fact As New LTRASTERLib.LEADRasterFactory <br>
Dim img2 As LTRASTERLib.LEADRaster <br>
path="c:\slide.bmp" <br>
img2 = fact.CreateObject("LEADRaster.LEADRaster", g_szLic) <br>
fbk = rasterIO.Load(img2, path, bits, page, pages) <br>
<br>
Error is: "LEAD Error: Invalid file format." <br>
This exception occur on line "fbk = rasterIO.Load(img2, path, bits, page, pages)" <br>
<br>
Above code is small part of code which convert PP file slides into bmp adjust their height and width and save it again with new dimension to display in our proprietary player. <br>
<br>
OS: XP SP2 <br>
Language: VB.net 2003, Window Application. <br>
Other:office 2007/0ffice 2003 <br>

<br>
<br>
<br>
Second Error
<br> <br>
Following is the code <br> <br>

Dim img2 As LTRASTERLib.LEADRaster <br>
Dim fact As New LTRASTERLib.LEADRasterFactory <br>
Dim rasterIO As New LTRASTERIOLib.LEADRasterIO <br>
Dim fbk2 As Short <br>
Dim path As String <br>
path="c:\slide.bmp" <br>
<br>
img2 = fact.CreateObject("LEADRaster.LEADRaster", g_szLic) <br>
fbk2 = rasterIO.Save(img2, path, LTRASTERIOLib.RasterFileConstants.FILE_BMP,img2.BitmapBits, LTRASTERIOLib.QFactorConstants.QFACTOR_ABCQ_LOSSY_FAST, 1) <br> <br>

Error is: "LEAD Error: Feature not available" <br>
This exception occur at line "fbk2 = rasterIO.Save(img2, path, LTRASTERIOLib.RasterFileConstants.FILE_BMP, img2.BitmapBits,
LTRASTERIOLib.QFactorConstants.QFACTOR_ABCQ_LOSSY_FAST, 1)" <br> <br>

OS:XP SP2 <br>
Language: VB.net 2003, Window Application. <br>
Other:office 2007 <br>
<br>
Instead of Office 2007 if we test it in office 2003 then it is running fine. <br> <br> <br>


Anybody has any idea regarding this? Any reply is most welcome. <br> <br>

Thanks, <br>
Vishal N.

   Report 
  04-11-2008, 8:55
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,536
Re: Regarding LTRASTERIOLib
Reply Quote
I'm not sure why your version office makes any difference, I'd have to check on that.  Is office related in the application in any way?  I don't see anything regarding office in your code snippets.

Is this your deployment machine or development machine?

The two errors you are getting (invalid file format when loading and feature not supported when saving) are common errors for the application not finding the necessary filter dlls (lfcmp, lfbmp, etc.) for the file format you are trying to load/save.  Please read the help file article "Files to be Included With Your Application" for an explanation of which dlls you'll need for which formats along with other redistributables. 

Additionally, you can test and see which DLLs are being loaded by your application at any time by using Process Explorer.  This is a free program that is available from http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx.  Use this program and see what DLLs load on your development machine and then see what is missing from your deployment machine.
Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » General » Support Site Su... » Regarding LTRASTERIOLib

Powered by Community Server, by Telligent Systems