VijayK
asked on
Passing Parameter value to ActiveXViewer
I am Using ActiveXViwer to display Crystal Reports in ASP Page.
I have one Parameter field in my Report called "ID".
How i will pass value for that parameter? Please help me.
I have to export and Print the report once it displayed. So i am using ActiveXViewer. Am i right?
I have one Parameter field in my Report called "ID".
How i will pass value for that parameter? Please help me.
I have to export and Print the report once it displayed. So i am using ActiveXViewer. Am i right?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is AppId a string or numeric field?
If it is numeric try
webSource.AddParameterEx "AppId",1222,crPrompt
mlmcc
If it is numeric try
webSource.AddParameterEx "AppId",1222,crPrompt
mlmcc
Glad I could help
mlmcc
mlmcc
ASKER
<OBJECT ID="CRViewer" CLASSID="CLSID:2DEF4530-8C
WIDTH=80% HEIGHT=100% codebase="/viewer9/activeX
<PARAM NAME="EnableDrillDown" VALUE=0>
<PARAM NAME="EnableExportButton" VALUE=1>
<PARAM NAME="DisplayGroupTree" VALUE=0>
<PARAM NAME="EnableGroupTree" VALUE=0>
<PARAM NAME="EnableAnimationContr
<PARAM NAME="EnablePrintButton" VALUE=1>
<PARAM NAME="EnableRefreshButton"
<PARAM NAME="EnableSearchControl"
<PARAM NAME="EnableZoomControl" VALUE=1>
<PARAM NAME="EnableSelectExpertBu
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub window_onLoad()
Page_Initialize()
End Sub
Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker = CreateObject("WebReportBro
if err.number <> 0 then
window.alert "_LOC_The Crystal ActiveX Viewer is unable to create its resource objects_ENDLOC_."
else
Dim webSource
Set webSource = CreateObject("WebReportSou
webSource.ReportSource = webBroker
webSource.URL = "rptserver.asp?Application
webSource.PromptOnRefresh = True
webSource.AddParameterEx "AppId","1222",crPrompt
CRViewer.ReportSource = webSource
end if
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
--------------------------
Opening the report takes place in "rptserver.asp" page using "ReportClientDocument" object.
Can you please help me...