By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,650 Members | 1,785 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,650 IT Pros & Developers. It's quick & easy.

MS Ofiice Document Image Viewer Control 11.0 in ASP.NET

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.