cancel
Showing results for 
Search instead for 
Did you mean: 

migrate crystal reports from asp to asp.net

Former Member
0 Kudos
103

Hi,

I want to migrate crystal reports from asp to asp.net 2003...Below is the sample asp code...how to do this in asp.net

'*** ASP **************************************

<%

If IsObject(session("oApp")) then

set session("oApp") = nothing

end if

Set session ("oApp") = Server.CreateObject("Crystal.CRPE.Application")

If isObject(session("oRpt")) then

set session("oRpt") = nothing

End If

Blah....blah...blah......

'=======================================================================

' WORKING WITH THE REPORT DESIGNER COMPONENT AND ASP TO PREVIEW A REPORT

'=======================================================================

reportname = "ABC.rpt"

'==================================================================

' ALWAYS REQUIRED STEPS

%>

<!-- #include file="AlwaysRequiredSteps.asp" -->

<%

'==================================================================

' WORKING WITH THE REPORT PARAMETER COLLECTION

'The following section shows setting single valued parameters of various data types.

Session("oRpt").ParameterFields.GetItemByName("MONTH").AddCurrentValue(CDbl(strMonth))

Session("oRpt").ParameterFields.GetItemByName("RATE").AddCurrentValue(CStr(strRate))

'==================================================================

' MORE ALWAYS REQUIRED STEPS

%>

<!-- #include file="MoreRequiredSteps.asp" -->

<!-- #include file="SmartViewerActiveX.asp" -->

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Mohamed,

what is more, I recommend to post further queries to the [.NET Development - Crystal Reports|; forum.

This forum is dedicated to topics related to custom application development or deployment with Crystal Reports in .Net. This includes full versions of Crystal Reports as well as those versions of Crystal Reports bundled with Microsoft Visual Studio .Net.

It is monitored by qualified technicians and you will get a faster response there.

Also, all Crystal Reports .NET Development queries remain in one place and thus can be easily searched in one place.

Thanks a lot,

Falk

Former Member
0 Kudos

Hello Mohamed,

please see these [Sample apps with cr_xi2_migrating_from_rdc_to_net.pdf|https://smpdl.sap-ag.de/~sapidp/012002523100005853312008E/cr_xi2_migr_rdc2net_smpl.zip].

These samples should cover all your questions.

Best regards

Falk