wpf - How To Use ReportViewer -
//declare object
reportviewer rv = new reportviewer();
error 1
the type 'system.windows.forms.usercontrol' defined in assembly not referenced.
you must add reference assembly
'system.windows.forms, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'. c:\users\dsingh\documents\visual studio 2012\projects\rd\rd\mainwindow.xaml.cs 27 13 rd
your error answers question, try adding windows forms assembly. follow following steps
- right click on project in visual studio
- click on
add reference
option - click on
.net
tab - scroll
system.windows.forms
component name - click on
add reference
and don't forget add reference in window or page start tag. follow link provided in below comment fredrikredin
Comments
Post a Comment