News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Visio 2013 Drawing Control not working.

Started by visio_sim, January 08, 2013, 08:58:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

visio_sim

Hello,

I have a VB6 application that uses Visio's drawing control to show some diagrams..
It's not working out of the box with Visio 2013. I get a Run-time error 372. "Failed to load control 'DrawingControl' from VISOCX.DLL, your version of VISOCX.DLL may me outdated. Make sure you are using the version of the control that was provided with the application"

This is strange since we do not distribute the DLL, it is installed with any normal Visio installation in the user's computer.

Does anyone know where to start?

Thanks,




visio_sim

Apparently there were some changes with the dll version and the vb6 application was not able to sort them out.

To fix it or workaround it  removed the drawingcontrol from the  form and now I add it at runtime on form load.

This is the call to add the control
:
   Call Controls.Add("VisOcx.DrawingControl.1", "VisioPFD5", Me)

That solved most of my problems. However, I'm still battling saving the visio file as ".vsd" , hope to have news soon

visio_sim

I faced some issues when saving the visio files using the visio 2013 drawing control.

1) : Visio 2010 or older can't read .vsdx files. There is nothing I can't do about it. I expect Microsoft to release a patch to fix did, just like what was done for other office products.

2) Visio 2013 drawing control errors when saving as .vsd file. However, the file is actually saved. The problem is that the drawing control goes to a state where it fails to recall other files from that point onwards.  To work around this issue, every time I save a file , I remove  the drawing control in run time and create a new one using the same method described above (Controls.Add("VisOcx.DrawingControl.1", "VisioPFD5", Me). I also expect this problem to be fixed by Microsoft .

wysiwyg

We've also faced a number of problems with the drawing control.
(1) Rendering quality of images is unaccaptable:
http://social.technet.microsoft.com/Forums/office/en-US/4a0f61f0-161e-4b57-979d-1e1181061190/poor-rendering-quality-of-images-and-cad-in-visio-2013

(2) Visio drawing control is anuable to open / save visio drawing with CAD-files:
http://social.msdn.microsoft.com/Forums/office/en-US/84a67f9a-e0ca-49b6-ba36-1ba90b95e359/visio-2013-cad-support-different-from-drawing-control-behaviour

I've reported both issues through MS support on 22nd of March 2013 - still they are not able to provde a fix until today. The second problem is absolutely critical, since it also damages visio files that contain CAD files. Once you opend such a file (created with Visio standalone application) and save it with the drawing control, the embedded information that describes the CAD file(s) will be damaged.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 188 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1085KB.
Tokens: post-login.
Cache hits: 13: 0.00148s for 26,757 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]