Foros del Web » Programación para mayores de 30 ;) » .NET »

Ayuda crystal reports vb2008

Estas en el tema de Ayuda crystal reports vb2008 en el foro de .NET en Foros del Web. Hola amigos!! Os comento el probelma que me surgió, haber si alguien consigue orientarme para solucionar un pequeño problemilla. El caso es que cree un ...
  #1 (permalink)  
Antiguo 21/04/2010, 07:56
 
Fecha de Ingreso: diciembre-2008
Mensajes: 28
Antigüedad: 15 años, 4 meses
Puntos: 0
Ayuda crystal reports vb2008

Hola amigos!!
Os comento el probelma que me surgió, haber si alguien consigue orientarme para solucionar un pequeño problemilla.

El caso es que cree un programa con VB2008 en el cual incluí algunos informes con Crystal Reports (Conexion ODBC a base de datos MySQL). En el ordenador que cree el programa, todo me funciona sin problemas, pero cuando lo instalo en otro PC e intento acceder algun informe, me aparece el siguiente ERROR:






See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. El sistema no puede hallar el archivo especificado. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. El sistema no puede hallar el archivo especificado.
File name: 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at StockBolsas.FormularioReporte.InitializeComponent( )
at StockBolsas.FormularioReporte..ctor()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
--- End of inner exception stack trace ---
at StockBolsas.My.MyProject.MyForms.Create__Instance_ _[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at StockBolsas.My.MyProject.MyForms.get_FormularioRep orte()
at StockBolsas.Inicio.RESUMENToolStripMenuItem_Click( Object sender, EventArgs e) in C:\Users\Floorplan\Documents\Visual Studio 2008\Projects\StockBolsas\StockBolsas\Formularios\ Inicio.vb:line 86
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3603 (GDR.050727-3600)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Fra...7/mscorlib.dll
----------------------------------------
StockBolsas1.01
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Archivos%20de%20programa/...Bolsas1.01.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...isualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...dows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...em.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...e.Remoting.dll
----------------------------------------
MySql.Data
Assembly Version: 6.1.2.0
Win32 Version: 6.1.2.0
CodeBase: file:///C:/Archivos%20de%20programa/...MySql.Data.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/S...ystem.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/S...ansactions.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...figuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...System.Xml.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/S...seServices.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Espero vuestra ayuda amigos.

UN FUERTE SALUDO A TODOS FOREROS
  #2 (permalink)  
Antiguo 21/04/2010, 16:05
Avatar de jaullo  
Fecha de Ingreso: abril-2009
Mensajes: 994
Antigüedad: 15 años
Puntos: 30
Respuesta: Ayuda crystal reports vb2008

Hola Luiscaloto, tal como lo dice el error es por problemas con el crystal. Me explico: En tu maquina funciona correctamente porque tienes todos los dll pero cuando instalas en otro pc estos dll estan perdidos. Para solucionar esto debes instalar el paquete redistribuible de crystal reports en cada pc en donde este tu sistema. El paquete lo puedes obtener creando un proyecto de instalacion, o bien, tal y como lo comente en el foro de asp.net, podrias descargar los ejecutables, para tu caso deberas descargar la version 10.

Checa el post
http://www.forosdelweb.com/f78/error...eports-797843/

Saludos,
  #3 (permalink)  
Antiguo 26/04/2010, 12:50
 
Fecha de Ingreso: diciembre-2008
Mensajes: 28
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Ayuda crystal reports vb2008

Muchas gracias por tu ayuda jaullo!!

Ya tengo solucionado el problema principal. Ahora me pasa una cosa muy extraña. Cuando desde el programa que cree con VB2008, cuando solicito el Reporte de Crystal Reports se me abre una ventana de autentificacion en la que por defecto ya me aparece el servidor MySQL y el usuario y me solicita la contraseña.

Aqui esta el problema, que aunque la introduzca bien, me da error:

"Logon Fail"

Alguna idea???
Muchas gracias de nuevo!!
  #4 (permalink)  
Antiguo 26/04/2010, 14:06
Avatar de jaullo  
Fecha de Ingreso: abril-2009
Mensajes: 994
Antigüedad: 15 años
Puntos: 30
Respuesta: Ayuda crystal reports vb2008

Claroo.. hace cierto tiempo tuve ese problema. Eso lo solucionas pasando en tu cadena de crystal los datos de conexion del servidor.

Algo asi
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocum ent
rpt.Load("reporte.rpt")

rpt.SetDatabaseLogon("SA", "123456")
cristal2.ReportSource = rpt


End Sub

O sino algo mas sencillo y que te evitara estos problemas es crear un dataset y ponerlo como fuente de datos de tus reportes.

Saludos,
  #5 (permalink)  
Antiguo 28/04/2010, 02:00
 
Fecha de Ingreso: diciembre-2008
Mensajes: 28
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: Ayuda crystal reports vb2008

Muchas gracias de nuevo por tu ayuda jaullo. Si me aparece algun problema te mantendre al tanto ok??

Gracias de nuevo
SALUDOS
  #6 (permalink)  
Antiguo 09/01/2012, 15:20
 
Fecha de Ingreso: enero-2012
Mensajes: 1
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: Ayuda crystal reports vb2008

esto te puede ayudar: agregar la parte final en el appconfig para q el crystal no se conecte a internet
<runtime>
<generatePublisherEvidence enabled="false"/>
</runtime>

Etiquetas: crystal, reports, vb
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:57.