Welcome to LEAD Support Forum Login | Register | Faq  

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

How to Display Multiple Page Tiff using v13
Started by Gary Kindel at 07-07-2008 16:05. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  07-07-2008, 16:05
Gary Kindel is not online. Last active: 7/8/2008 6:15:24 PM Gary Kindel

Not Ranked
Joined on 07-07-2008
Posts 1
How to Display Multiple Page Tiff using v13
Reply Quote
I need to display a multiple page TIFF file in a VB6 client.
I am using v13 and the LEADRasterView control.

Is there a method on LEADRasterView.Raster to load a page of an image?

TIA
Gary Kindel

Here is the current code used to display a single paged image:
   Dim clcErrors As clsRLErrors
    Set clcErrors = New clsRLErrors
   
    RetrieveImageData = False
   
    On Error GoTo SubRuntimeError
 
    ChangeMouseCursor vbHourglass
    LEADRasterView.MousePointer = vbHourglass
 
    'First clear out any existing images
    LEADRasterView.Raster.BitmapList = 0
   
    'Initialize data control
    dcImageView.ConnectionString = gcnDocMgt.ConnectionString
    dcImageView.RecordSource = "SELECT DocMgtImageID, ImageData FROM tbDocMgtImages WHERE ImageSetID = " & SqlNumber(mlImageID) & " ORDER BY PageNumber"
    dcImageView.Refresh
       
    LEADRasterOLEDB.Raster = LEADRasterWork.Raster
    LEADRasterOLEDB.DataField = "ImageData"
       
    'Store images in raster viewer
    With dcImageView.Recordset
        Do Until .EOF
            LEADRasterView.Raster.InsertBitmapListItem .AbsolutePosition - 1, LEADRasterWork.Raster.Bitmap
            .MoveNext
        Loop
    End With
   
    'Set to first image
    If LEADRasterView.Raster.BitmapListCount > 0 Then LEADRasterView.Raster.BitmapListIndex = 0
   
    'Free up work raster control
    LEADRasterWork.Raster.BitmapList = 0   
    dcImageView.Recordset.Close   
    RetrieveImageData = True


   Report 
  07-08-2008, 10:01
Qasem Lubani is not online. Last active: 8/27/2008 3:13:14 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,034
Re: How to Display Multiple Page Tiff using v13
Reply Quote

The LEADTOOLS LEADRasterOLEDB does not support Multi-page loading. If you have the pages in the same Database field, you can extract them to a memory buffer and then use one of the following functions to load the images

-         LoadMemory method

-         LoadArray method

-         LoadBuffer method


Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Image Display » How to Display Multiple Page Tiff using v13

Powered by Community Server, by Telligent Systems