Crystal report using Linq-to-sql

Posted by DATT OZA on Stack Overflow See other posts from Stack Overflow or by DATT OZA
Published on 2010-04-17T19:13:42Z Indexed on 2010/04/17 19:23 UTC
Read the original article Hit count: 541

Hello,

I am bit confusing in generating crystal report from linq-to-sql object in my WpfApplication.

crystalreport1 rpt = new crystalreport1();
datacontextclass1 db = new datacontextclass1();
var q = (from records in db.emp select records).toList();
rpt.setDataSource(q);
crystalviewer.reportsource(rpt);

I have done above steps...
but its prompts error
NotSupportedException Was Unhandled Dataset not support system.nullable<>

please help...

thanx in advance..

© Stack Overflow or respective owner

Related posts about crystal-reports

Related posts about linq-to-sql