Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Values inside Application

Status
Not open for further replies.

crystalkiwibruce

Programmer
Feb 16, 2011
104
NZ
I'm using Visual Studio 2010 with Crystal Reports 2010.

I've got my code loading values into parameter fields, but now I want my log to show what parameters values were used in the report if the user just answered the parameter form on the Viewer object on the form.

Lot's of objects to interrogate, but I can't see an easy way to extract the values of the parameters inside the report. Just want them as a String value to put in a message.
 
Hi,
Although not handled by Crystal, you should be able to add code that would write to a log file to the subroutine you already have ( I assume) that populates the parameter values or passes them to Crystal.



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
That would work fine if the parameter values were controlled by the application.

But there is also the situation where the user answers the prompts and fills the parameter values. The application doesn't know what those values are when the viewer displays the form.
 
Hi,
If the user is only responding to the prompts generated by the Crystal object, then it may not be possible to capture them since they are not 'known' ouside the viewer's scope.


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top