Skip to Content
Former Member
Aug 12, 2008 at 04:18 PM

Preview and DataSets


I have been using Crystal Reports 2008 Basic that comes with Visual Studio 2008 and have successfully been building reports. However due to the functionality restrictions in the Basic version I have decided to trial the full version. My main issue has been difficulties with formatting, particularly with charts and legend text.

I gather with the full CR 2008 version I can change the legend text when in preview mode. However I'm having trouble using Preview mode when I have ADO.NET DataSet's as my datasource. I created an .XSD file in Visual studio to define a single table dataset schema and have designed my report around this XSD file. At runtime I populate a dataset and pass that to the CR Viewer using the SetDataSource property. All this works great. However I'm not sure what I should be doing in the designer to successfully get the Preview functionality to work. If I point my connection to the XSD file, preview returns a blank screen which is understandable as its just a schema file. Clicking use DataSet from Class seems to do nothing other than display an empty combo box. How do I get this to preview? I dont seem to have this hassle with the integrated VS designer, preview works well by just displaying dummy data in the abscence of real data. However I can't change the legend text using this designer. Can anybody help?