Hello,
I have searched that error on these message boards, msdn and
crystaldecisions.com. I found tutorials that showed how to export a
crystal report to pdf, but like many others I am getting an error when
I actually do the oRpt.Export() command. The error is "Missing
parameter field current value." I looked this error up on
crystaldecisions.com and they had a patch which I downloaded, installed
and rebooted the machine, but still same error. I set the parameters
and report in the Page Load method. I set the export options in the
Button event. I have a print button that will sets all the export
options and calls export, etc. I even tried adding a value right
before oRpt.Export() is called. I wrote this line before oRpt.Export()
this.oRpt.ParameterName.CurrentValues.Add(discrete value);
discrete value has a value with string "None" so I know there is a
value there, but it still errors out. Please can someone tell me why
this always comes up and a way around it? Since you can't print with
crystal report 9 directly in web forms I need to use this.
Thanks,
David 2 14229
Hi David,
Try following code to assign parameter to CR report:
ParameterDiscreteValue discretevalue = new ParameterDiscreteValue();
discretevalue.Value = objValue; // Assign parameter
ParameterValues values = new ParameterValues();
values.Add(discretevalue);
crReport.DataDefinition.ParameterFields(i).ApplyCu rrentValues(values);
HTH
Elton Wang el********@hotmail.com
"dr****@ortc.com" wrote: Hello,
I have searched that error on these message boards, msdn and crystaldecisions.com. I found tutorials that showed how to export a crystal report to pdf, but like many others I am getting an error when I actually do the oRpt.Export() command. The error is "Missing parameter field current value." I looked this error up on crystaldecisions.com and they had a patch which I downloaded, installed and rebooted the machine, but still same error. I set the parameters and report in the Page Load method. I set the export options in the Button event. I have a print button that will sets all the export options and calls export, etc. I even tried adding a value right before oRpt.Export() is called. I wrote this line before oRpt.Export()
this.oRpt.ParameterName.CurrentValues.Add(discrete value);
discrete value has a value with string "None" so I know there is a value there, but it still errors out. Please can someone tell me why this always comes up and a way around it? Since you can't print with crystal report 9 directly in web forms I need to use this.
Thanks,
David
Thanks,
I used that code in the button event handler right before oRpt.Export()
was called and it worked. I believe the function
ApplyCurrentValues(values) is what makes the difference.
Thanks again,
David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: kalpana.sinduria |
last post by:
Hi all,
how to remove the following complle error.
When I compiling the code I get the following errors:
Compiling...
CDrtEachDefFeat.cpp
d:\ include\common\cdrtintegfeat.h(39) : error...
|
by: soup_or_power |
last post by:
I'm passing the return from window.open as a function argument and
getting the error "missing ] after element list" when tested with
FireFox. Here is the relevant code. Many thanks for your help....
|
by: dcarson |
last post by:
I've read about this error in several other discussions, but still
can't seem to pinpoint the problem with my code. Everything seemed to
be working fine for some time, but it now tends to bomb out...
|
by: jodyblau |
last post by:
I'm new at this stuff, so bare with me.
I have a main form which displays a client record.
The main form has 2 subforms. The first subform has a list of Cases.
The Second subform is a list of...
|
by: sfrvn |
last post by:
I am embarrassed to say I cannot make this work. Recently upgraded to
Access 2003, but do not know if that part of problem (AKA 'syntax
change'). Would someone be kind enough to lead me by the...
|
by: Tog |
last post by:
Hello,
I have read several posts with this heading but none of them have helped.
I have the following error message:
Syntax error (missing operator) in query expression 'left(Your Product...
|
by: access baby |
last post by:
I hava a date parameter filter query but it shows error Syntax error
missing operator in query experssion
can some one please help where am i going wrong in expression
SELECT copyorderdtl * ...
|
by: oracle newbie |
last post by:
select student,trunc(hour,'mm') as period,sum(attempts) as attemptsfrom library_website_users a join library_website_stats b using (student_id)where trunc(hour,'yyyy') =...
|
by: thebarefootnation |
last post by:
Hi
I have the following error message "Syntax Error (missing operator)
in
query expression" occurring when I am trying to update combo box
within a form.
My code is:
Dim strSQL As String
|
by: Dave Richardson |
last post by:
Hi to everyone,
I have the following problem which is producing the following error:
Syntax error (missing operator) in query expression '(CourseNo = CN1863)
This caused from the follOwing...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |