>Does anyone know how to preview a report in an MDI child window through VB code? The CR help file explains how to do it but it doesn't seem to work when I try it.
>
>BTW I'm using VB 5 and CR 4.6.1
>
>Thanls,
>Brian Hartin
>MCI Telecommunications
>Brian.Hartin@MCI.Com
Hi Brian,
To work out this, I suppose that you have your report ready. Place a crystal report control on your form and set the properties reportfilename to you .rpt file. To call this report from the form, place a command button and in the code write
crystalreport.selectionformula = ""
crystalreport.action = 1
Make sure your Reportsource property is set to Report File. And I assume that you have made your report with a MS Access database.
This will get you your report in a window.
Manika
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement