To Report Manager ( OpenSource ) Users.

Started by Marco Ruiz, April 27, 2005, 07:06:42 PM

Previous topic - Next topic

Marco Ruiz

I have created a report with Report Manager  (http://reportman.sourceforge.net ) And I am  utilizing from a program created With FireFly as a Control OCX.
The code that I utilize Is the following:

   Dim myPath As Variant, vTitulo As Variant, vRazon As Variant, vParam As Variant

   ' Set the Report path
   myPath = "..\rpt\rpfa0005.rep"          
   vTitulo = "Artículos"                                               
   vRazon = "F.M.E. DEL PERU S.A."                                                      
   vParam = "RAZON"
   Object Let DISPATCH_FORMARTIC_OCXCONTROL1.Title = vTitulo   
   Object Let DISPATCH_FORMARTIC_OCXCONTROL1.FileName = myPath
   Object Call DISPATCH_FORMARTIC_OCXCONTROL1.SetParamValue (vParam, vRazon)   
   Object Call DISPATCH_FORMARTIC_OCXCONTROL1.Execute  

To the creating report I utilized a connect string in order to a database from company x . In my application is permitted selecting a company and report must Print that company's data.
Is possible changing the Connect String In run time ?
The Databasea structure Is the same one In order To All the companies.

:?: