Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1613
  • Last Modified:

Export crystal report to PDF With C# (asp.net)

How do i export my report if my report have more than 1 dataset ??? (i use subreport)
0
ichibang
Asked:
ichibang
1 Solution
 
OverTheEdgeCommented:
What is the problem that you're having? Exporting a report with a subreport isn't any different than exporting a typical report. The only thing I can imagine you having trouble with is populating the subreport's datasource before doing the export. Luckily, that only takes one line of code.

ReportDocument.OpenSubreport("subreportname").SetDataSource(yourdataset)

    HTH,

    Brian Bischof

    http://www.crystalreportsbook.com/123aspx.asp

    A Crystal Reports.NET tutorial for programmers? Its here!
    * Covers ASP.NET and Windows Forms
    * Teaches all phases of report development
    * Alerts you to the bugs and how to get around them
    * Maps out the complex ReportDocument object model
    * Shows how to perform runtime customization
    * Demonstrates all options of connecting with ADO.NET
    * Gives complete code listings for every concept presented


0
 
ichibangAuthor Commented:
sorry for delaying ur point, but after i tried it out and it work, i'll give u the point, :) .
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now