cancel
Showing results for 
Search instead for 
Did you mean: 

Method of adding a graphic to a Report

Former Member
0 Kudos

After evaluating the charting that comes within Crystal Developer 14.0. and searching on the net It appears that there is not way to set the y Axis (or x axis for that matter) scale at run time.  I have a report with date/value pairs that I want in a x-y line chart.  There are several "groups" of these pairs that are different charts (the chart is in the Group footer). Each "Group of pairs" has a min and max value that is known only at run time.

It appears my choice is to create the chart outside of Crystal (in my C# application), convert the chart to an Image, and somehow have the image appear in the report.  I am using Visual Studio 2010 and an ADO.Net (XML) data set. (I have purchased the Bus Obj Crystal Developer I am not using the free one that you download for visual studio)

Is there a data type I can use to imbed the graphic in the Data Set?  (I.E. Byte[] or Object)?

Any other thoughts would be appreciated

Neal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Neal,

In the dataset, it's type is byte[].

For Ex:  Save the image as a serialized string in the database.

Get it back as a byte array to put in the dataset:

byte[] buffer = Convert.FromBase64String(serialized string filed)


In the Crystal Report design tool, we just drag the field.

Former Member
0 Kudos

I shall give that a try, sounds simple enough

Thanks

Answers (0)