473,660 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strongly typed Crystal Reports parameters in .NET

Hi all,

I'm having difficulties assigning values to CR parameters in VS.NET 2003.
For example, if I add a parameter named pCompanyID to the RPT file, VS.NET
creates a proxy class where it defines my strongly typed parameter so that I
can use intellisense and compile-time checks rather than getting the
parameter by it's string representation:

Here's how I'm trying to assign a value to it:

ParameterDiscre teValue paramDiscreteVa lue = new ParameterDiscre teValue();
IParameterField pCompanyID = crReportDocumen t.Parameter_pCo mpanyID; //
strongly typed
ParameterDiscre teValue pdvCompanyID = new ParameterDiscre teValue();
pdvCompanyID.Va lue = "TEST";
pCompanyID.Curr entValues.Add(p dvCompanyID);

However, when I put a breakpoint after the last line and try to debug, I
notice that the ArrayList pCompanyID.Curr entValues remains empty (Count=0)

Is there anything extra I need to do?

Thanks,

-Oleg.


Jul 21 '05 #1
0 1293

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

Similar topics

1
19160
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal Report at runtime? Example: private void button1_Click(object sender,
0
793
by: Oleg Ogurok | last post by:
Hi all, I'm having difficulties assigning values to CR parameters in VS.NET 2003. For example, if I add a parameter named pCompanyID to the RPT file, VS.NET creates a proxy class where it defines my strongly typed parameter so that I can use intellisense and compile-time checks rather than getting the parameter by it's string representation: Here's how I'm trying to assign a value to it:
1
1409
by: Dave | last post by:
I know there is some Crystal Reports functionality in .NET but I was wondering if it was possible to actually schedule Crystal Reports dynamically using csharp code and/or generate reports dynamically by pulling parameters from the database. I am not that familiar with Crystal but we have 3 report templates and we'd like to schedule (via Crystal's scheduling capabilities) or dynamically generate to create about 100 variations of these...
10
17528
by: Joriz | last post by:
Obviously im new with ms access..so my basic question is how do i run crystal reports in my ADP. I also pass parameters to cyrstal reports. Please help! thanks in advance
0
1132
by: Tom | last post by:
We have a .NET C# web-based application using Crystal Reports 9 to display reports. One of these reports has a dozen or so parameters. I would like to avoid having to build some custom parameter screen(s) that prompts the user for the parameters, but rather have the report itself (in the viewer) do the prompting (as if you were running the report in the Crystal Reports designer). I think you could do this in 8.5/ASP with the...
3
2613
by: Vivek | last post by:
Hi All, I am using .Net studio C sharp windows application (WinForm). Crystal reports r running fine.. I want to diplay report with conditions... Want to pass parameters to CR.. e.g. Start Date and End Date??? Thanx In Advance Vivek Kumbhojkar
0
2063
by: Henry | last post by:
Using ideas provided by some of you I was able to figure out how to get the names of the parameters fields of a crystal report specified at run time. The code below just basically puts the data into a comboBox. One thing I noticed, however, is that this method shows me both the parameters used by the main report and parameters used by the sub-report(s).
19
3868
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
1
3277
by: steveberwick | last post by:
**Using Visual Studio 2005 and Crystal Reports XI Release 2 Developer Edition. I currently have a multi-threaded C# application that loads a Crystal Report at runtime, fills out the necessary parameters and then exports the file to disk. I export around 5000 reports a day, in about 3 hours (nightly runs of the day's transactions), but sometimes, without warning or any debug info, the application locks-up using 100% of the processor...
1
8129
by: =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?= | last post by:
On reflection, you could possibly make the app a self extracting zip file which extracts the EXE and a settings file and then starts the app, then when you app closes, it can repack the settings file and itself into the exe. You would probably want a tool for this bit which could be in the zip too. So the app isnt single exe when running but when not running, it is. Just an idea for you to think about. Another option would possibly be to...
0
8341
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8751
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8539
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7360
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2759
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.