473,378 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how to generate dynamic crystal reports

i want to generate report dynamically in the formate

select * from table where month=m and year =y

How to do this ?very urgent..please help me
Oct 4 '06 #1
3 8063
bplacker
121 100+
i want to generate report dynamically in the formate

select * from table where month=m and year =y

How to do this ?very urgent..please help me

do the same as you would with a datagrid view.

open a connection to the database,
create a new data adapter (sql statement, connection name),
fill your dataset with the dataadapter,
fill your dataview with the table from the dataset,

set the report source of the crystal report to your dataview
Oct 4 '06 #2
bplacker...

HOW CAN I DO THIS:

set the report source of the crystal report to your dataview ??????????????????????????????????????????????????
Oct 12 '07 #3
dip_developer
648 Expert 512MB
bplacker...

HOW CAN I DO THIS:

set the report source of the crystal report to your dataview ??????????????????????????????????????????????????
actually

1. Set the DataSource of your report object to the Dataset or Dataview....and then.........

2. Set the ReportSource of the CrystalReportViewer to your report object.

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim myReport As New CrystalReport1
  3. myReport .SetDataSource(myDataset)
  4. myCrystalReportViewer.ReportSource = myReport 
  5.  
Oct 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Sam | last post by:
Hello everyone, I have a table, which contains a picture column, I put URL info into it. "www.myweb.com/1.jpg..." I want to show this picture in my crystal report, I find some samples show the...
3
by: jijo kuruvila | last post by:
How we can Dynamically generate a MS Word document using ASP.Net? -- Jijo kuruvila trivandrum,Kerala,India
1
by: Rutko | last post by:
Is it possible to dynamically create report and save it in rpt file? For example I want to add an text object in report on x,y position in page header. I need that dynamically, because I have a...
0
by: Richard Lister | last post by:
Hello, I need my ASP.NET application to generate a few PDF documents, such as Purchase Orders, Payment Receipts etc. I thought one easy way to do it might be to use Crystal Reports which I...
5
by: MeDhanush | last post by:
Hi Guys, Can anyone pl direct me on how to generate a PDF document from ASP.NET. I know it can be done using Crystal Reports. I'm looking for any other alternative approaches. First of all,...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
5
by: Ron | last post by:
I have a bunch of Crystal Reports (v9) published as WebServices and use a ReportViewer to display the reports on the ASPNET page. Everytime we move the reports from dev to production we have to...
0
by: PughDR | last post by:
As the subject of this topic suggestions I am trying to find a way to use ASP, SQL Server, Com+ and Crystal Reports 8.5 to Create Dynamic PDF Reports Over The Web, but the only article I found that...
1
Coldfire
by: Coldfire | last post by:
Problem background: I am developing a windows application (in VisualStudio.Net 2005) that inserts an Institute Info and based on the query I need to generate a report featuring the Detailed...
1
by: bhappy | last post by:
Hai All, I want to create crystal reports dynamically, I don't know the columns i will take it from database at runtime, im getting all data into one dataset and im convrting dataset into xml...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.