473,516 Members | 3,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Reports Export Problem

I need to export a report with stored procedure parameters from ASP.NET. I
cannot find any way to set the parameters from the ReportDocument object.

I'm using C# on ASP.NET with Crystal v9 and SQL Server 2000.

Reports without parameters export perfectly.

Can anyone throw me a bone on how to do this?

Thank you,
Grant Szabo
Nov 18 '05 #1
1 1464
I was able to find the answer to this. In a nutshell, you need to use the
SetParameterValue() method of the ReportDocument object. For example:

crReportDocument.SetParameterValue("@intWidgetId", this.intWidgetId);
crReportDocument.SetParameterValue("@intAnotherPar ameter", this.intValue);
crReportDocument.Export();

(crReportDocument is CrystalDecisions.CrystalReports.Engine.ReportDocum ent
instance)

If anyone needs help with this and needs more code to explain this just
reply to me directly. Parameterized reports are now exporting properly to
PDF using the free VS.NET implementation of Crystal.

Best regards,
Grant Szabo
http://www.quagmire.com

"Grant Szabo" <sz*****@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I need to export a report with stored procedure parameters from ASP.NET. I cannot find any way to set the parameters from the ReportDocument object.

I'm using C# on ASP.NET with Crystal v9 and SQL Server 2000.

Reports without parameters export perfectly.

Can anyone throw me a bone on how to do this?

Thank you,
Grant Szabo

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2796
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of my knowledge nothing was changed on the server. Here is the error: Error in File C:\DOCUME~1\WEBSERVER\ASPNET\Local...
3
3778
by: Deasun | last post by:
I need some help please! Crystal is driving me nuts. Heres my code so far, see below. Problem: On the .export() line it comes back with error #5 Login failed! I know the login info is good so why is the bloody thing doing this. The paths have been checked and are correct. The crystal Report is a .rpt file. Not one created in the VS.net...
19
3848
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
1
7689
by: warlord | last post by:
In order to save typing, I've borrowed the text from a post of nearly 12 months ago.....but the problem still exists. I've been banging my head all day with this, so I'm hoping someone has some suggestions for me: I'm trying to either print or export some Crystal Reports in asp.net web application. The reports were made with CR 9.0, get...
1
3537
by: Hardy Wang | last post by:
Hi all, I have a piece of code in my C# console application to export from crystal report files to PDF. For some reports files, I get errors below. I have Crystal Reports 8.5 with service pack installed on my local machine. What is the reason to cause this "Unknown Query Engine Error"? This is a report with 3 sub-reports, is there anything...
1
4300
by: Lyners | last post by:
Hello all, I have created an ASP.NET website that uses Crystal Reports that works on the localhost (my PC), but when I copy it to the server it does not. The problem is ExcelUseConstantColumnWidth = False. On my PC when exporting a report, it works - columns are varible width to fit the field, from the server it does not - I get constant...
1
3261
by: steveberwick | last post by:
**Using Visual Studio 2005 and Crystal Reports XI Release 2 Developer Edition. I currently have a multi-threaded C# application that loads a Crystal Report at runtime, fills out the necessary parameters and then exports the file to disk. I export around 5000 reports a day, in about 3 hours (nightly runs of the day's transactions), but...
3
5138
by: Brad | last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing IIS7....but it works just fine in visual studio's cassini web server. And if I create a web form and use the crystal reports web viewer, view the report and then export from the viewer it also works fine (IIS7 and cassini). And I should note this all works fine in IIS6...
2
9862
by: =?Utf-8?B?Um9iZXJ0?= | last post by:
About the time we installed Windows Server 2003 SP2 on our Web servers, our exports to Excel stopped working from Crystal Reports .NET within all our ASP.NET applications. However, the exports to pdf and Word still work. Is anyone else having this problem and have you found a resolution? We are using ..NET Framework 1.1. The web apps were...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7405
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7574
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7547
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1620
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.