Creating graphs in non-gui server app

Forums for specific tips, techniques and example code
heather
Posts: 1
Joined: Thu Jan 07, 2010 10:45 am
Location: Christchurch

Creating graphs in non-gui server app

Postby heather » 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?

JohnP
Posts: 73
Joined: Mon Sep 28, 2009 8:41 am
Location: Christchurch

Re: Creating graphs in non-gui server app

Postby JohnP » Mon Jan 11, 2010 8:40 am

Try making the app GUI NoForms. Then it will be able to create forms. These cannot run directly as server apps. You will need to run it as a standard client.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 14 guests