Solved

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

Posted on 2004-03-25
4
1,591 Views
Last Modified: 2008-03-10
How do i export my report if my report have more than 1 dataset ??? (i use subreport)
0
Comment
Question by:ichibang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
OverTheEdge earned 250 total points
ID: 10688724
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
 

Author Comment

by:ichibang
ID: 10729162
sorry for delaying ur point, but after i tried it out and it work, i'll give u the point, :) .
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question