Ssrs 2008 将Reporting Services报告从VS2008升级到VS2010
我正在尝试将reporting services文件从VS2008转换为VS2010。它是在不使用ReportViewer的情况下填充和保存的 以下步骤会导致错误Ssrs 2008 将Reporting Services报告从VS2008升级到VS2010,ssrs-2008,reporting-services,Ssrs 2008,Reporting Services,我正在尝试将reporting services文件从VS2008转换为VS2010。它是在不使用ReportViewer的情况下填充和保存的 以下步骤会导致错误 在VS2010中打开项目。一切正常 打开.rdlc文件。它升级了 再次运行应用程序。它失败了 我从下载了示例,并使用的方法从保存信息 有没有办法避免这个错误?我需要能够使用VS2010更新报告 [错误] {“报表定义无效。详细信息:报表定义无效 具有无效的目标命名空间 '' 它无法升级。“} [守则] //Test Code try
//Test Code
try
{
ReportViewer viewer = new ReportViewer();
viewer.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(LocalReport_SubreportProcessing);
viewer.ProcessingMode = ProcessingMode.Local;
//Either get this via the embedded resource, or directly via the path. -> better to use embedded resource!
viewer.LocalReport.ReportEmbeddedResource = "AuthorBooks.AuthorBooks.rdlc"; //Namespace.ReportName.rdlc
//viewer.LocalReport.ReportPath = @"C:\Test Projects\ReportingServicesWorking\AuthorBooks.rdlc";
viewer.LocalReport.DataSources.Add(
new ReportDataSource
(
"AuthorBooks_Author",
m_authors
)
);
string mime, encoding, extension;
string[] streams;
Warning[] warnings;
byte[] report = viewer.LocalReport.Render("PDF", null,
out mime,
out encoding,
out extension,
out streams,
out warnings);
string outputPath = @"C:\Test Projects\ReportingServicesWorking\TestSave.pdf";
File.WriteAllBytes(outputPath, report);
Process.Start(outputPath);
}
catch (Exception ex)
{
//Do stuff here.
}
确保已安装,并且应用程序中使用了此版本的ReportViewer控件。确保已安装,并且应用程序中使用了此版本的ReportViewer控件。谢谢。我会试一试,让你知道我是否能让它工作。谢谢。我会试一试,让你知道我是否能让它工作。