在客户端计算机上使用Microsoft Report Viewer [英] Working with Microsoft Report Viewer on Client's machine
本文介绍了在客户端计算机上使用Microsoft Report Viewer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用VB.Net创建了一个包含RDLC报告的应用程序。它适用于我的机器,但当我在客户的机器上运行时,它没有工作并向我显示此错误。
错误:
_______________________________________________________________
I have create an application with VB.Net containing RDLC report. It works fine with my machine but when I run it in my customer''s machine it didn''t works and show me this error.
Error :
_______________________________________________________________
************** Texte de l'exception **************
System.InvalidOperationException: Une erreur s'est produite lors de la création du formulaire. Pour plus d'informations, consultez Exception.InnerException. L'erreur est : Impossible de charger le fichier ou l'assembly 'Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' ou une de ses dépendances. Le fichier spécifié est introuvable. ---> System.IO.FileNotFoundException: Impossible de charger le fichier ou l'assembly 'Microsoft.ReportViewer.WinForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' ou une de ses dépendances. Le fichier spécifié est introuvable.
à GestionKhaled.devis.InitializeComponent()
à GestionKhaled.devis..ctor()
--- Fin de la trace de la pile d'exception interne ---
à GestionKhaled.My.MyProject.MyForms.Create__Instance__[T](T Instance)
à GestionKhaled.My.MyProject.MyForms.get_devis()
à GestionKhaled.Nouveau_vente.print_devis_Click(Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ButtonBase.WndProc(Message& m)
à System.Windows.Forms.Button.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
_______________________________________________________________
_______________________________________________________________
推荐答案
现在没关系
解决方案是将以下文件复制到应用程序的目录:
It''s ok now
The solution was to copy the following files to the app''s directory :
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.WinForms.dll
Microsoft.ReportViewer.DataVisualization.dll
Microsoft.SqlServer.Types.dll
这篇关于在客户端计算机上使用Microsoft Report Viewer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文