Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 February 24th, 2007, 10:41 AM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Resolved] Web Service CR Refresh problem

I have created a crystal report web service which works fine. However if I change a record in the database then reopen the report it still shows the old data. The only way I can get it to show the new value is to re-start IIS on the host server.

I am using VB.Net and Visual Studio 2005 and the built in crystal report program to create my reports.

I use the report viewer in the client program and set its data source to the new instance of my crystal report webservice.

Code:
             Dim Rep As New VHCAnalysisWebRef.rptVHCAnalysisService
               
             If UseProxy Then
                  Rep.Proxy = VHCProxy
             End If

              ReportViewer.ReportSource = Rep
Please help

Thanks:D
 
Old February 24th, 2007, 11:29 AM
Registered User
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Solution - add this to the asmx file on the webserver

CachedReportConstants.DEFAULT_TIMEOUT = New TimeSpan(0, 0, 2)





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] CR and SetDataSource snufse Crystal Reports 1 October 6th, 2008 07:33 AM
[Resolved] Crystal Report Web Service Not Refresh windsurfkid .NET Web Services 1 February 24th, 2007 11:22 AM
Problem when downloading web service??? joan .NET Web Services 2 May 16th, 2004 06:39 AM
CR . Net As a Web Service (Runtime Customization) lala23 Crystal Reports 1 March 27th, 2004 04:42 AM





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