TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
alex Zeilinger
NA
1
0
c# visio saveas method
Jun 23 2009 9:31 AM
Hi folks,
first of all, i am a newbie in c#.
I am trying to open a visio-document and simply save it, but it doesn't work and i don't know what the mistake is.
My code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using visio = Microsoft.Office.Interop.Visio;
namespace VisioZeichnen
{
class Program
{
static void Main(string[] args)
{
string docPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + @"Speditionsanlage_Vorlage.vst";
visio.Application myvisio = new visio.Application();
myvisio.Documents.Open(docPath);
string savePath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments) + @"Speditionsanalage.vsd";
myvisio.ActiveDocument.SaveAs(savePath);
}
}
}
Please help me ;-)
Kind Regards,
r4echer
Reply
Answers (
0
)
Convert XML to Word
Ink on Microsoft Word