Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > Visual Web Developer 2005
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 16th, 2007, 04:50 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't refresh report viewer when passing parameter

I'm having some problem refreshing my viewer.

 
Old April 16th, 2007, 04:51 AM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What happens is Im having error when i use .RefreshReport(). If I will not use the method, the report will run but will display old report. Please help me. Here's my code snippet:

.......
        report.FileName = appPath + reportType
        crReportDocument.Load(appPath + reportType)
        CrystalReportSource1.Report = report
        crReportDocument.SetDatabaseLogon("login", "admin", "SRV", "myDB")
        param.Name = "PayPeriod"
        paramValue.Value = Session("sessionReportValue").ToString()
        param.CurrentValues.Add(paramValue)
        CrystalReportViewer.ReportSource = CrystalReportSource1
        CrystalReportViewer.RefreshReport()
.....







Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing Parameter in Crystal report 10 aarunlal ASP.NET 2.0 Professional 2 April 25th, 2007 05:57 AM
Passing runtime parameter to Crystal Report renishl Crystal Reports 1 May 30th, 2006 12:38 AM
Passing a parameter from VB6 to Crystal Report pavel Pro VB Databases 2 February 2nd, 2005 11:28 PM
Crystal report, passing parameter suni_kutty Crystal Reports 2 October 7th, 2004 03:13 AM
passing parameter to crystal report.net shamala Crystal Reports 2 August 19th, 2004 02:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.