473,396 Members | 1,766 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,396 software developers and data experts.

ParameterRangeValue and setting the range

I've seen postings before showing users how to set the range but I'm
still not able to get it working locally.

I have a report with one range and nothing else, it's a date range, I
need to set it and have Crystal restrict the records being displayed
on the report. It sounds simple but I can't get it working. I've
referred to CrystalDecisions and the example is written in VB.NET,
still not working...please help.

The report is displayed from a CrystalReportViewer and is bound to a
dataset, the entire table contents. Since ASP.NET doesn't launch a
range prompt like the Windows.Forms does I understand I need to do
this programmatically. I've added two calendar web form objects to the
..aspx file for a start and end date, I added a submit button to
"refresh" the report after setting the Start and End dates in my
ParameterRangeValue. I've included the following code which should be
usable in the Page_Load and Refresh_Click methods.

Most of this code is right from Crystal except for the .Clear(),
..SetDataSource() and the .RefreshReport().

ReportsOverViewAll cdReport = new ReportsOverViewAll();
pfdsDateRange = cdReport.DataDefinition.ParameterFields;
pfdDateRange = pfdsDateRange["cpDateRange"];
prvDateRange.StartValue = calBeginDate.SelectedDate;
prvDateRange.EndValue = calEndDate.SelectedDate;
prvDateRange.LowerBoundType = RangeBoundType.BoundInclusive;
prvDateRange.UpperBoundType = RangeBoundType.BoundInclusive;
pvsDateRange = pfdDateRange.CurrentValues;
pvsDateRange.Clear();
pvsDateRange.Add(prvDateRange);
pfdDateRange.ApplyCurrentValues(pvsDateRange);

cdReport.SetDataSource(dsEvalsAll1);
crvReportsOverviewAll.ReportSource = cdReport;
crvReportsOverviewAll.RefreshReport();

thanks Rick
Nov 15 '05 #1
0 1644

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

Similar topics

6
by: rzed | last post by:
I'm using PIL to generate some images which may be rotated at the user's option. When they are rotated, the original image is cropped in the new image (which is fine), and the corners are black...
2
by: Damian Arntzen | last post by:
I'm trying to suss out exactly how to assign borders to cells via C# into an Excel 2003 spreadsheet. I've been tinkering some more last night (Aussie time) and managed to figure out a lot more in...
0
by: Emmanuel | last post by:
Hi, I 've managed to run successfully the example provided by the Microsoft Q302901 - "How To Build an Office COM Add-in by Using Visual C# .NET" article...
0
by: James Wallace | last post by:
I would like to know if anyone knows how to apply a date range to a range value parameter of a crystal report without using the cystal report viewer. Currently I have to pass a range value to a...
2
by: cc | last post by:
Hi, I'm writing a .NET-application from which I work with a Word document. In the document do I create a table and set some properties of the cells in the table. Word.Table table1 =...
1
by: nitesh | last post by:
Hi all, i have been assigned a project where i need a little help from VB. My question is related to declaring range variables: Q: "Is i it possible in VB to declare a range variable that can...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
9
by: Doug Glancy | last post by:
I got the following code from Francesco Balena's site, for disposing of Com objects: Sub SetNothing(Of T)(ByRef obj As T) ' Dispose of the object if possible If obj IsNot Nothing AndAlso...
1
by: priyammaheshwari | last post by:
Hi All I am creating a database archiving tool,in which a user can delete all the data before a date he would specify.But the problem is i am not able to create a delete query which can delete a...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.