473,854 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Report XI Business Object error

2 New Member
Hello All i am using Bisness object Crystal Report XI version and installed it on my server.
I have checked to installed as server. I am using the following code to connect and display the Report file i have created with store procedure in Sql Server 2005.
The code is as below::::



_______________ _______________ _______________ __________
1. SimplePreviewRe port.asp
Expand|Select|Wrap|Line Numbers
  1. <%@ LANGUAGE="VBSCRIPT" %>
  2.  
  3. <%
  4. reportname = "SimplePreviewReport.rpt"
  5. %>
  6.  
  7. <!-- #include file="AlwaysRequiredSteps.asp" -->                       
  8. <!-- #include file="MoreRequiredSteps.asp" -->
  9. <!-- #include file="SmartViewerActiveX.asp" -->    
  10.  
2. AlwaysRequiredS teps.asp
Expand|Select|Wrap|Line Numbers
  1. <%                                                                    
  2. If Not IsObject (session("oApp")) Then                              
  3.   Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
  4. End If                                                               
  5.  
  6. Path = Request.ServerVariables("PATH_TRANSLATED")                     
  7. While (Right(Path, 1) <> "\" And Len(Path) <> 0)                      
  8. iLen = Len(Path) - 1                                                  
  9. Path = Left(Path, iLen)                                               
  10. Wend                                                                  
  11.  
  12. If IsObject(session("oRpt")) then
  13.     Set session("oRpt") = nothing
  14. End if
  15.  
  16. On error resume next
  17.  
  18. Set session("oRpt") = session("oApp").OpenReport(path & reportname, 1)
  19.  
  20. If Err.Number <> 0 Then
  21.   Response.Write "Error Occurred creating Report Object: " & Err.Description
  22.   Set Session("oRpt") = nothing
  23.   Set Session("oApp") = nothing
  24.   Session.Abandon
  25.   Response.End
  26. End If
  27.  
  28. session("oRpt").MorePrintEngineErrorMessages = False
  29. session("oRpt").EnableParameterPrompting = False
  30. 'session("oRpt").DiscardSavedData
  31. %>
  32.  
3. MoreRequiredSte ps.asp
Expand|Select|Wrap|Line Numbers
  1. <%
  2. session("oRpt").ReadRecords
  3.  
  4. If Err.Number <> 0 Then                                               
  5.   Response.Write "Error Occurred Reading Records: " & Err.Description
  6.   Set Session("oRpt") = nothing
  7.   Set Session("oApp") = nothing
  8.   Session.Abandon
  9.   Response.End
  10. Else
  11.   If IsObject(session("oPageEngine")) Then                              
  12.       set session("oPageEngine") = nothing
  13.   End If
  14.   set session("oPageEngine") = session("oRpt").PageEngine
  15. End If
  16. %>
4. SmartViewerActi veX.asp
Expand|Select|Wrap|Line Numbers
  1. <HTML>
  2. <HEAD>
  3. <TITLE>Crystal Reports ActiveX Viewer</TITLE>
  4. </HEAD>
  5. <BODY BGCOLOR=C6C6C6 ONUNLOAD="CallDestroy();" leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0>
  6. <OBJECT ID="CRViewer"
  7.     CLASSID="CLSID:6F0892F7-0D44-41C3-BF07-7599873FAA04"
  8.     WIDTH=50% HEIGHT=50%
  9.     CODEBASE="../viewer/ActiveXViewer.cab#Version=11,5,0,261" VIEWASTEXT>
  10. <PARAM NAME="EnableRefreshButton" VALUE=1>
  11. <PARAM NAME="EnableGroupTree" VALUE=1>
  12. <PARAM NAME="DisplayGroupTree" VALUE=1>
  13. <PARAM NAME="EnablePrintButton" VALUE=1>
  14. <PARAM NAME="EnableExportButton" VALUE=1>
  15. <PARAM NAME="EnableDrillDown" VALUE=1>
  16. <PARAM NAME="EnableSearchControl" VALUE=1>
  17. <PARAM NAME="EnableAnimationControl" VALUE=1>
  18. <PARAM NAME="EnableZoomControl" VALUE=1>
  19. </OBJECT>
  20.  
  21. <SCRIPT LANGUAGE="VBScript">
  22. <!--
  23. Sub Window_Onload
  24.     On Error Resume Next
  25.     Dim webBroker
  26.     Set webBroker = CreateObject("CrystalReports115.WebReportBroker.1")
  27.     if ScriptEngineMajorVersion < 2 then
  28.         window.alert "IE 3.02 users on NT4 need to get the latest version of VBScript or install IE 4.01 SP1. IE 3.02 users on Win95 need DCOM95 and latest version of VBScript, or install IE 4.01 SP1. These files are available at Microsoft's web site."
  29.     else
  30.         Dim webSource
  31.         Set webSource = CreateObject("CrystalReports115.WebReportSource.1")
  32.         webSource.ReportSource = webBroker
  33.         webSource.URL = "RDCrptserver115.asp"
  34.         webSource.PromptOnRefresh = True
  35.         CRViewer.ReportSource = webSource
  36.     end if
  37.     CRViewer.ViewReport
  38. End Sub
  39. -->
  40. </SCRIPT>
  41.  
  42. <script language="javascript">
  43. function CallDestroy()
  44. {
  45.     window.open("Cleanup.asp");
  46. }
  47. </script>
  48.  
  49. </BODY>
  50. </HTML>
  51.  
_______________ _______________ _______________ ___________
This code throws the following error:
Server object error 'ASP 0177 : 8007007e'

Server.CreateOb ject Failed

/Reports/AlwaysRequiredS teps.asp, line 3

8007007e
............... .........
actually i have download this code from some where in the net to display the report file via custom ASP 3. but i have tried of my best for last 2 months and i am failed to display the report in my asp page.
So, if some one please help me in this regards I will be always remember him in my prayers.
thanks in advance.
Sep 29 '08 #1
2 9189
jhardman
3,406 Recognized Expert Specialist
check the documentation from where you downloaded this code - there should be something steering you toward something you need to install or register.

Jared
Oct 2 '08 #2
genius2020
2 New Member
where did u get the software crystal report business object, i want to buy,borrow or steell..can u tel me ..
Oct 5 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4414
by: Bob Skutnick | last post by:
Help.... I've created an ADO.NET dataset in Visual Studio (a web project). I build the project and then try to create a Crystal Report using the dataset. When I try to use the ADO.NET dataset in Crystal Report (selected from Project Data) by double clicking the dataset name (yes, it does at least show up) I get a consistent error: Logon failed. Details: Object reference
1
5843
by: Ron Holmes | last post by:
I posted this question on the Crystal Reports Support site and I am still waiting for an answer. Using Crystal Reports 9.0 Developer Full edition: My Crystal report .RPT file has a Picture box which is an OLE Object located in the Page Header section of my .RPT file. This is the call which works perfectly in VB6 to format the crystal reports Page Header section of my report file EquipLst.rpt.
1
12189
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal viewer rendering the report on the page. I build my application in one of my development machines and deploy it
17
8463
by: Peter Proost | last post by:
Hi Group, I've got an interesting problem, I don't know if this is the right group but I think so because everything I've read about it so far says it's a .net problem. Here's the problem, we're using crystal reports 9 and vb.net and we're using the crystalrepotViewer to show our reports. But every time we open a report the connection to or sql server remains, so if I open 5 forms with the report viewer I've got 5 sleeping connections in...
0
2277
by: Chris | last post by:
I have the following situation in a VB.Net App I am working on: 1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003. 2.)The datasource for the report is a Stored Proc in a SQL Server DB (pull method). 3.)The Stored Proc has two input parameters of type date. 4.)The Stored Proc is a rather complex proc that was not written by me, but does work(see next item). It currently returns about 13K rows of data. 5.)The...
3
2409
by: lodatokab | last post by:
I'm have problem to run crystal report (VS 2005) on my computer with Windows 2000 Server. I run the solution in my dev envroiment (Windows XP) and no problems. When I try to run in on IIS 5.0 on Windows 2000 Server I got the following error: Compiler Error Message: CS0433: The type 'CrystalDecisions.Shared.ExportOptions' exists in both ...
1
8654
by: Kbalz | last post by:
Having a really hard time finding solid examples on deploying a CR .NET applcation on my intranet. I'll explain what I've done so far, and toward the bottom is where I can't print using the report viewer's gui button. I have a Windows XP sp2 Client machine used for development, it has Visual Studio 2005 sp1 and CR XI R2 Developer Version. My webserver is running Windows Server 2003 sp1, IIS 6.0, has CR XI R2 developer. I have a working...
1
2204
by: =?Utf-8?B?VGVycnk=?= | last post by:
I am brand new to using Crystal Reports and am trying to generate a report based on a custom object - in another project. I have a layered design, with all my business objects in a seperate project. I created a new project as part of the solution, added a reference to the project containing my business objects, created a datasource that points to one of the objects and then tried to create CR based on the object. The data tab (in the CR...
3
3835
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a dataset and link it to a reportviewer than any Crystal Report book will do. I use vb.net but im assuming most books would show you vb and c
0
9899
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9750
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11023
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10672
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10740
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9509
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5936
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4147
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.