Results 1 to 2 of 2

Thread: vb.net 2005 and crystal reports

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    3

    vb.net 2005 and crystal reports

    I have the following questions to ask:
    1. I would like to see code that runs a crystal report and exports the data to excel 2003.
    2. I am setting up a Visual Basic.NET 2005 application where I will be creating a crystal report and exporting the data to Excel 2003. For each unique crystal report, I would like to export each report to a different tab (worksheet) on one excel workbook. I do not want each report to be on separate excel workbooks. Thus can you tell me how to accomplish this task?

  2. #2
    Member
    Join Date
    Feb 2009
    Location
    India
    Posts
    48

    Re: vb.net 2005 and crystal reports

    Code:
    Dim cryRpt As New ReportDocument
            cryRpt.Load("crpt_test.rpt")
            CrystalReportViewer1.ReportSource = cryRpt
            CrystalReportViewer1.Refresh()
    you also need to import CrystalDecisions.CrystalReports.Engine

    This will load your report in the form and CrystalReportViewer already has an option to export the report to excel format. You will see it when you run, it has other options is well like in pdf or doc or rtf format.
    Karun

    Dont forget to Rate my post,if you like it. Thank you.

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