Tiff Splitter DLL. Split multi-page Tiff files.

Similar documents
Visual Basic Programming. An Introduction

Applications Development

You must have at least Editor access to your own mail database to run archiving.

CRM Setup Factory Installer V 3.0 Developers Guide

Quick Guide: Troubleshooting Info from SNAP PAC Systems

MyFaxCentral User Administration Guide

How to set up your Secure in Outlook 2010*

Macro s for EIS Using IBM 3270 Personal Communications Emulation Software

Knocker main application User manual

Designing and Implementing Forms 34

Changing the Display Frequency During Scanning Within an ImageControls 3 Application

Lotus Notes 6.x Client Installation Guide for Windows. Information Technology Services. CSULB

GoDaddy (CentriqHosting): Data driven Web Application Deployment

Installation of ADS SiMKit startup script and designkit on Windows for SiMKit version 4.4

Getting Started with STATISTICA Enterprise Programming

EventTracker: Configuring DLA Extension for AWStats Report AWStats Reports

Practice Fusion API Client Installation Guide for Windows

SAS, Excel, and the Intranet

Archive Attender Version 3.5

Customer Tips. Xerox Network Scanning HTTP/HTTPS Configuration using Microsoft IIS. for the user. Purpose. Background

SmartOffice Configuration Guide for Microsoft Windows XP with Internet Explorer 7

JetPaySM. JetComSM. Installation Guide

Download and Installation Instructions. Visual C# 2010 Help Library

Creating a Java application using Perfect Developer and the Java Develo...

Hummingbird Enterprise

TS2Mascot. Introduction. System Requirements. Installation. Interactive Use

Installing LearningBay Enterprise Part 2

EventTracker: Configuring DLA Extension for AWStats report AWStats Reports

Crystal Reports for Visual Studio.NET

RIT Installation Instructions

Visual Basic and OPC All versions of Kepware OPC Servers 10/23/03

Step-by-Step Guide Procurement Card & Travel Reconciliation Expense Reports: Step 4c Attaching Documents by Receipt Store to Individual Expenses

Call Recorder Oygo Manual. Version

Unleashing Hidden Powers of Inventor with the API Part 1. Getting Started with Inventor VBA Hello Inventor!

File by OCR Manual. Updated December 9, 2008

Specops Command. Installation Guide

Errors That Can Occur When You re Running a Report From Tigerpaw s SQL-based System (Version 9 and Above) Modified 10/2/2008

Filing Credit Counseling and Debtor Education Certificates

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Microinvest Warehouse Pro Light Restaurant is designed to work in tandem with Microinvest Warehouse Pro which provides all back office functions.

Moxa Device Manager 2.3 User s Manual

WaveLab Application Programming Interface

WinSCP: Secure File Transfer Using WinSCP for Secure File Transfer on Windows

Call Center - Agent Application User Manual

How-To Guide. Crystal Report Demo. Copyright Topaz Systems Inc. All rights reserved.

USB GSM 3G modem RMS-U-GSM-3G. Manual (PDF) Version 1.0,

SUMMARY Moderate-High: Requires Visual Basic For Applications (VBA) skills, network file services skills and interoperability skills.

ResPAK Internet Module

ODBC (Open Database Communication) between the ElevateDB Database and Excel

Auto-Archiving your s in Outlook

VB.NET - WEB PROGRAMMING

LOG MANAGEMENT Update Log Setup Screen Update Log Options Use Update Log to track edits, adds and deletes Accept List Cancel

Sage Accpac ERP 5.6A. CRM Analytics for SageCRM I User Guide

Upgrade ProTracker Advantage Access database to a SQL database

CNC Transfer. Operating Manual

Administration Guide. . All right reserved. For more information about Specops Deploy and other Specops products, visit

Installing U2 WEBDE and Gateway on Windows Web Server 2008 including X64

UC Express Quick Start Guide

IBM Rational Rhapsody Gateway Add On. CaliberRM Coupling Notes

Litigation Support connector installation and integration guide for Summation

Technical Specifications (Excerpt) TrendInfoWorld Web Site

Users Guide. FTP/400 File Transfer API and Remote Command Server Version By RJS Software Systems, Inc.

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

Site Maintenance Using Dreamweaver

Configuration Guide. Remote Backups How-To Guide. Overview

HIC.SOAP Network User Instructions last updated June 22, :39 AM

Excel Reports User Guide

IMPORTANT SETUP INSTRUCTIONS! Setup for F9 Version 4.5 for MAS 90 and MAS 200

AN335 USB DRIVER INSTALLATION METHODS. 1. Introduction. 2. Relevant Documentation. 3. DPInst Installation and Customization

Inventory Computers Using TechAtlas for Libraries

VP-ASP Shopping Cart Quick Start (Free Version) Guide Version 6.50 March

IBM FileNet eforms Designer

SafeGuard PrivateCrypto 2.40 help

JORAM 3.7 Administration & Monitoring Tool

Connecting To SOM Network Drives With Windows XP

This presentation explains how to integrate Microsoft Active Directory to enable LDAP authentication in the IBM InfoSphere Master Data Management

Central and Remote Users Guide

How to start with 3DHOP

CAPIX Job Scheduler User Guide

Generate Android App

Hands-on Exercise 1: VBA Coding Basics

Using DHCP and XML to Transfer Files to an Intermec Mobile Computer

Outlook Connector. Version 2 User Manual. client-side plugin. Collaborate Using Outlook. Version 2.0.0

s sent to the FaxFinder fax server must meet the following criteria to be processed for sending as a fax:

QUICK START GUIDE. Draft twice the documents in half the time starting now.

Access 2000 and Visual Basic 6

BioWin Network Installation

Newton Backup Utility User s Guide. for the Windows Operating System

Bitrix Site Manager 4.1. User Guide

Scripting with CAMMaster And Visual Basic.NET

Entourage - an Introduction to

Oracle Hyperion Financial Data Quality Management ERP Integration Adapter for Oracle Applications

How to test and debug an ASP.NET application

Scheduling Automated Outlet Control Using FineSNMPSet with Sentry Switched Power Distribution Units

How to Install CS OrthoTrac on a New Server and Copy the Data from the Old Server to the New Version 12 and higher

Transcription:

Tiff Splitter DLL Split multi-page Tiff files www.sherrodcomputers.com Copyright 2004, All Rights Reserved Sherrod Computers, Inc. 421 Westwood Dr Smyrna, TN 37167 support@sherrodcomputers.com Introduction The Tiff Splitter was developed to allow a user to split a multi-page Tiff file into several single page files. The COM object was developed to allow a programmer to integrate the functionality of this program directly into their own application. Installing the Tiff Splitter COM Library Before you can use the Tiff Splitter COM library you must register it so that Windows is aware that it exists and knows where it is located. To do this, run the setup program to install the COM object, that will register the DLL for the system to use.

Main function of the Tiff Splitter COM object Tiff_PageSplit(FileNamess As String, Optional OutputDir As String) As Long The Tiff splitter expects two mandatory arguments: Arguments: FileNamess is the full path and filename to the Tiff file you want to split OutputDir is the full path to the directory you want to the new single page files to be placed Example: c:\newsplitfiles\ This is a mandatory argument, even if you want the new tiff files to be placed in the same directory as the original, you must specify that in the OutputDir argument. Error and Status Codes The Tiff Splitter COM object does return error and status codes. A status code of 0 (zero) means that the method executed successfully (i.e., there was no error). The error codes are listed below: Code Meaning 1 Success no error 0 File does not exist -1 General error -2 Not a valid Tiff file

Calling the Tiff Splitter COM from Visual Basic It is easy to call the Tiff Splitter methods from Visual Basic because Visual Basic has excellent support for COM objects. Referencing the Tiff Splitter from Visual Basic The first step in using the Tiff Splitter with a Visual Basic program is to tell Visual Basic to reference it. To do this, start Visual Basic, then click Project on its main menu, then click References on the drop-down menu.

A popup screen will appear with a list of the registered COM objects. Search through the list and check the box next to TurboChart Graphics Library. Then click OK to exit from the references screen. If the Tiff Page Splitter DLL entry doesn t appear in the references list, then the DLL library has not been properly registered, and you can use one of two methods to resolve the issue. First, you could browse to the location of the DLL and reference it from there. The second option would require you to manually register the DLL which can be done by using the following command line: regsvr32 c:\%location of file%\tiffpagesplitdll.dll Close VB, open it back up and the reference should be in the list now. Once you have established a reference to Tiff Splitter DLL within Visual Basic, you can add declarations and method calls to your Basic programs.

Declaring the Tiff Splitter COM object in a Visual Basic program Each Visual Basic procedure that calls Tiff Splitter COM methods must contain the following declarations: Dim TSplit As New TiffPageSplitterDLL This declares a variable named TSplit to reference the Tiff Splitter COM library. Once you do that, you can then reference the Tiff Splitter methods by typing TSplit.Tiff_PageSplit(). (You do not have to name the variable TSplit, but it is recommended that you do so to make it clear that the methods are part of the Tiff Splitter COM library.) For example, Sample Program Private Sub Split_Files() 'declare our main splitter COM reference Dim TSplit As New TiffPageSplitterDLL 'dim our result variable Dim rslt As Long Dim usefile as String usefile = "c:\vb\tiffpagesplitterdll\test\50740.tif" 'call our main splitter function rslt = TSplit.Tiff_PageSplit(cstr(usefile), "c:\vb\tiffpagesplitterdll\test\") 'give some response back to the user regarding the result of the split If rslt = 1 Then MsgBox ("File was split successfully") Else MsgBox ("There was an error splitting the file") End If 'clear our variable Set TSplit = Nothing End Sub

Calling the Tiff Splitter COM from ASP Scripts It is easy to call the Tiff Splitter method from an ASP (Active Server Page) script. You must declare an object to reference the Tiff Splitter COM library. This is done by using the following statement: set tsplit = server.createobject("tiffpagesplitdll.tiffpagesplitterdll") After doing that, you can invoke the Tiff Splitter method by specifying tsplit.tiff_pagesplit () in the script. Note, unlike Visual Basic, there is no way to set up a Reference to the Splitter COM library in ASP scripts. Because of this, if you mistype the name of a method or specify an incorrect number of arguments, the error will not be detected until the ASP page attempts to execute the statement with the error. Here is a complete ASP script that splits a tiff file. <HTML> <% set tsplit = server.createobject("tiffpagesplitdll.tiffpagesplitterdll") %> </HTML> dim rslt as long dim usefile as string usefile = "c:\vb\tiffpagesplitterdll\test\50740.tif" rslt = tsplit.tiff_pagesplit(cstr(usefile), "c:\vb\tiffpagesplitterdll\test\")

Support If you have any questions about using the COM object, please feel free to e-mail us at support@sherrodcomputers.com You can also call us toll-free at 877-440-2890 Tiff Splitter Online View our product information online: http://sherrodcomputers.com/products_tiffsplitter_dll.cfm Purchase online: http://sherrodcomputers.com/products_tiffsplitter_dll_purchase.cfm