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 March 5th, 2009, 07:16 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Failed to retrieve initial report values

I got following error when i access report through RAS (from my machine).

Error:
Failed to retrieve initial report values. For example, the database information for this report could be incomplete or incorrect. This is a configuration problem. Please contact your system administrator.

on the otherhand when i access same report on Crystal Report Server (on that machine where Crystal Report Server Installed) no issue raised, report successfully open.
also that problem only raised when my report point to oracle server, else no issue raised on both side.i tried report which point to SQL Server, no issue raised.
shows code snippet below


{

HttpSession session = request.getSession();
IEnterpriseSession enterpriseSession;
ISessionMgr mySessionMgr = CrystalEnterprise.getSessionMgr();
enterpriseSession = mySessionMgr.logon("Admin","","myserver:6400","sec Enterprise");
// This is the part that will let you bypass the logon.aspx - the attribute has to be named CE_ENTERPRISESESSION.
session.setAttribute("CE_ENTERPRISESESSION", enterpriseSession);
IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
IInfoObjects reports = iStore.query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME='TestOrclRpt' And SI_INSTANCE=0");
IInfoObject report = (IInfoObject)reports.get(0);
IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");
ReportClientDocument rcd = new ReportClientDocument();
viewer.setReportSource(rcd.getReportSource());
viewer.setOwnPage(true);
viewer.setOwnForm(true);
viewer.setEnableLogonPrompt(false);
viewer.setEnableParameterPrompt(false);
viewer.setHasRefreshButton(false);
viewer.setHasLogo(false);
viewer.setHasPageBottomToolbar(false);
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),null);
viewer.dispose();
}





please guide me what i was doing wrong,any help regarding would be appreciated
Thanks in Advance
 
Old March 6th, 2009, 11:50 PM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default RE: Failed to retrieve initial report values

I have resolved issue to apply following technique.

Make sure the necessary services (CR Page and CR Job with Crystal) are started with a domain account with permission.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to retrieve data from database saleha Crystal Reports 1 March 7th, 2009 12:00 AM
Using ASP and XMLDOM -can't retrieve values mussitsch XML 2 January 21st, 2009 04:14 PM
How to retrieve values from gridview rojiin ASP.NET 2.0 Basics 1 June 26th, 2007 07:32 AM
How to retrieve checkbox values which are checked SMM Classic ASP Professional 2 June 3rd, 2007 06:45 PM
retrieve values of __VIEWSTATE marvz ASP.NET 1.0 and 1.1 Basics 2 July 13th, 2005 03:01 AM





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