473,807 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Visio - new DrawingControlC lass() 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.Offic e.Interop.Visio ;
using MSVisOcx = Microsoft.Offic e.Interop.VisOc x;

MSVisOcx.Drawin gControl v_dc = new MSVisOcx.Drawin gControlClass() ;
MSVisio.Applica tion v_app = v_dc.Document.A pplication;
MSVisio.Documen t 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 DrawingControlC lass' 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 1123

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

Similar topics

10
4871
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 change. Occasionally, it blows up with an Application Exception. It seems to only die at the customer site
4
315
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 project and it's a long process to edit the charts. Is there some piece of software that will take a MS Word outline and make a Visio (or other drawing program) org chart?
3
2647
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? Thank in advance! -- WBR, Roman S. Golubin
0
1425
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 IHTTPAsyncHandler to my application which runs a .NET Remoting server. The application stores a reference to the IHTTPAsyncHandler proxy until the request has been processed. When it is done, it retrieves the IHTTPAsyncHandler proxy and returns the results back...
0
1568
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 Microsoft.Office.Interop.VisOcx.DrawingControlClass dr=new Microsoft.Office.Interop.VisOcx.DrawingControlClass( ); i am using the drawing control to get access to the Application object so i am creating it only on the server.
0
1030
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 request. I have this code to launch my application. But it is giving "Class Not registered" error in InitializeComponent of form which has ActiveX control. My application is working perfectly when I am launching this without any
1
1717
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 powerpoint or visio. So in VS 2005 i create a new project and select "Windows Control" create my dll and it's functionality. I'd like to then launch visio and select "INSERT" then CONTROLS and select my new control from the list provided (cannot browse...
4
1210
by: Bruce One | last post by:
Does anyone use Visio Arcthitects ?
0
3154
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 the image on my asp.net page. But a get an error: Retrieving the COM class factory for component with CLSID {00021A20-0000-0000-C000-000000000046} failed due to the following error: 80070003.
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.