?
Solved

Dealing with empty crystal reports through crystal report app. server [RAS]

Posted on 2003-12-01
6
Medium Priority
?
617 Views
Last Modified: 2012-06-27
Hello,

I have successfully deployed access to our reports through web using RAS and CR[9.0]. We use ASP and CrystalReportPartsDefinition.

When I display part of the report, I get an error when report is empty as request part [usually a graph] is not created in empty report.

Could someone help?

Thanks.
0
Comment
Question by:JaiJavan20194
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 7

Expert Comment

by:mnye
ID: 9851872
not sure exsactly what you mean, but some null errors handling or suppression formulas in the section that is returning no records.  give more specifics and i can suggest something.

Is it an ASP error?  what is the source of the error?
matt
0
 
LVL 42

Expert Comment

by:frodoman
ID: 9851944
If the graph is in your header or footer, you can use the section expert in CR9 and select the "Suppress Blank Section" option.

Otherwise as Matt said please provide more details.
0
 

Author Comment

by:JaiJavan20194
ID: 9852023
Hello,
    Sorry...I should have been more specific.
    I get following error which is from webreporting.dll
====================
Error Type:
webReporting.dll (0x800002E8)
Error in File C:\WINDOWS\Temp\{0D12D160-EF26-4626-890F-3F0C770E90E3}.rpt: Get/Drill report part(s) failed - the data context '' is not valid.
/BPA/inc/utilmain.asp, line 1406
====================
   This happens only when report is empty i.e. no data for the user and hence no graph is created. Hence, when I request for only the graph through PartsViewer, I get above error as the report is empty and hence presumably the graph [object] is not created.
   I am attaching section of the code where I access report parts.
=====================
Set objFactory = CreateObject("CrystalReports.ObjectFactory.2")
Set def = ObjFactory.CreateObject("CrystalReports.CrystalReportPartsDefinition")
Set nodes = def.ReportPartNodes

Set node0 = ObjFactory.CreateObject("CrystalReports.CrystalReportPartNode")
node0.Name = txtNodeName
nodes.Add (node0)

Set HTMLViewer = objFactory.CreateObject("CrystalReports.CrystalReportPartsViewer")
With HTMLViewer
      .IsOwnPage = False
End With

Set oClientDoc=objFactory.CreateObject("CrystalClientDoc.ReportClientDocument")
oClientDoc.Open txtReportName
oClientDoc.DatabaseController.Logon "readonly","readonly"
HTMLViewer.ReportSource = oClientDoc.ReportSource

---- Code to set parameters -----
---- Following line I get the error ----
Response.write(HTMLViewer.ProcessHTTPRequest(Request, Response))
=============================

Thanks.


 
0
 
LVL 7

Accepted Solution

by:
mnye earned 500 total points
ID: 9852091
according to crystal this is a known issue with no current fix.

http://support.crystaldecisions.com/library/kbase/articles/c2011603.asp

sorry
matt
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question