問題タブ [razorpdf]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
asp.net-mvc - RazorPDF を使用したビューの変換エラー
この形式のリンクを作成します: http://localhost:33333/Invoices/Reports?format=pdf
これを実行すると、次のエラーが表示されます。
System.InvalidOperationException: ディクショナリに渡されたモデル項目の型は 'System.Data.Entity.Infrastructure.DbQuery 1[<>f__AnonymousType9
11[Webb.Models.Faktury,System.Int32,System.String,System.Nullable 1[System.DateTime],System.Nullable
1[System.DateTime], System.Nullable 1[System.Single],System.Nullable
1[System.Int32]、System.String、System.Nullable 1[System.Single],System.Nullable
1[System.Single]、System.Nullable 1[System.Single]]]', but this dictionary requires a model item of type 'System.Collections.Generic.List
1[Webb.Models.Faktury]'.
意見:
コントローラ:
データベースからのデータを使用して成功ビューを pdf にエクスポートするにはどうすればよいですか?
-- 編集 1: