Results 1 to 1 of 1

Thread: crystal report printing error in vb 2010.Please Help Me

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2012
    Posts
    26

    crystal report printing error in vb 2010.Please Help Me

    when i print my report i am getting an empty report
    I get no error just null data as the reports data source is not getting data from the database?

    My database is items.mdf

    see the below image

    if any further details needed for answering this question please kindly comment. Thanks to all


    please kindly comment what is mistake i have done pls specify

    i double clicked form 2 and entered the following code

    Imports CrystalDecisions.CrystalReports.Engine
    Public Class Form2

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' print button code
    Dim cryRpt As New ReportDocument
    cryRpt.Load("C:\Users\Dell\Desktop\WindowsApplication3\WindowsApplication3\CrystalReport1.rpt") 'this was my report location
    CrystalReportViewer1.ReportSource = cryRpt
    CrystalReportViewer1.Refresh()
    End Sub
    End Class
    Attached Images Attached Images  
    Last edited by charuwaka; Dec 4th, 2012 at 08:25 AM. Reason: want to enter code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width