How to export subreports of a crystal report in .Net 2005.

 When I export subreports in crystal report programmetically the main report gets exported not the subreport. I want the subreport of the crystal report to be exported. The subreports are opened on demand.

 I used the following code to export.

CrystalDecisions.CrystalReports.Engine.ReportDocument objRptDoc = null;
objRptDoc.ExportToDisk(objType, fileName);
objRptDoc.ExportToHttpResponse(objType, Response, true, fileName);

Please help me to export the subreport which is currently loaded in the report 

3/17/2008 3:54:58 AM 7043 articles. 0 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 41

I think On demand reports are never exported. The only way is to uncheck on-demand option.

Please mark it as answer if my post solves your problem. Thank you in advance!

Raj Bandi
3/17/2008 4:46:50 AM

Similar Artilces:

Converting Crystal Reports 9 report to Crystal Reports .NET report
I have a web page that is supposed to display a crystal report.  The report is fully written and functional in crystal 9 (non-.Net)  .  Is there a way to convert my .rpt so that I can just include it in the new web site? why you don't try to compile project with .net and include your report. then if crystal report is power tool will suggests you with conversation tool    My blog is here.Please remember to 'Mark as Answer' if this post answered your question! Wow it really was that easy!  I just added the old crystal report into my .NET proj...

crystal reports .net -> crystal reports .net 2003
recently converted a project from .net to .net 2003. The 2 crystal reports I had in the project do not load when executing the application. The project itself within 2003 will allow me to multiplat the crystal reports, however when it comes to execution time I get the error: Invalid Data Source. If this isn't the right forum please point me to the right one as this is really the only website I know of with a large reader base. >to multiplat the crystal reports To what the crystal reports? Do you have the same database connections established and verified in your 2003 s...

VS .net 2005 Crystal reports ok to run on Crystal Reports XI?
I am getting mixed messages from the website hosting providers - some say they do not support Crystal Reports due to a $25,000 per cpu licensing fee, others say all I need to do is install Crystal Reports XI (about $500) on a dedicated server and it will run fine. Will Reports developed with the embeded Crystal Reports in VS 2005 run in a Crystal Reports XI environment? Thanks....

integration of Crystal Report with .NET ; crystal report viewer not displaying in Toolbox
Hi I m new to Visual Web Developer 2005 Express Edition. I want to integrate Crystal Report with .NET. In my Toolbox , Crystal Report Viewer is not displaying. How to make it possible? + How to call my report from 2.0. Need source code plz.*Share Knowledge Every TIME Crystal Reports for .NET does not come with VWD Express.  It only comes with VS 2005 Professional (I'm not sure about the Standard edition).If you have Crystal Reports 10 or XI, you can installed the .NET libraries for Crystal and then use them within VWD Express, noting that you have to build your reports ...

Cassini, VS.Net and Crystal Reports
Hi,I am working with Win XP home, Cassini and VS.Net.I would like to play with some Crystal Reports.I create the report in VS as CrystalReport1.I put a CrystalReportViewer on my web form. It does not get recognized as a defined object type but there are no build errors.When I run the app I get an error: Type 'CrystalReport1' is not defined.I have googled on this and see several things people have suggested/tried to correct this. Most I have already tried or the suggestions are not very clear to me. Then I came across a msg that instructed me to set up virtual directories for IIS for CrystalR...

Dynamically Calling Crystal Report from .net 2005 with no crystal login
Most of us develop .net applications and will try to integrate thecrystal reports with the applications.  I tried all possbile options,and succesfully implemented them. I would like share some of them withyou all.  Environment Visual Studio 2005 and Crystal Report XI. 1. Create a Crystal Report as usual in Visual studio 2005 .net   using ODBC connection. In this example "CrystalReport.rpt"   2. Create a aspx web form to display the report.  This form will   be a place holder for crystal report. 3. In design mode, drag and drop Crystal Report ...

Errors with all my reports after upgrade from Bundeled Crystal.NET (VS2003) to Crystal XI Developer for .NET
All my Crystal reports were developed using the bundled Crystal in VS 2003.  I just installed the Crystal XI for .NET Developer version that we purchased and now I get an error when running my reports.  (I am running them in debug mode on my development machine). I have tested it on several different reports.  I did not change the code, this worked fine in the previous version. First I reference my report (AccountList is the AccountList.rpt report that is in my project): Dim myReport As New AccountList Then I start rolling through the report's tables to update the log...

Export Crystal Report to Crystal Report format
I looked at some sample code provided by crystaldecisions, and they have the ability to export a web crystal report to a crystal report. I was assuming that this would cause the local instance of Crystal reports on the client machine to be invoked. I tried this in my project, and I get the following error: Error Encountered by Crystal Web Report Server -------------------------------------------------------------------------------- The error message returned is: Connection to Report Server Failed. It creates the file as an .rpt file in the directory it should. Do I need a dif...

Crystal Reports in .NET 2005?
What happened to crystal reports for .NET 2005?  I upgraded from beta to the final release and I now no longer have the merge modules, I'm getting 'argument not found' exceptions on previously working reports that haven't been touched, and when the reports do run correctly, no data is displayed (despite the fact that they have data in them.. only the header and footer is displayed).  Has anyone else experienced anything like this? Sounds like you have 2 issues: 1)  Where are the merge modules for the RTM release? 2)  Getting an "Argument not found" exception.  ...

Crystal Report.NET and nested sub reports
I have a report where i need to have several nested subreports... A parent may have childs and childs may have other childs and so on... CrystalReport.NET and VS2005 seems to support one level of subreport (a report could have a nested subreport but this nested subreport can't have another nested subreport). I really need to handle multiple levels of nested subreports in order to complete my report. What is the solution ???   Thanks   Eviral     I'm not positive if this works but its worth a shot.  Create the subreports as se...

Reporting (Crystal Reports vs. Custom .NET)
Ok, so I have to confess, I have never tried Crystal Reports. I just recently started working for a marketing company now and reporting is VERY important to them.  I am currently migrating a lot of the applications they use from VB5 and VB6 to web based .NET 3.5 apps.   The whole company is running off ACCESS databases if you can believe that.  They sometimes have up to a few hundred agents taking sales on incoming calls and chat sessions and they are all getting streamed to FLAT file records (completely un-normalized database).  I am in the process of developing a c...

Exporting to Excel in Crystal Reports .NET
sir,   I want to export Crystal report to Excel and the following is the code i wrote in the button click.ReportDocument rptExcel = new ReportDocument() ;string strExportFile = "C:/Session_SessionID.xls" ;rptExcel = new RptJobOrderRecap();//report namerptExcel.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile ;rptExcel.ExportOptions.ExportFormatType = ExportFormatType.Excel;ExcelFormatOptions objExcelOptions = new ExcelFormatOptions();objExcelOptions.ExcelUseConstantColumnWidth = false ;rptExcel.ExportOptions.FormatOptions = objExcelOptions ;DiskFileDestinationOp...

Bind crystal reports / sql reports to ADO.NET
Hi,  I'm a beginner trying to find out if it's possible to directly connect an sql report/crystal report to an ADO.NET data set?   It all depends on what version of Visual studio you are using. Here are the steps for VS2005 In VS2005 you need to do the following: 1) Right click on your solution and select add, New Item. 2) Add a dataset and create your queries in the dataset. Make sure you save this dataset or it will not show up later. 3) Add your reportviewer 4) Right click on your solution and select add new Item Again and then add a crystal report 5) In the cr...

View report from the crystal report server using .NET
Hi,I am first time dealing with crystal report and I having problem with it. I need to use to link to the crystal report server and view the report, but don't know how? Is there a way to do that? or is there any better way to using .net and view report from the crystal report server?Thanks....

Web resources about - How to export subreports of a crystal report in .Net 2005. -

Languages -> C# Articles, Tutorials, Examples: ASP Alliance
.NET,ASP,ASP.NET,SQL,XML,HTML,ADO,ADO.NET,JavaScript,JScript,CSharp,VBScript and VB tutorials from AspAlliance.

Printing simple tabular reports with JTable
Printing simple tabular reports with JTable - Alan's Ramblings

Izenda - Maps for Fast and Easy Geographic Data Analysis
... adding a special license key and dll, a maps tab will appear in the report designer. Here you can specify what fields, functions and subreports ...

Reports made easy with JasperReports
JasperReports, a popular, full-featured open source report-generating library, uses XML report templates to generate reports you can display ...

Domain-Specific Modeling (DSM) for Full Code Generation
Code Generation from Domain-Specific Modeling (DSM) compared to Unified Modeling Language (UML) and Model Driven Aproach (MDA).

WebSurveyor 5
WebSurveyor 5 supports most Web survey bells and whistles, while still being sur-prisingly easy to use.

Using LINQ to SQL instead of a sub report.
Software, Business, Life . . .

Small Business - Securian Microsite Offers Financial Advisors Insight Into The Small Business Owner Market ...
ST. PAUL, Minn.(BUSINESS WIRE) As small business owners, financial advisors know that dozens of decisions are made each day to keep the business ...

Business Process Management FAQ - Business Process Management Questions and Answers
Find answers to your toughest Business Process Management questions.

resources last updated: 11/20/2015 5:55:43 PM