Using Visio in a Webpage/Sharepoint

D

Daniel

Hi altogether,

I'm using Visio Drawing Control in Sharepoint:

output.Write("\n"
+ "<object
classid=\"clsid:E4615FA3-23B0-4976-BD3E-D611DDBE330E\""
+ "width=\"800\"" + "height=\"600\""
+ "id=\"axVisio\">\n"
+ " <param name=\"HostID\" value=\"\">\n"
+ " <param name=\"NegotiateMenus\" value=\"1\">\n"
+ " <param name=\"NegotiateToolbars\" value=\"1\">\n"
+ " <param name=\"PageSizingBehavior\" value=\"1\">\n"
+ " <param name=\"Src\" value=\"" + documentToLoad + "\">\n"
+ "</object>\n"
+ "\n");

But there is no menu for e.g. saving the file after modification. Is there a
way to get the menu to save the file? I have the shapes on the left to create
visio-models. But i can't save anything. I really hope that anyone can help
me. Thanks a lot in advance!

Best!
Daniel
 
D

David Parker

You should be aware that the Drawing Control only operates on a copy of the
original file, there you would need to do a SaveAs over the original file.
Thus there is no Save.
I suspect that you'll need to script this.
 
D

Daniel

Hey David,

thank you for your answer. I'm totally new to programming with microsoft
products like visio, sharepoint, asp, visual basic etc. (But I have at least
programming experiences in java).

Is there a better way to integrate or implement the activex drawing control
in a web part? I started coding in visual studio 2005 prof. edition. For
example, microsoft shows how to expose the MS Office Visio 2003 ActiveX
Control as a Web Part:
http://msdn.microsoft.com/en-us/library/aa168490(office.11).aspx

My first goal is to implement this example. But I'm not really successfully
:-( I hope you can help me or send me better examples with code to learn
programming with the activex drawing control in combination with web parts.

Thanks a lot for your support!
Best, Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top