473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MS Ofiice Document Image Viewer Control 11.0 in ASP.NET

zee
hello
Is it possible to use Document Image Viewer Control in
ASP.NET(2.0) because

1. The IDE is not adding this component in the toolbox and
2. when i use it so it give me following error

"ActiveX control 'ef347a62-ba21-42e4-94a0-1c0a6d7fdfe7' cannot be
instantiated because the current thread is not in a single-threaded
apartment."

i have written this code

AxMODI.AxMiDocView axMiDocView1;
MODI.Document _MODIDocument = new MODI.Document();

axMiDocView1 = new AxMODI.AxMiDocView();
axMiDocView1.FitMode = MODI.MiFITMODE.miByWindow;

axMiDocView1.FileName =
(@"C:\OCR\CASODev\uploadedimages\63295567873494856 9.tif");
axMiDocView1.Refresh();

------------------------------------------------------------------------------------

Basically i want to use this control in order to highlight search text
in the tiff image.
I have use this in windows but is it possible to use in web.

Or is there any other control/component by which this will be
possible?????

Oct 4 '06 #1
1 7115
Unfortunately no, the threading is all wrong. Basically, ASP.Net is a
multi-threaded environment whereas the viewer is single threaded. The
framework won't let you use the viewer as it cannot be instantiated safely
in a multi-threaded environment.

There are a few controls out there done in .Net, but I'm not sure how many
are designed to work in an ASP.Net environment. Atlasoft DotImage comes to
mind, http://www.atalasoft.com/products/dotImage/photopro/ but not any
others.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"zee" <ha*********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
hello
Is it possible to use Document Image Viewer Control in
ASP.NET(2.0) because

1. The IDE is not adding this component in the toolbox and
2. when i use it so it give me following error

"ActiveX control 'ef347a62-ba21-42e4-94a0-1c0a6d7fdfe7' cannot be
instantiated because the current thread is not in a single-threaded
apartment."

i have written this code

AxMODI.AxMiDocView axMiDocView1;
MODI.Document _MODIDocument = new MODI.Document();

axMiDocView1 = new AxMODI.AxMiDocView();
axMiDocView1.FitMode = MODI.MiFITMODE.miByWindow;

axMiDocView1.FileName =
(@"C:\OCR\CASODev\uploadedimages\63295567873494856 9.tif");
axMiDocView1.Refresh();

------------------------------------------------------------------------------------

Basically i want to use this control in order to highlight search text
in the tiff image.
I have use this in windows but is it possible to use in web.

Or is there any other control/component by which this will be
possible?????

Oct 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Shumit Rehman | last post by:
Hi I have a table which has path names to photos I would like to view. I would like to open some/any kind of image viewer(Paint) to see the picture when I click the pathname. The pictures are...
2
by: John Fryatt | last post by:
Hi, Before I go on, let me just say I'm fairly new at this so excuse me if I say the wrong thing or use the wrong term. Anyway, what I am trying to do is to set up something where I can have a...
1
by: Dan | last post by:
I must develop a (C-sharp) winforms application which should display some relatively large (e.g. 2~5 MB JPEG each) photographic images together with a rich set of related information: the...
0
by: Jerry J | last post by:
I have a third party image viewer that can display various types of images. The image viewer is ActiveX and lives inside of Internet Explorer. To get the image viewer to retrieve an image, java...
4
by: Troy | last post by:
Hi all, Im a little new to ASP.NET. I'm looking to create an image viewer that zooms in, pretty common. But I need to draw a box on the 1:1 scale image and 'zoom in' on another picture box. ...
2
by: Jayender | last post by:
Hello , I need to add a ActiveX control ...the Dicomviewer in ASP>net .. I am able to do it fine in C# project but not in web application I add that Dicom dll (.ocx file) in my ASP.Net form I...
5
by: mikez | last post by:
Hi, We recently built a very basic file management system for a client in Access 2003 (to use with incoming tif scans). In it we used Microsoft's Document Imaging activex viewer (from Office...
4
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I need to do a image viewer, just to view and zoom pictures in jpeg. I do not need to edit or save the picture. I am sure, there are some controls already made. I am thankful for any...
2
by: sphinney | last post by:
Hi everyone. I have a form in my Access 2007 database with a Microsoft Office Document Imaging Viewer Control 12.0 object on it. The object is named "GRAPHIC_mdv". When the form opens I want to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.