[英]How do I fix error saying “The type or namespace name X does not exist in the namespace Y”?
[英]Error on my namespace and how do i fix it RDL report?
我遇到了這個錯誤並且已經將 RDLC 報告安裝到我的 Visual Studio 並且有一個控制器可以將 RDLC 報告導出到 Excel。 現在,當我嘗試運行 view.cshtml 並收到此錯誤時
“標記 RDLReportViewer 不存在於 XML 命名空間‘clr-namespace:DSoft.RDL;assembly=RDLCPrinter。第 11 行位置 10”。
//Window.xaml
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:RDLC="clr-namespace:DSoft.RDLC;assembly=RDLCPrinter"
x:Class="RDLCDemo.MainWindow"
Loaded="Window_Loaded"
Title="RDLC WPF UserControl Demo" Height="800" Width="1024">
<Grid>
<RDLC:RDLCReportViewer x:Name="ReportViewer" Margin="10" Width="Auto" Height="Auto"/>
</Grid>
</Window>
確保您的依賴項中存在 RDLC DDL 還檢查名稱並檢查 wpf 中的 RDLC
https://www.c-sharpcorner.com/article/rdlc-report-using-wpf-and-c-sharp/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.