Quantcast
Viewing all articles
Browse latest Browse all 3636

CRforVS2010 Parameter Field compatibility error

Hi,

 

I am currently converting my VS2008 .NET web application over to VS2010 and have installed the new full release of CRforVS2010 (NOT Beta)

 

I have ran the conversion wizard and my report runs fine first time it is generated.  However, my report has 2 datetime parameters.  When I select a new date on my onscreen calendar (MS tool) it generates a post back on my page.  This is where I am getting an error:

 

"The types of the parameter field and parameter field current values are not compatible"

 

This error is not captured within my error handling but appears within my crystal viewer window.

 

I currently have the following code in my Page_Load code...

 

if IsPostBack then  crvThisReport.ReportSource = Session("ReportDoc")  crvThisReport.DataBind()
end if

 

I have checked the session object "ReportDoc" at this point and it is not set to nothing and all the parameter values are still set to the previously assigned values (as far as I can tell - HasCurrentValue = true), therefore I do not understand why this error would be generated, especially as it works ok first time the report is generated.

 

If anyone can give me some help with this I would be very grateful as I have trawled SAP and Google for answers but can not find anything.

 

Side Note: This code is there as I found if I print/export/zoom within the report viewer the page reloads and without this code I get another error:  'No valid report source is available.'


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>