bonjour,
quelqu'un peut-il m'aider a integrer dans un formulaire Access un viewer Crystal report ?
je souhaite visualiser et imprimer un etat crystal depuis ce formulaire.
merci
![]()

bonjour,
quelqu'un peut-il m'aider a integrer dans un formulaire Access un viewer Crystal report ?
je souhaite visualiser et imprimer un etat crystal depuis ce formulaire.
merci
![]()
Il te faut utiliser le moteur CRAXDRT de la version Crystal Developper.
Il est spécialement fait pour le VB.
http://support.crystaldecisions.com/library/kbase.asp

merci

j'arrive bien a creer un etat crystal avec 'CRAXDRT',
mais qui peut m'indiquer le code pour ouvrir un etat déjà existant
ex : c:\report.rpt
In order to use the RDC Automation Server with existing .rpt files first reference it:
- In VB menu select Project | References | Crystal Report 8 ActiveX Designer Runtime Library
- Click OK
Next put the Crystal Report Smart Viewer on a form in your application:
- In VB menu select Project | Components | Crystal Report Smart Viewer
- Click OK
- Double click it in the component bar to add it to the visible form.
Add the following code to the form with the Smart Viewer:
Voilà.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 'General Declarations Dim CrxApp As New CRAXDRT.Application Dim CrxRpt As CRAXDRT.Report Private Sub Form_Load() 'Use the OpenReport method of the Application object to open the report. Set CrxRpt = CrxApp.OpenReport("c:\report.rpt") CRViewer1.ReportSource = CrxRpt CRViewer1.ViewReport End Sub
![]()
Encore et toujours surhttp://support.crystaldecisions.com/library/kbase.asp
Y'en as qui non pas envie de chercher plus loin que l'bout d'leur nez.
![]()
comment passer en même temps le password de la base access sur laquelle est basé le report?
il faut utiliser la méthode setLocation de l'objet Table de la craxdrt.
Partager