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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Push Method - Object declaration problem

Status
Not open for further replies.

tjherman

Programmer
Jun 19, 2006
68
US
I'm trying to use a Push method with a dataset to generate a report. (I'm trying to pass a session variable as a parameter for the report.)

I've found several varieties of sample code that says it accomplishes this; each of these sets of code include a line similar to the following:

Dim oRpt As New CrystalReport1

My VS (2005) does not like the "CrystalReport1" object name. What am I missing here? Should this really be an available object type?

Thanks very much!
 
OK, I believe that I see from looking at other samples that the "CrystalReport1" is the actual file name of the .rpt file that is being referenced on the page with the viewer.

I still get the error message that "CrystalReport1 is not defined". How do you set up a rpt page so that my code on the viewing page understands what this object is?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top