Click here to Skip to main content
15,896,496 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create crystal report in WPF application using XSD dataset in VS 2008..I have tried with the below code but it is showing error in the line itself.
Can any1 please help me to rectify my problem?

XAML Code:
HTML
xmlns:rv ="clr-namespace:Microsoft.Reporting.WinForms;assembly=Microsoft.ReportViewer.WinForms" 
<WindowsFormsHost Height="100" Margin="189,76,332,0" Name="WindowsFormsHost1" VerticalAlignment="Top">
            <rv:ReportViewer x:Name="CRViewer"/>
            </WindowsFormsHost>


Vb.net Code:
VB
Report.Load("../../rptSanc_Impl")
            Dim rsSancImpl As New ADODB.Recordset
            rsSancImpl.Open(ReportQuery, MainCon, 1, 3)
            If Not rsSancImpl.EOF Then
                Report.SetDataSource(rsSancImpl)

            Else
                MsgBox("No records found.")
            End If
Crviewer.reportsource = report



I get error on last line of vb code.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900