codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
This 68 message thread spans 5 pages:  < <   1   2   3   4  [5] > >  
  Re: dynamic crystal report generation  luka_brol at 17:46 on Friday, July 11, 2008
 

you can create dynamic crystal report using vb.net strongly typed dataset and pass sql query to crystal report. check this link.

http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm

brol




  Re: dynamic crystal report generation  bhappy at 04:36 on Saturday, July 12, 2008
 

Hi,

I am generating report dynamically using formula fields.I am sending all values from code behind to crystal report using formula fields and parameter fields.but it is printing only one record. my code in crystal report formula field is:
Local StringVar s;
Local NumberVar i;
For i := 1 To Ubound({?p_total}) Do
(
s:=uppercase({?p_empname})
);
totext(s)

here {?p_total} is one parameter field having no.of employees ex:1,2,..5
and {?p_empname} is one parameter field having emp names like A,B,...E

If i choose any dummy table having 5 rows then all records are printing(table from database field-->sql server -->dummy tablename).Is there any way without selecting database in crystal report. Because in localhost it will work, but if i upload to Online i can't select database(database creation is also dynamic for each and individual company)
Any idea plz................

Thanks.

  Re: dynamic crystal report generation  Intellect at 12:48 on Saturday, July 26, 2008
 

Hi Dipali,

My Question is can we create the group dynamically in the Crystal Report?

Schenario :

I have created one report Where data using 3 different Groups I have added.

Group #A County
Group #B Region
Group #C Route
---
And Accordinglly reords are displyed

Can I change these Group Dynamically.

i.e Group #C insted of Route I wants is By ItemCode
Can I change it to ItemCode at runtime?


Plz.Suggest.

Tnx.

Regards

  dynamic crystal report generation  raki9966 at 05:49 on Monday, November 24, 2008
 

hkj

  dynamic crystal report generation  raki9966 at 05:59 on Monday, November 24, 2008
 

well i am a beginner at c#.net and has got stuck with a problem where i have to generate datatable dynamically and i has to fetch this datatable to the crystal report as a source.

i have the data table but i don't know how to provide this data table that i have generated as the input to the crystal report.
please help me!

Ravi.


  Re: dynamic crystal report generation  josi_nathan at 07:11 on Tuesday, November 25, 2008
 

thankyou very much for give me the link
http://www.c-sharpcorner.com/UploadFile/uditsingh/CR1111022006055359AM/CR11.aspx

  Re: dynamic crystal report generation  saviolan at 05:42 on Wednesday, April 15, 2009
 

DataRow r = default(DataRow);
int i = 0;
for (i = 0; i <= 9; i++)
{
r = t.NewRow();
r["id"] = i;
r["Item"] = "Item" + i;
t.Rows.Add(r);
}

CrystalReport1 objRpt = new CrystalReport1();
objRpt.SetDataSource(ds.Tables[1]);

http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-without-database.htm

thanks.
savi.

  Re: dynamic crystal report generation  alexdenipaul at 18:07 on Monday, October 12, 2009
 

Most of my efforts this week has been dedicated to generate crystal reports dynamically or "codically". Though I have not been 100% successful in this endeavor business card, I saw a few pieces of gold here and there. The following tests have been performed using Visual Studio Beta 2005 and whatever version of Crystal Reports it came with!

Removing/Editing an existing object from the report
In order to remove an existsing report object from a report (testReport), the following code can be used as an example:

testReport.ReportDefinition.Sections["Section3"].Height = 600;
testReport.ReportDefinition.Sections["Section3"].ReportObjects[0].ObjectFormat.EnableSuppress = true;
//The report object as well as section can be addressed using the integer subscript (as done in ReportObjects[0]) or its name (as done in Sections["Section3"]credit score)


thanx for responding but my need is such that i dont have any fixed structure for the table... which is the datasource for my report. the choice made by the user defines the structure at the run time and the data is then filled into it. So, i need the API using which i can define the structure of the data to be shown at run time and put data which is there in my table into the detail section.
hoping for a positive response telemarketing.

I have been trying to findmout how to generate a dynamic report in visual basic. I know how to design a database program and use crystal report or data report with dataenvironment. Really this does little compared to what i want. What i need is that when a user select the fields he/she wants to use or see i want those fields alone to be reported in the crystal report or data report. That is what i have been trying to find out. Please kindly help me if you can foreclosure.

This 68 message thread spans 5 pages:  < <   1   2   3   4  [5] > >  







CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009