471,086 Members | 1,137 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

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 1404
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Russ | last post: by
3 posts views Thread by Deasun | last post: by
1 post views Thread by Hardy Wang | last post: by
1 post views Thread by steveberwick | last post: by
2 posts views Thread by =?Utf-8?B?Um9iZXJ0?= | last post: by

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.