|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
Salut,
l'erreur :"Erreur de chargement de la dll cdo32" apparaît lorsque je veux référencer "Crystal Data Object" à partir de Visual Basic 6. Le fichier cdo32.dll n'existait pas sur ma machine, je l'ai rajouté mais l'erreur persiste. Est-ce ce problème qui génère l'erreur suivante lors de l'exécution de ma page asp? Type d'erreur : Crystal Reports ActiveX Designer (0x80043AC3) Fichier introuvable. Détails : error /New ASP PAge1.asp, line 70 ou alors serais-ce une autre cause. Pourriez-vous me trouver une solution? Merci P.S. La ligne 70 renferme l'instruction Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1) |
|
|
00
|
|
|
#2 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
bonjour,
je n'ai plus d'erreur au niveau de VB6, mais lors de l'exécution de ma page asp cette erreur persiste Type d'erreur : Crystal Reports ActiveX Designer (0x80043AC3) Fichier introuvable. Détails : error /New ASP PAge1.asp, line 70 merci |
|
|
00
|
|
|
#3 |
![]() ![]() Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT Inscription : janvier 2005 Messages : 7 299 ![]() |
Et il y a quoi à la ligne 70 de Page1.asp ?
|
|
|
00
|
|
|
#4 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
il y a cette instruction :
Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1) |
|
|
00
|
|
|
#5 |
![]() ![]() Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT Inscription : janvier 2005 Messages : 7 299 ![]() |
Et le chemin est bon ? (Surtout si tu es sur un serveur)
|
|
|
00
|
|
|
#6 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
le chemin est bon et je suis en local.
j'ai l'impression qu'il me manque des dll |
|
|
00
|
|
|
#7 |
![]() ![]() Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT Inscription : janvier 2005 Messages : 7 299 ![]() |
Si tu as mis un chemin du genre c:/blabla... je ne suis pas sûre qu'il aime.
|
|
|
00
|
|
|
#8 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
voici la page asp
NewAspPage1.asp |
|
|
00
|
|
|
#9 |
![]() ![]() Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT Inscription : janvier 2005 Messages : 7 299 ![]() |
Ton lien ne m'aide pas, j'aimerais savoir ce que contient path et filename.
Fais un affichage et regardes si c'est bon. S'ils sont bons, met les sur le forum (en cachant une partie du chemin si ca te gêne). |
|
|
00
|
|
|
#10 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
je comprends pas bien, mais voici le contenu de la page
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Reportname = "ImportationsParProvenance" Param1 = request.Form("annee") response.Write("<br>") '---Déclaration et instanciation des objets pour les données Dim oImpParProvenance, rsLstImportation Set oImpParProvenance=Server.CreateObject("PrjImpParProvenance.ImpParProvenance") Set rsLstImportation=Server.CreateObject("ADODB.Recordset") 'Set rsLstImportation=oImpParProvenance.ImportationsParProvenance1(Param1, Param2, Param3) '---------- sess = Session.SessionID Reportname = Reportname & ".rpt" If Not IsObject (session("oApp")) Then Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11") End If Path = Request.ServerVariables("PATH_TRANSLATED") While (Right(Path, 1) <> "\" And Len(Path) <> 0) iLen = Len(Path) - 1 Path = Left(Path, iLen) Wend If IsObject(session("oRpt")) then Set session("oRpt") = nothing End if Set rsLstImportation = oImpParProvenance.ImportationsParProvenance1(Param1) Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1) Set session("CrSections ")= session("oRpt").Sections session("oRpt").discardsavedData session("oRpt").database.setdatasource rsLstImportation If Err.Number <> 0 Then response.Write(err.description) ' Response.Write "Error Occurred creating Report Object: " & Err.Description Set session("oRpt") = nothing Set session("oApp") = nothing 'Response.End End If 'Response.end 'Initialization of options session("oRpt").MorePrintEngineErrorMessages = False session("oRpt").EnableParameterPrompting = False Set CrystalExportOptions = session("oRpt").ExportOptions ExportDirectory = Path CrystalExportOptions.DiskFileName = ExportDirectory & ExportFileName CrystalExportOptions.FormatType = CInt(ExportType) CrystalExportOptions.DestinationType = CInt(1) CrystalExportOptions.PDFFileName = ExportFileName session("oRpt").Export False Response.Redirect (ExportFileName) %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Document sans titre</title> </head> <body> </body> </html> |
|
|
00
|
|
|
#11 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
ImportationsParProvenance est le nom de l'état
et il est dans "C:\Job_courant\SourcesVB\PrjEtEtats |
|
|
00
|
|
|
#12 |
![]() ![]() Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT Inscription : janvier 2005 Messages : 7 299 ![]() |
Je pense qu'un chemin relatif serait peut-être la solution (../dossier/monrapport.rpt par exemple).
|
|
|
00
|
|
|
#13 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
j'ai utilisé le chemin relatif, le programme page l'instruction d'erreur précédente mais provoque une autre erreur
Erreur d'exécution Microsoft VBScript (0x800A01B6) Cet objet ne gère pas cette propriété ou cette méthode: 'CrystalExportOptions.PDFFileName' au niveau de l'instruction :CrystalExportOptions.PDFFileName = ExportFileName |
|
|
00
|
|
|
#14 |
|
Invité régulier
![]() Inscription : juin 2005 Messages : 47 ![]() |
Bonjour,
merci à BiM d'avoir essayé de résoudre ce problème |
|
|
00
|
|
|
#15 |
![]() ![]() Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT Inscription : janvier 2005 Messages : 7 299 ![]() |
Il n'y a pas d'attribut PDFFileName alors.
|
|
|
00
|
Copyright © 2000-2012 - www.developpez.com