Creating graphs in non-gui server app
Posted: Thu Jan 07, 2010 11:06 am
I have a non-gui "Timer" application that regularly imports some data from a csv file. During the import process I am trying to create some graphs based on that data, and I will then store the graph images ready to be displayed later in a web application.
I have created a form that creates each graph in a Picture control, and then the graph image is retrieved from the Picture control and saved. That part is working fine when I run the application from within my single user development environment. The problem comes when this is deployed to the live system. In the live system, when the timer application tries to create the form that is used to make the graph image, I get this exception: UserInterfaceException 14123 : Operation is invalid for server execution.
In an attempt to avoid this error, I have tried creating a new gui application to create the graphs, and have attempted to start that application from the non-gui timer application, but then I get a different error: Exception 1244 (Invalid application type).
Is there any way that I can create a form in a non-gui application? Or can anyone suggest an alternative way of creating the graph images, perhaps without using a form?
I have created a form that creates each graph in a Picture control, and then the graph image is retrieved from the Picture control and saved. That part is working fine when I run the application from within my single user development environment. The problem comes when this is deployed to the live system. In the live system, when the timer application tries to create the form that is used to make the graph image, I get this exception: UserInterfaceException 14123 : Operation is invalid for server execution.
In an attempt to avoid this error, I have tried creating a new gui application to create the graphs, and have attempted to start that application from the non-gui timer application, but then I get a different error: Exception 1244 (Invalid application type).
Is there any way that I can create a form in a non-gui application? Or can anyone suggest an alternative way of creating the graph images, perhaps without using a form?