PDA

View Full Version : [C#] ERRORE..., non ho Crystal Report installato !!!


race2
07-12-2007, 11:43
Salve,
ho sviluppato un programmino che utilizza il Crystal Report,
solo che fino a che eseguo il progetto con il Visual Studio, utilizza quello integrato,
quando porto la mia applicazione fuori mi da errore, ho postato l'errore di seguito,

ma non posso fare stampe con Crystal Report senza averlo installato ???



************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
at Schedario.Stampa.InitializeComponent()
at Schedario.Stampa..ctor(Int32 _iID, String _sType) in F:\Visual Studio\C#\Schedario\Stampa.cs:line 24
at Schedario.Anagrafiche.tsmiStampa_Click(Object sender, EventArgs e) in F:\Visual Studio\C#\Schedario\Anagrafiche.cs:line 169
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs 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(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
WRN: Assembly binding logging is turned OFF.

RaouL_BennetH
07-12-2007, 16:31
Da quello che so, Visual Studio non ha crystal report integrato ;)

Il gestore di report di visual studio (integrato e solo per le versioni non express) si chiama ReportViewer, e per farlo funzionare anche sui computer 'esterni' devi installare sugli stessi il reportviewer redistributable.

Se invece tu hai installato oltre a visual studio, anche crystal report, allora, con la premessa che non conosco crystal report, credo che tu debba fare cosė:

Nel pc dove farai girare l'applicazione, devi mettere (possibilmente nella stessa directory del tuo eseguibile) la libreria che includi nei reference del progetto di visual studio inerente a crystal report. La copi dal tuo pc a quello 'esterno'.

Altrimenti, puoi crearti un semplice setup che faccia tutto da solo.

race2
07-12-2007, 16:55
infatti, vero .., ti ringrazio, ciao.