473,326 Members | 2,126 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,326 software developers and data experts.

Visio - new DrawingControlClass() thowing exception - 'class not registered'

I looked a looked for an answer to this question and I have not been
able to find anything.
-------------------------------------------------------------------
using MSVisio = Microsoft.Office.Interop.Visio;
using MSVisOcx = Microsoft.Office.Interop.VisOcx;

MSVisOcx.DrawingControl v_dc = new MSVisOcx.DrawingControlClass();
MSVisio.Application v_app = v_dc.Document.Application;
MSVisio.Document v_doc = v_app.Documents.OpenEx( @"c:\TestVisio.vsd",
0 );
MSVisio.Page v_page = v_doc.Pages[1];
v_page.Export( @"c:\TestVisio.jpg" );
-------------------------------------------------------------------

This code works fine in a regular windows app, it opens a visio
drawing and then exports the drawing to a jpg file. And it does't use
automation.

However, when I use this same code in a web app, it throws an
exception on the line 'new DrawingControlClass' saying class not
registered.

Like i've said, I've looked and looked and can't seem to find any info
to solve this problem. Do you have any idea why this is happening?
Or, can you point me to a working example that I can follow.

thank you,

gkelly

Mar 5 '07 #1
0 1095

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

Similar topics

10
by: gregory_may | last post by:
I have an application I created called "JpegViewer.exe". It simply loads a Jpeg file and displays in on the screen. It works great, in my lab. When I am using it at a customer site, things...
4
by: Mark Jerde | last post by:
Sorry about the cross post. I'm not finding anything in google or google groups. I have a client who likes Visio-style drawings, similar to hierarchical org charts. But we're early in the...
3
by: Roman S. Golubin1709176985 | last post by:
All how do you do! Who what cases uses for C# programming? I have an experience with Microsoft Visio several days. He has a problem with interface inheritance... óan who that other advise? ...
0
by: Mike Grishaber | last post by:
I am using .NET Remoting to connect my incoming HTTP Requests to my business logic. I am using a custom IHttpAsyncHandler to receive the incoming HTTPRequests and then I forward the...
0
by: anonymous | last post by:
Hi all, I am using Visio drawing control (Visio automation object model) in my asp.net web page. I have a code which creates a DrawingControlClass object in my server code ...
0
by: Shahzad Godil | last post by:
VB.net solution with this issue http://dotsystem.biz/Files/Shahzad/ThreadCheck.zip Required Visio 2003. I have one remoting server which is launch Visio activex based application on remote...
1
by: bsautner | last post by:
Hi, spent a while trying to figure this out myself and i seem to be missing something. I want to create a windows user control in vb.net 8 that i can then use in office applications like...
4
by: Bruce One | last post by:
Does anyone use Visio Arcthitects ?
0
by: Dennis G | last post by:
Hi, When the asp.net page is loading, i want to open a visio file (2007), change the commandstring of a datarecordset in the visio file, export the visio file to an image file (.png) and show...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: 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....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.