VB.Net for setvalue and getvalue with ComException error!
Hello guys till now i found some examples for accesing Mathcad sheets and extracting outputs and it works.
The Problem is now i read here a lot about sth like that it is not possible to recalculate some sort of functions. Well I rewrited a code i found here and there is a small problem (maybe big not sure). Tried to get customer services and I have a ticket but ....have not that much of time to wait for them to call me (already one week passed).
Ok attached you can find my Mathcad sheet and everything works fine with it when i set the values. If i do it now with visual basic i get an error for getvalue:
ComException error
What Im doing is to set some values in my Mathcad Sheet and in the end i have a function with minimize. I defined that function as "optimal" look here:




Well if i set the values in Mathcad everything works well and i have a solution. BUT if i do it with visul basic COMexception occurs. What is wrong here ? I mean if i set the values than i see in Mathcad its calculating around 5 sec. and bäm: comexception ....
Alright maybe someone here who knows or had this problem with the help in mathcad i couldnt find a solution sitting here since couple days and tried nearly everything ^^

