Saturday, February 25, 2012

display the description of the parameter field in the report

How do i display the description in the report for the parameter field
eg suppose Parameter UWName Value is AA Desc is Andy Arace
I want to display the Desc of the Parameter in the report details instead of the value AA
Pls helpNot sure what you really want, but here goes (VB Code using CRAXDRT COM object):
assumes you already have an instance of the report object open:

Dim objParamDefs As CRAXDRT.ParameterFieldDefinitions
Dim objParamDef As CRAXDRT.ParameterFieldDefinition
.
.
.
.
Set objPrintApp = New CRAXDRT.Application
Set objReport = objPrintApp.OpenReport(strReportSourcePath & strSource)
.
.
.
Set objParamDefs = objReport.ParameterFields

For Each objParamDef In objParamDefs
objParamDef.Print .Prompt
Next
.
.
.
does that help

dave|||Hi, I have the same problem too,
Springsoft, your answer doesnt match with the problem :(

No comments:

Post a Comment