473,406 Members | 2,867 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,406 software developers and data experts.

ReportViewer Questions

Hello,

I have a windows application over data form that has a reportviewer control
on it. I have several reports defined, each works as expected when they are
embedded into the report.

On the form I have 3 buttons and two DateTimePicker controls. I want to use
the bottons to load the unique reports into the reportviewer. I want to use
the DateTimePicker controls as parameter inputs for one of the existing
reports.

I've spent days looking for a simple example or walkthrough but have found
either broken links or examples in c# (I'm still a VB newb, c# just confuses
me at this point) My Data source is an Access table, I've imported the
needed data as a dataset and used the tableAdapter query builder to some
limited success but I'm unsure of the relationship between the parameter
source (the DateTimePickers) and the datasource. I've read up on SQL Server
reporting services but I'm afraid that only added to my confusion. (I've also
perused "gotreportviewer.com")

I'm hoping someone will walk me through this two part question.

Thanks.

Jun 19 '07 #1
1 1651
On Jun 19, 10:49 am, MFC <M...@discussions.microsoft.comwrote:
Hello,

I have a windows application over data form that has a reportviewer control
on it. I have several reports defined, each works as expected when they are
embedded into the report.

On the form I have 3 buttons and two DateTimePicker controls. I want to use
the bottons to load the unique reports into the reportviewer. I want to use
the DateTimePicker controls as parameter inputs for one of the existing
reports.

I've spent days looking for a simple example or walkthrough but have found
either broken links or examples in c# (I'm still a VB newb, c# just confuses
me at this point) My Data source is an Access table, I've imported the
needed data as a dataset and used the tableAdapter query builder to some
limited success but I'm unsure of the relationship between the parameter
source (the DateTimePickers) and the datasource. I've read up on SQL Server
reporting services but I'm afraid that only added to my confusion. (I've also
perused "gotreportviewer.com")

I'm hoping someone will walk me through this two part question.

Thanks.
Dim newfrmReport As New frmReport
'Dim dr As OleDb.OleDbDataReader
Dim getCmd As New OleDb.OleDbCommand("Select * from TABLE
where DATE < #SOMEDATE# and DATE #SOMEDATE#", cnOleDb)

cnOleDb.Open()
newfrmReport.CrystalReportViewer1.ReportSource =
getCmd.ExecuteReader
cnOleDb.Close()

newfrmReport.ShowDialog()

This is a very simple SQL query from Access to fill a ReportSource. I
use a lot of parameters so this may need some tweaking to finalize
your end results. The #SOMEDATE# fields could be added in by
selections from the DTPickers then added subsequently into the string
for the SQL query.

any help?

Jun 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fabio Pagano | last post by:
I was wondering why is there so little interest on the reportviewer control and the report designer integrated in VS 2005. It seems very cool and i think it can replace Crystal Reports. Moreover,...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
1
by: steve | last post by:
Hi All I need help on how to manipulate the data returned from the database for displaying in the new reportviewer at runtime So far I have an rdlc file with a dataset, binding source and...
1
by: Rich | last post by:
Hello, I am trying to use the Reportviewer control. I have been following an example from the web, and the instructions from the help files on set up a ..rdlc and binding it to the reportviewer...
0
by: Rich | last post by:
Hello, I started using the Reportviewer control (very nice) for generating Reporting Services type reports in my VB2005 app. I have been experimenting using a designer Reportviewer control from...
0
by: Fred G. Sanford | last post by:
Firstly, I am a fairly new .Net developer, so please excuse any dumb/ignorant questions or comments. Thanks. I created a VWD Express project, which uses the ReportViewer control, on my local...
0
by: billygotee | last post by:
Hi, I posted an issue previously that was entirely accurate. I have a master report called "MasterReport.rdlc" and a subreport called "Subreport.rdlc". MasterReport.rdlc has a single subreport...
10
by: AG | last post by:
I am trying to use a ReportViewer control in a VS 2005 web application project (not Website project). When I try to create a new report (local), I can't seem to find any method to create a...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a VS 2008 ASP.NET webform that has a reportview tag on it, accessing an .RLDC report in local report. The columns for the report are essentially: Month Item #1 Item#2 Item#3 ...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.