Bonjour à tous,
j'ai reinstallé mon applicaction vb6 sur des machines windows 7;
chez moi,ça marche ,par contre chez un des clients, on n'arrive pas du tout à voir (aperçu) et faire des impressions.
pour l'impression,j'utilise le composant crystalreport;
voici un bout de mon code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Private Sub CmdImprimer_Click()
On Error Resume Next
Dim dbs As Database, rst As Recordset
Dim VMessage, VRéponse, VStyle, VTitre
Dim MonRésultat
...
ImpCrystalReport.ReportFileName = g_strChemin_Etat & ListeEtats
ImpCrystalReport.DataFiles(0) = g_strChemin_Base
ImpCrystalReport.WindowTitle = "Impression de " & ListeEtats
ImpCrystalReport.WindowState = crptMaximized
ImpCrystalReport.WindowShowZoomCtl = True
ImpCrystalReport.WindowShowExportBtn = True
ImpCrystalReport.WindowShowCancelBtn = True
ImpCrystalReport.WindowShowNavigationCtls = True
ImpCrystalReport.WindowShowPrintSetupBtn = True
ImpCrystalReport.WindowShowProgressCtls = True
ImpCrystalReport.Destination = 0 ' Aperçu
MonRésultat = ImpCrystalReport.PrintReport
If MonRésultat <> 0 Then
VMessage = "L'impression de cet état est interrompu par un problème non identifié."
VStyle = vbOKOnly + vbCritical
VTitre = "Impression"
VRéponse = MsgBox(VMessage, VStyle, VTitre)
End Sub |
ImpCrystalReport c'est le composant crystalreport.
chez le client,c'est le message d'erreur qui s'affiche:
VMessage = "L'impression de cet état est interrompu par un problème non identifié."
j'ai reinstallé toutes les dll et ocx de mon projet vb6 et meme crystal report sur la machine du client mais rien n'y fait!
si quelqu'un a une idée?
merci d'avance
Partager