How does Microsoft reporting work
Posted on 2009-05-04
I'm writing a VB.Net 2005 application. .Net Framework 2.
I would like to incorporate a few Microsoft reports(rdlc) in my application. These won't run off a SSRS server. They'll be local reports.
I can't seem to get the syntax working. Can someone please provide me with an exact code snippet? Let's say I have a report called "Report1.rdlc" in my project.
In Private Sub ExportReport
.... code goes here
I need to load the report file and/or load the report defition. I keep getting errors that say the repord defition hasn;t been loaded. Then I need to add a datasource to the report and pass though a datatable or dataset. Then I need to export the report to a PDF file on disk.
I've been struggling to get this working. Please provide me with code snippet that works.