Crystal reports without using database/dataset in vb.net 2005
-
IS that possible to make Crystal reports without dataset or Database in .net 2005? IF posiible How ?can u please help?
Vv
-
IS that possible to make Crystal reports without dataset or Database in .net 2005? IF posiible How ?can u please help?
Vv
What exactly do you mean with "make"? If you mean to create the template you can use xml/xsl files (see here: developerfusion[^] or see here: devarticles[^]) in order to drag and drop the content to its place in the report. If you mean "bind the data to the report" with "make" it depends on what do you want to display in the report. If you have a table of some sort to display, i dont know any other way to bring the data to the report than using DataSets or a DataBase Connection. If you want to display static data (like a single name, a single date for instance, you can use the following piece of code to insert static text into prior defined fields in the report:
ReportDocument doc; doc = new ReportDocument(); doc.Load(reportFileName); ((CrystalDecisions.CrystalReports.Engine.TextObject)doc.ReportDefinition.Sections["YOUR_SECTION_NAME_WHERE_THE_FIELD_IS_LOCATED"].ReportObjects["FIELD_NAME_OF_THE_GIVEN_SECTION"]).Text = YOURNEWFIELDVALUE;
I hope this helps, let me know if you still have issues... Best regards Trollpower -
What exactly do you mean with "make"? If you mean to create the template you can use xml/xsl files (see here: developerfusion[^] or see here: devarticles[^]) in order to drag and drop the content to its place in the report. If you mean "bind the data to the report" with "make" it depends on what do you want to display in the report. If you have a table of some sort to display, i dont know any other way to bring the data to the report than using DataSets or a DataBase Connection. If you want to display static data (like a single name, a single date for instance, you can use the following piece of code to insert static text into prior defined fields in the report:
ReportDocument doc; doc = new ReportDocument(); doc.Load(reportFileName); ((CrystalDecisions.CrystalReports.Engine.TextObject)doc.ReportDefinition.Sections["YOUR_SECTION_NAME_WHERE_THE_FIELD_IS_LOCATED"].ReportObjects["FIELD_NAME_OF_THE_GIVEN_SECTION"]).Text = YOURNEWFIELDVALUE;
I hope this helps, let me know if you still have issues... Best regards TrollpowerAny other way to create the report without dataset in VB.net 2005
Vv
-
Any other way to create the report without dataset in VB.net 2005
Vv