Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
How to create Graphs on OpenInsight forms
Hello,
I am using OI 9.3.2.
Is it possible to show graphs on OI form?
I want to show some financial information graphically using charts, like pie, bar chart etc.
Any solution within OI, ? or any work around using MS Excel ?
Please suggest.
I am using OI 9.3.2.
Is it possible to show graphs on OI form?
I want to show some financial information graphically using charts, like pie, bar chart etc.
Any solution within OI, ? or any work around using MS Excel ?
Please suggest.
Comments
ActiveX Controls - There are some third-party ActiveX controls you can drop into an OLE control within an OpenInsight form. This would give you the best "embedded" experience within an OI form. We've used a control from ChestySoft. It's a bit dated, but it works. I'm sure there are other third-party controls that will work but I'm not as familiar with them. We have been wanting to create our own controls but they have not been a high priority for us.
.NET Controls - Similar to ActiveX controls, there are several .NET controls that can produce graphs. You can embed a .NET control into your form using the OpenInsight invoker control or by getting the source of the .NET control and recompiling it with a COM interface (thus making it into an ActiveX control). I don't know of anyone who has done this with a graph controls, but I would not be surprised if someone has done this.
Web APIs - Services like Google Charts allow you to submit data and get a web response that you can display in a browser control in your OI form. These can be very rich and flexible, but they do require you to be online.
Working with Excel is definitely an option that people have used, but you don't get the embedded experience that I think you are after. This would require you to use OLE Automation with the Excel object.
Hopefully that gives you something to chew on.
Please explain!
>>We have been wanting to create our own controls but they have not been a high priority for us.
I am sure that would be a welcome addition by all - Mmm 'crowd funding' LOL
Caveat: It could have just been me. I didn't have any actual requirement and was merely experimenting to try and grasp the potential.
Did anybody else have any success in using this to provide actual functionality?
It is functional. However, I will say that the code needed to manage .NET controls this way is very cumbersome. It reminds me very much of the code often needed to expose Windows Common Controls in OI. If this is the only way to get functionality that is greatly needed, then you do what must be done. But if there is any other way then I would definitely avoid using .NET controls or I would try to find a way to port them as a COM object.