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

Crystal Activex Report Viewer

Status
Not open for further replies.
Oct 3, 2007
15
US
I'm trying to add the Crystal ActiveX Report Viewer control to my Access form. I have already created the crystal report and would like to be able to view it from the form. I can't find any documentation on how to use the control to view the report. How do I set the control properties to be able to view the report when the form loads.

Thanks,
Brent
 
Have you got something like this?

Code:
Crystalreport1.ReportFileName = rpt_name 
Crystalreport1.Destination = crptToWindow 
Crystalreport1.WindowState = crptMaximized 
Crystalreport1.WindowShowNavigationCtls = True 
Crystalreport1.WindowShowPrintBtn = True 
Crystalreport1.WindowShowRefreshBtn = True 
Crystalreport1.LogonInfo(0) = "pwd3" 
Crystalreport1.Action = 1

--
--
 
So I've added the crystal activeX report viewer control 11 onto the form and named it CrystalReport1. In the form load event I tried adding your code, but there is no ReportFileName property for CrystalReport1. Am I missing something?
 
When you say no ReportFileName property, do you mean that the property does not pop-up with intellisense? If so, this is often the case with ActiveX controls - you need to get information about the various properties elsewhere. Sometimes a good deal of information is available from the right-click menu under the name of the control type.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top