Solved

Mulitple page TIFF

Posted on 2000-02-20
8
542 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now