K
Karandeep
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 :-
IVDocuments docs;
IVApplication app;
IVDocument doc;
app->put_Visible(FALSE);
app->get_Documents(docs);
docs->Open("E:\\BOM.txt",doc);
short *lp2iret;
docs->SaveAs(doc,"E:\\BOM.vsx",lp2iret);
doc->Close();
Please mail me solution at the earliest.
Thanks and regards.
Karandeep Malik
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 :-
IVDocuments docs;
IVApplication app;
IVDocument doc;
app->put_Visible(FALSE);
app->get_Documents(docs);
docs->Open("E:\\BOM.txt",doc);
short *lp2iret;
docs->SaveAs(doc,"E:\\BOM.vsx",lp2iret);
doc->Close();
Please mail me solution at the earliest.
Thanks and regards.
Karandeep Malik