Skip to Content
0
Former Member
May 13, 2008 at 10:32 AM

Dynamically creating a CR by code

25 Views

Post Author: ffderennes

CA Forum: .NET

Hello, I am discovering crystal reports (I have the basic version included with VS 2005). I would like to dynamically create a report by the code.I need to generate a report from a Dataset or DataTable but this source is variable.The columns of the table are not always the sames. I did research, and all the tutorials I have seen create models primarily via visual studio (with known column names). I wonder if it is possible to create and edit from A to Z the report by the code. I tried (creation of the object ReportDocument, but I can not add a section, TextObject ...). Visual Studio back me errors and tells me that these objects have no constructor. I began to wonder if it was possible to do that.If yes, in which version (maybe mine is too old). In any case, if someone has a runway, an example or a tutorial to advise me, I am taker. thank you in advance.