Crystal Report - Como pasar 1valor a 1formula desde 1 cntrl ActiveX

 
Vista:

Como pasar 1valor a 1formula desde 1 cntrl ActiveX

Publicado por Julio (1 intervención) el 17/05/2006 18:16:48
Hola!

Necesito pasar un valor a una formula desde un control ActiveX en VB
en el cual uso el control Crviewer de Crystal report.

Mi código es el siguiente:

Dim webSource As New WebReportSource
Dim webBroker As New WebReportBroker
Dim sSelectionFormula As String

Set webBroker = CreateObject("WebReportBroker.WebReportBroker")

Set webSource = CreateObject("WebReportSource.WebReportSource")
webSource.ReportSource = webBroker
webSource.url = "http://172.30.0.251/Informes/reporte.rpt"

webSource.AddParameter "user0", "usr"
webSource.AddParameter "password0", "pwd"
webSource.Title = "Prueba"

CRViewer1.ReportSource = webSource
CRViewer1.ViewReport

Si tuvieran un código de ejemplo...
Gracias!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder