Saving a chart as an image has nothing to do with the chart type.
I would guess that you are trying to save the chart before it has actually been drawn. Defining the chart, as done in the FinOHLCPlot constructor of the example, does not draw it. The chart is drawn in response to the windows draw event later on. Until the chart is drawn, it does not have a size. Add a menu to the application and then invoke the examples SaveAsJPeg function from the menu. That way, you can see the chart when you invoke the SaveAsJPeg routine.
The tutorial example, LinePlotSalesVolume has a simple example of saving a chart as an image. You should run that and select File | Save As Jpg from the charts simple menu. Once you verify it works, study the code, then either add the appropriate code to your own program, or replace the exisiting chart in the LinePlotSalesVolume with the FinOHLCPlot chart.
This discussion assumes that you actually want to display the chart on the screen. Specify if it is otherwise. |