Support Center

ImageMan Twain 3.xx and VS2010

Dome Sep 26, 2012 05:42AM EDT


I face a problem with a project that target fwk 3.5.
I have Imageman.net 3.03 and Twain 3.10 fully licensed. In VS2010 if I target a fwk less than 4.0 I can't use Twain controls (neither they show in control box), but ImageMan.Net works fine (Viewer, Thumbnails and so on).
Using VS2008 this doesn't happen everything is fine ...
Any suggestion ?

3 Data Techniques Responses and 2 Community Responses

Up 5 Rated Down
DTI Support  Data Techniques Employee Sep 26, 2012 09:50AM EDT

Hello,

The controls are fine in VS 2010, what happens if you try to add the DTI.ImageMan.Twain.dll assembly to the toolbox in VS 2010 ?

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

Up 2 Rated Down
Dome  Data Techniques Employee Sep 26, 2012 10:41AM EDT

Thank you for answer.
There's no way to display TwainGui and TwainControl in VS tools box on VS2010, also if I add manually the twain DLL. If I switch project to fwk 4 then everything works fine and controls appear in tools box.
If I instantiate the twain control in code (adding also ref to the twain DLL in the project) using "new TwainControl()" and not at design time, the control works fine.

I've tested this in 3 different win7 64x PC with same result. In VS2008 it works fine and I have twain controls in the VS tools box.
It seems thet twain controls has some problem to manage design time in VS2010. Very misterious....

Up 7 Rated Down
DTI Support  Data Techniques Employee Sep 26, 2012 10:43AM EDT

Hi,

Are you sure you are referencing the proper control ie we have a .Net 2 component which will work under all version of the .Net framework except 1.x and then we have a .Net 4 assembly which will only load under .Net 4.0.

I wonder if you are using the .Net 4 assembly and thats why it wont load under .Net 3.5 which is basically .net 2.0 with extra stuff.

Sean

Up 5 Rated Down
Dome  Data Techniques Employee Sep 26, 2012 10:56AM EDT


I have installed controls on a fresh win7 vm. So no old ImageMan controls.
I know that there are 2 different dir (net2 and net4) for different fwk.
The control are set to GAC by the installer, so I don't know which assembly is really loading.
If I add manually net2 twain assembly, they don't work. More confusing, I see an DTI.Imageman.Twain.dll in ImageMan.net v3 dir and also in ImageMan.Net Twain dir ...

Up 3 Rated Down
DTI Support  Data Techniques Employee Sep 26, 2012 03:47PM EDT

Hello,

I have duplicated this issue and found out a couple of things:

1) As installed when you switch to .Net 3.5 the Twain controls disappear from the toolbox and for some reason selecting 'Choose Items...' from the toolbox context menu and selecting the .Net 2.0 assy doesnt display them either. I did find however that you can drag the DTI.ImageMan.Net.Twain Version 2.0 assy into the toolbox and the controls will be displayed.

2) If you do that and update the reference in the solution to the Version 2.0 Twain assy then all is OK.

So for now just drag the .Net 2,.0 Twain assy into the toolbox and that should work fine.

In the meantime we'll see if we can figure out whats up with Visual Studio 2010.

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Support

This question is closed to new answers.

Contact Us