V
vicky
Hi All!
I am getting RPC_E_SERVERFAULT error while automating Visio-2000.
I've debugged and found that the problem occurs in following two
functions provided by .TLB file of Visio.
1: SaveAs(FileName); // For IVDocument class
2: SetText(Text); // For IVShape class
Following are the scenarios in which problem occurrs:
Scenario 1:
One interesting thing is that the problem occurrs only in start of
second page, the first page created successfully.
The problem occurred after creating shape and just after calling
function shape.SetText("text");
It is happening while creating start block of the diagram. Visio shows
that shapes has been created and text has been set, but, just after
this i got RPC_E_SERVERFAULT exception.
Scenario 2:
When there is one page and after creating and connecting all the
shapes when i call function doc.SaveAs(FileName);
exception occurrs.
How cud i sort outthis problem? Any help will be appreciated.
Thanks.
Regards,
Zia
I am getting RPC_E_SERVERFAULT error while automating Visio-2000.
I've debugged and found that the problem occurs in following two
functions provided by .TLB file of Visio.
1: SaveAs(FileName); // For IVDocument class
2: SetText(Text); // For IVShape class
Following are the scenarios in which problem occurrs:
Scenario 1:
One interesting thing is that the problem occurrs only in start of
second page, the first page created successfully.
The problem occurred after creating shape and just after calling
function shape.SetText("text");
It is happening while creating start block of the diagram. Visio shows
that shapes has been created and text has been set, but, just after
this i got RPC_E_SERVERFAULT exception.
Scenario 2:
When there is one page and after creating and connecting all the
shapes when i call function doc.SaveAs(FileName);
exception occurrs.
How cud i sort outthis problem? Any help will be appreciated.
Thanks.
Regards,
Zia