04-10-2008, 5:47
|
Vishal_Nerkar
Joined on 04-10-2008
Posts 1
|
|
|
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
|
|
|
|