C++/VB - CR 8.5 / ASP.NET 3.5 / SQL2K Boolean Parameter

Asked By bh
19-Mar-10 12:44 PM
I have a crystal report (8.5) based on a SQL2K Stored procedure that accepts
a single bit parameter (@Qual), which defaults to 0 in the procedure.

When I run the report from crystal, it works fine, whether I select true or
false.

When I run the report from .NET, no matter what I send to the discrete
parameter, it filters out only the true (1) records.


Imports CrystalDecisions.Shared
Dim paramField As ParameterField = New ParameterField
Dim dscVal As ParameterDiscreteValue = New ParameterDiscreteValue
-----set dscVal using one of the following scenarios, below----
paramField.CurrentValues.Add(dscVal)

Scenario 1: (returns only records with @Qual = 1 in the database)
dscVal.Value = False

-OR-

Scenario 2: (returns only records with @Qual = 1 in the database)
dscVal.Value = 0

-OR-

Scenario 3: Errors out, as you can not pass chr() data into a discrete value
dscVal.Value = Chr(168)

Any help you could offer to get this operational would be appreciated.
Thanks in advance.
bh
DataDefinition.ParameterFields
(1)
ASP.NET
(1)
ParameterDiscreteValue
(1)
Database
(1)
Report
(1)
ParameterField
(1)
DscVal.Value
(1)
ParamField
(1)
  bh replied to bh
20-Mar-10 11:07 AM
Not just boolean--I tried changing the parameter type to int then string &
displaying on the report, and realize, the stored procedure is not
recognizing any value passed in through vb/asp.net.  The report is accepting
that a value has been passed, and I have tested that the parameter name in
report's DataDefinition.ParameterFields matches what I am sending in.  This
is really frustrating.  I can pass other (Crystal--not SQL stored procedure)
parameters that are in the report to the report without any problem.  This
is really frustrating, and would help from anyone who ise experience/resolved
this issue.  Thank you.
help
Print the report C++ / VB I need to print crystal reports in asp.net how can I do that Thanks Anuradha VB Crystal Discussions ASP.NET (1) Report (1) Crystalreport (1) Pls mention the crystalreport version you used in your application and version of ASP.NET. keywords: Print, the, report description: I need to print crystal reports in asp.net how can I do that Thanks Anuradha
ASP.NET Impersonation in a Windows 2003 non domain member server C++ / VB Hi everybody, Is it possible to do ASP.NET Impersonation in a windows 2003 non domain member server (locate at the DMZ)? If so in advance for your kind reply Best regards, Johann Granados Staff DotNet Win32 Networks Discussions ASP.NET (1) NET (1) ASP (1) DotNetRe (1) IMHO (1) DMZ (1) NG (1) Impersonation (1) IMHO better NG for your question : microsoft.public.security Arkady keywords: ASP.NET, Impersonation, in, a, Windows, 2003, non, domain, member, server description: Hi everybody, Is it possible
Using tapiRequestMakeCall on a production asp.net server C++ / VB I'm able to use tapiRequestMakeCall to launch the windows phone dialer via asp.net on my development machine. Are there security or other settings preventing it from working on my production web server? Thank you, Andrew Win32 TAPI Discussions TAPIaroundTheWorld (1) ASP.NET (1) QTAPIax (1) VB.NET (1) TapiRequestMakeCall (1) IObjectSafety (1) AxMyControl (1) MatthiasVB6 (1) Andrew occured to me that this might be the problem. Is it possible to have an asp.net page launch the dialer on a client machine? thank you, Andrew Getting at local interfaces
save Webcam feed to wmv from ASP.NET C++ / VB Hello, I am trying to create an ASP.NET web application where we can record video and sound from a webcam on the client and now would like it in web. Thanks in Advance, Phil Win32 DirectX Video Discussions ASP.NET (1) ASP (1) NET (1) WindowsForms (1) DirecShow (1) PhilRe (1) Webcam (1) Dshow (1 for managed dshow is the DirecShow.Net project. I do not know if it is ASP.NET compatible. You can find more about it and other available dshow resources on my Links