on 2008 Sep 21 9:34 AM
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" -->
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.