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!

Using CR Web Reporting from within ActiveX Control

Status
Not open for further replies.

emcveigh

Programmer
Jan 30, 2001
5
US
Is it possible to call a report hosted by the web component from an ActiveX Control? I have created a control that I need to display a report in. I don't really want to have to use the RDC since I am also making the report available through web reporting. Is it possible to direct the viewer to a URL?

Thanks in advance!

Emma
 
Emma: Don't think you can do this but if you're using v8 then have a look at the Hyperlink property of a formula field - this would enable you to link to a different report which could be web based David C. Monks
david.monks@chase-international.com
Accredited Seagate Enterprise Partner
 
David,

Thanks for the response. I was actually able to figure it out this morning. See code below:

Option Explicit

----------------------------------

Private Sub Command1_Click()

CRViewer1.Visible = True
Check1.Visible = True

Dim webBroker, webSource
Set webBroker = CreateObject("WebReportBroker.WebReportBroker")
Set webSource = CreateObject("WebreportSource.WebReportSource")
webSource.ReportSource = webBroker
webSource.URL = " webSource.Title = "Employee Profiles"
CRViewer1.ReportSource = webSource
CRViewer1.ViewReport

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top