Solved

Mulitple page TIFF

Posted on 2000-02-20
8
549 Views
Last Modified: 2008-03-06
How can i separate a multiple page TIFF file into single pages?(Using VB)
0
Comment
Question by:ramanan
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:georgeman
ID: 2541175
Ramanan
- load your tiff file in ImgEdit box (Wang Imaging control)
- save all pages as te separate tiff files
- that's it
Good luck
George
0
 
LVL 14

Expert Comment

by:waty
ID: 2541765
For my part, I use Kofax to do that, but you need to buy the OCX.
0
 
LVL 1

Expert Comment

by:georgeman
ID: 2543760
Wang Image OCX control is a part of Win95/98/2000 so it is absolutely free
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:ramanan
ID: 2544725
Thanks Georgeman. I tried using Wang Image. I was able to separate the tiff image into single pages, but could not save it as single tiff images using VB
0
 
LVL 1

Expert Comment

by:georgeman
ID: 2544751
If you can separate one page, try insert it in the additional IngEdit box and then save it from this box into onepage tiff file.
You can use ClipboardCopy / ClipboardPaste ImgEdit methods for that.
Regards
George
0
 
LVL 1

Accepted Solution

by:
georgeman earned 50 total points
ID: 2544820
ramanan
I test code below. Just create new project, form1, ImgEdit1, ImgEdit2, command1, and place this code in Command1_click event

Private Sub Command1_Click()
'
 Dim iTemp As Integer
'
 ImgEdit1.ClearDisplay
 ImgEdit1.Image = App.Path & "\fax001.tif" 'load multiple page tiff file
 ImgEdit1.Display
'
 For iTemp = 1 To ImgEdit1.PageCount
 
 ImgEdit1.Page = iTemp 'change page
 ImgEdit1.Display

'Create blank image
 ImgEdit2.DisplayBlankImage ImgEdit1.ImageWidth, ImgEdit1.ImageHeight, _
                              ImgEdit1.ImageResolutionX, ImgEdit1.ImageResolutionY, 1

'copy page of tiff file into the Clipboard
 ImgEdit1.ClipboardCopy 0, 0, ImgEdit1.ImageWidth, ImgEdit1.ImageHeight
 
'insert page of tiff file from the Clipboard
 If ImgEdit2IsClipboardDataAvailable = True Then
   ImgEdit2.ClipboardPaste 0, 0
   ImgEdit2.CompletePaste
   ImgEdit2.Refresh
 End If

'Select new image
 ImgEdit2.DrawSelectionRect 0, 0, ImgEdit2.ImageWidth, ImgEdit2.ImageHeight

'Save page in file as new tiff/B&W/no compression/no compression/original size file
 ImgEdit2.SaveAs App.Path & "\newfax" & Format(iTemp) & ".tif", 1, 1, 1, 0, False

 Next
'
End Sub

Rgards
George
0
 

Author Comment

by:ramanan
ID: 2544846
I tried this. But all the tiff images are blank.
0
 

Author Comment

by:ramanan
ID: 2544877
Thanks georgeman. Nice of you.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question