Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, October 29, 2010 2:58:36 AM(UTC)

papyrum  
papyrum

Groups: Registered
Posts: 32







Hello,

I am using LeadTools v17. and the VB.NET class library.

It would be difficult to me to explain what I want to achieve but I will try it:

We are developing a .Net project for scanning images. As we do not want to add leadtools references to this project, we are also developing a class library proyect with leadtools references and some "custom" functions and properties. Then, we will add to the scanning project, a reference to our class library project.

So, I need some help to do this class library project. Making a class that inherits from TwainSession, how could I overload the AcquirePage event??? My purpose is something like this:

Our Class Library Project:

Imports Leadtools
Imports Leadtools.Twain

Public Class Digitalizador17
    Inherits TwainSession
.
.
.
.
.
.
End Class

Scanning Project

Imports Our Class Library Project namespace

Dim oDigitalizador as Digitalizador17
.
.
.
.
 AddHandler oDigitalizador."Our Event", AddressOf  "Any function"


So, in the Scanning project we cannot make a function with this signature :
(ByVal sender As Object, ByVal e As TwainAcquirePageEventArgs)
because we do not want to have the leadtools references on it.


I hope you could understand what we want to do.

Thanks very much,

Pablo L.G.


 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, October 31, 2010 6:36:19 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

Pablo,
If you want to use any data type (such as TwainAcquirePageEventArgs) or enumeration defined in a Leadtools assembly, you must add a reference to that Leadtools assembly in the project that will use the data type. This is a .NET rule and not something specific to our toolkit.

Also, creating a project that uses a User ClassLibrary that uses Leadtools is allowed by our toolkit license agreement, but on the condition that every programmer who uses this User ClassLibrary must have a toolkit license seat.

This means if your User ClassLibrary will be used by 4 programmers (for example), you must own 4 copies of LEADTOOLS, and each of them must install our toolkit on his or her computer.

Furthermore, when you build an EXE that uses the User ClassLibrary, this EXE must be made to 'see' both your library DLL and the LEADTOOLS DLLs. The easiest way to do that is to copy your DLL and our toolkit files to the same folder that has the EXE, which can be done by adding references to the EXE project.

This means I suggest you do the following:
1. Do not create your own Class Library to wrap LEADTOOLS in it. Instead, add Leadtools references to your EXE project and use our classes directly in that project.
2. If you must create your own class library, add Leadtools references to your library and also add Leadtools references to your EXE project.

 
#3 Posted : Monday, November 1, 2010 3:43:49 AM(UTC)

papyrum  
papyrum

Groups: Registered
Posts: 32


Understood :) Thanks very much Basel.
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.138 seconds.