bhopaltechie
Programmer
While automating Visio in VC++, using the below code, I am facing a problem.
When I instantiate a Visio instance and try to open a document, a window
pops up that asks for a confirmation dialog for opening the file of type
".txt". It asks for the type of text in file and also confirmation for
saving it before closing it.
Is there any way by which I can automate this process. Can I programmatically send the message to press the OK button and automate the whole task.
The code is as under :-
CVisioDocuments docs;
CVisioApplication app;
CVisioDocument doc;
app.put_Visible(FALSE);
app.Documents(docs);
docs.OpenEx("E:\\BOM.txt",visOpenAsHidden,doc);
doc.SaveAsEx("E:\\BOM.vsx",visSaveAsWS);
app.Quit()
When I instantiate a Visio instance and try to open a document, a window
pops up that asks for a confirmation dialog for opening the file of type
".txt". It asks for the type of text in file and also confirmation for
saving it before closing it.
Is there any way by which I can automate this process. Can I programmatically send the message to press the OK button and automate the whole task.
The code is as under :-
CVisioDocuments docs;
CVisioApplication app;
CVisioDocument doc;
app.put_Visible(FALSE);
app.Documents(docs);
docs.OpenEx("E:\\BOM.txt",visOpenAsHidden,doc);
doc.SaveAsEx("E:\\BOM.vsx",visSaveAsWS);
app.Quit()