Running a Crystal Report in CF5

Hello
I have been asked to write an app to query a Sybase server
and then run some reports, based on user input.
I though about writing the reports in Crystal (I have Crystal
Reports Professional 10) and then using Coldfusion (we use version
5 here :o( ) to create a front end.
Ideally the user will complete a form, click submit and then
the report is generated and displayed for them.
First off is this possible?
Second how would I go about generating the report? Is it just
a simple case of using <CFReport> ?
I'm fairly new to coldfusion so please forgive me if this is
a stupid question. I have tried google-ing but come up blank
Cheers

<CFREPORT> doesn't work with CR10, I believe.
I do this with CR8.5, Crystal Enterprise 8.0, and CF4.5.2.
Just pass the parameters in a querystring to the report. Look at
the page source of the report to determine the parameter names to
pass. It should look something like
<html>
<head>
<TITLE>Crystal Report Viewer</TITLE>
</head>
<SCRIPT LANGUAGE="JavaScript">
</SCRIPT>
<BODY BGCOLOR=C6C6C6 LANGUAGE=VBScript topmargin=0
leftmargin=0>
<OBJECT ID="CRViewer"
CLASSID="CLSID:C4847596-972C-11D0-9567-00A0C9273C2A"
WIDTH=100% HEIGHT=99%
CODEBASE="/viewer/activeXViewer/activexviewer.cab#Version=8,5,0,473">
<PARAM NAME="EnableDrillDown" VALUE=1>
<PARAM NAME="EnableExportButton" VALUE=1>
<PARAM NAME="DisplayGroupTree" VALUE=1>
<PARAM NAME="EnableGroupTree" VALUE=1>
<PARAM NAME="EnableAnimationControl" VALUE=1>
<PARAM NAME="EnablePrintButton" VALUE=1>
<PARAM NAME="EnableRefreshButton" VALUE=1>
<PARAM NAME="EnableSearchControl" VALUE=1>
<PARAM NAME="EnableZoomControl" VALUE=1>
<PARAM NAME="EnableSearchExpertButton" VALUE=0>
<PARAM NAME="EnableSelectExpertButton" VALUE=0>
</OBJECT>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub window_onLoad()
Page_Initialize()
End Sub
Sub Page_Initialize
On Error Resume Next
Dim webBroker
Set webBroker =
CreateObject("WebReportBroker.WebReportBroker")
if err.number <> 0 then
window.alert "The Crystal ActiveX Viewer is unable to create
it's resource objects."
CRViewer.ReportName = "/pricelist/pricelist.rpt"
else
Dim webSource0
Set webSource0 =
CreateObject("WebReportSource.WebReportSource")
webSource0.ReportSource = webBroker
webSource0.URL = "/pricelist/pricelist.rpt"
webSource0.PromptOnRefresh = True
webSource0.AddParameter "password0", "mypassword"
webSource0.AddParameter "prompt0", "SomeStuff"
webSource0.AddParameter "prompt1", "5.50"
webSource0.AddParameter "prompt10",
"datetime(1900,1,1,0,0,0)"
webSource0.AddParameter "prompt11",
"datetime(1900,1,1,0,0,0)"
webSource0.AddParameter "prompt12", "0"
webSource0.AddParameter "prompt13", "0"
webSource0.AddParameter "prompt2", "False"
webSource0.AddParameter "prompt3", "Stuff "
webSource0.AddParameter "prompt4", "OtherStuff"
webSource0.AddParameter "prompt5",
"pl_printer,pl_brand,pl_majsort,pl_minsort,pl_width,pl_length,pl_color"
webSource0.AddParameter "prompt6", "BTL"
webSource0.AddParameter "prompt7", "CC"
webSource0.AddParameter "prompt8", "metric"
webSource0.AddParameter "prompt9", "0"
webSource0.AddParameter "user0", "myuser"
CRViewer.ReportSource = webSource0
end if
CRViewer.ViewReport
End Sub
-->
</SCRIPT>
<OBJECT ID="ReportSource"
CLASSID="CLSID:F2CA2115-C8D2-11D1-BEBD-00A0C95A6A5C"
HEIGHT=1% WIDTH=1%
CODEBASE="/viewer/activeXViewer/activexviewer.cab#Version=8,5,0,473">
</OBJECT>
<OBJECT ID="ViewHelp"
CLASSID="CLSID:BD10A9C1-07CC-11D2-BEFF-00A0C95A6A5C"
HEIGHT=1% WIDTH=1%
CODEBASE="/viewer/activeXViewer/activexviewer.cab#Version=8,5,0,473">
</OBJECT>
<OBJECT ID="ReportParameter"
CLASSID="CLSID:71C140F3-1A84-430b-9035-68815582DC79"
HEIGHT=1% WIDTH=1%
CODEBASE="/viewer/activeXViewer/reportparameterdialog.cab#Version=8,0,2,847">
</OBJECT>
<div>
<!-- this empty div prevents IE from showing a bunch of
empty space for the controls above.. I don't know why though.
-->
</div>
</body>
</html>
Also, I believe BusinessObjects has a bunch of ASP examples
that you could translate to CF.

Similar Messages

  • Problem to run the Crystal report inside from SAP B1 based on SQL views.

    Hello,
    I have a problem to run my Crystal report inside from SAP B1 which is based on SQL views.And the SQL views are stored in a separate database in SQL server.The error which i am getting is saying the the tablename does not exist.What i need to do in order to sort this problem.
    Great if somebody can help me to sort out this so that i can run my report based on SQL views stored on separate database other than SAP databases inside from SAP B1.
    Edited by: rozenagrawal on Apr 19, 2011 11:51 AM

    Try using a SQL synonym in your company database for the views outside the company database. I don't know if SBO will let you get away with it, but its worth a shot.
    If your company database is MyCompany and you have a view called MyView in Views database, assuming the view belongs to schema dbo, and you want the synonym to belong to dbo schema in your company database, run this:
    Use MyCompany
    go
    create synonym dbo.OutsiderView for
    Views.dbo.MyView
    go
    select * from OutsiderView
    The select statement should return the contents of MyView in the Views database while you are connected to your MyCompany database.
    For more info, see the Books Online for MSSQL on topic synonym.
    You will need to change your CR options to include displaying synonyms along with tables, views, etc. You may also need to grant select to B1 users.
    Edited by: Cindy Lange on Apr 21, 2011 4:00 PM

  • Running a Crystal Report against a Universes

    For Business Object 3.1 SP1.8 and Crystal Report 2008 - we are trying to run a Crystal Report built against a Universe.  When the report is built and refreshed no data is received.  When the report is built in Web Intelligence against the same Universe, data is received.  Any thoughts on why Web Intelligence would work but Crystal would not?
    Edited by: Melissa Rees on Jun 18, 2010 8:45 PM

    Hi,
    Try the following and see if there comes data..                                                                               
    1. Openthe Universe                                                                               
    2. Right click on the object and select "Object Properties..."                                                                     
    3. In the "Edit Properties ..." window, under thetab "Properties", uncheck the option "Hierarchical Display"  
    Regards,
    Bashir Awan

  • Error when running the Crystal Report 9.1 (visual studio 2003) in the deployed server

    Hello,
    1) I am suddenly getting an error message ‘Load Report failed’ in a production server (where the VS2003 application is deployed) when the Crystal Report is executed. This has happened maybe because of the Windows/Crystal Report Updates!
    I am able to see the same report perfectly fine in the development computer using VS 2003.
    I am using the 9.1 version which is part of the Visual Studio 2003.
    The event logs show 'Either the keycode library is not registered or it cannot be loaded ...EventID=10029'. See attached screen shot.
    Please help?
    2) Since I was getting a registration suggestion window  for using Crystal Reports, I registered twice using different email address and it said that it will send me the KeyCode for the Crystal report but after successful registration I never got any keycode but just an email acknowledging the Registration.
    I believe the KeyCode is required to use it in the server to execute/run a report.
    Can SAP representative email the keycode to my gmail account?
    My product key is: 
    Please help to resolve both my problems
    Thanks in advance,
    Sanjay Chudasama

    If I memory servers, you have to open the Crystal_Regwiz2003.msm in the .NET deployment project. One of the properties of the msm was Keycode (or similar). You entered the keycode here. To find your keycode; in VS2003 IDE, go to the Help | About screen. You will see one of the installed components as Crystal Reports and the keycode will be on the right of that. Copy the keycode from here, paste in the above.
    For more details see the article Crystal Reports and Visual Studio .NET - Application Deployment.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Run a Crystal Report ( with SAP BW Query ) on BO XI R2 SP2

    Hi SAP Guru,
    In one customer, we want integrate SAP BI 7.0 on Business Objects XI R2 SP2 ( Full Control Right ) to delivery dedicated reports to target users ( Scheduling )
    We strart with a simple query that it works fine on Bex..
    The integration Kit for SAP was installed on BO server and transports on SAP BW Server (based on Thread of Ingo).
    For scheduling, I create a Business View based on my BW query and I create my crystal report. Everything work fine, when I launch my report localy on my desktop.
    The problem arrives when I want schedule my report on the CMC or in infoview. I received a error message :
    Failed to open the connection. D:ApplBusiness ObjectsBusinessObjects Enterprise 11.5DataprocSched  -  system - ~tmp148860c59ff44c6.rpt
    I try to schedule a report without Business View but I receive the same message.
    Questions :
    1 ) Is the Integation Kit for SAP is enable for this environement ( SAP BI 7.0 and BO XI R2 SP2 ) ?
    2) Have you any suggestion of resolution for my problem ?
    If you need more info, I will update my thread..
    Thanks in advance for your help...
    Cédric

    Thanks for your quick reply !!!
    are you able to run your report on-demand in the InfoView?
    --> I receive my error when I open/run  the report.
    Which version of CR Designer are you using?
    -->  CR 11.5.9
    Any chance to upgrade? There is already SP6 available for XI R2.
    --> We project to migrate to R3.1 this year but we want to show report earlier ( if it's possible on R2 of course ).
    Cédric

  • Data missing while running a crystal report from SAP B1 2007A

    Dear All,
    I am facing an issue that is if i run a report from SAP B1 using Crystal reports AddOn, it misses out some data.
    Few Initial pages and a last page appears in the report. But when i run the same report using Crystal reports Designer it shows the actual number of pages. I have tested the above discussed issue on the server & workstation machines.

    Dear All,
    I would like to explain the above posted problem in detail. I need your generous help, I am facing an issue that is for Crystal Reports which are based on 'Financial Templates' data is missing out. For Example, If i run the report using 'Crystal Reports Designer' it is showing the whole Financial Template based on 5 pages, but if I try to run it from 'SAP Business One'
    using 'Crystal Reports AddOn' it is missing out the data e.g. it is showing Page 1 and then Page 4 & 5.
    Page No. 2 & 3 is missed out. For your information it was running fine from the past two months now I am
    facing issues in running it. Rest of the reports are running fine.
    I have tried reinstalling the Crystal Reports Runtime and Crystal Reports AddOn for SAP B1 on
    Client machines, but the problem is not resolved yet.
    Server Machine Details
    Version : SAP B1 2007A Server SP01 PL08
    OS: Windows Server 2008 R2 (64-bit)
    Crystal Reports AddOn for SAP B1 (64-bit)
    Crystal Reports Runtime
    Crystal Reports Runtime for Visual Studio
    Client Machine Details
    Workstation 1
    Version : SAP B1 2007A Client SP01 PL08
    OS: Windows Vista Enterprise (32-bit)
    Crystal Reports AddOn for SAP B1 (64-bit)
    Crystal Reports Runtime
    Crystal Reports Runtime for Visual Studio
    Workstation 2
    Version : SAP B1 2007A Client SP01 PL08
    OS: Windows XP
    Crystal Reports AddOn for SAP B1 (64-bit)
    Crystal Reports Runtime
    Crystal Reports Runtime for Visual Studio

  • Running a crystal report from a local machine

    HI guys i'm hoping someone can help me.
    I have created a silverlight / asp WEB application that has a crystal report in visual studio 2010.
    The problem i have is that i've deployed my website to a shared webhost that does not support crystal.
    Until i find a webhost that supports the new version of crystal reports for VS 2010, is there a way i can allow the user to run the report manually from their desktop?
    I noticed that installing the crystal reports runtimes and giving them the .rpt file does not allow them to open the file. Is there any other way?
    Thanks in advance

    Hello,
    Moved your post to the .NET SDK forum where 2010 is the only place it is supported, for now.
    Mmmmmm. There is a deployment package you can use to get CR runtime onto a WEB server but unless you can find a host who will allow you to do so you'll have to convert your app to a Windows application. Not too much work but there are definitely differences.
    To deploy your WEB app to a desktop each user would have to install and configure IIS. Although on Windows 7 with VS 2010 installed there is an interact WEB server, but I haven't looked into it that much or know what the licensing rules are around it. It may just be something VS 2010 installs and supports and you can't deploy.
    Sorry I have not heard of anyone either being the product is so new....
    Thank you
    Don

  • Run a Crystal Report published on BW from SAP NetWeaver Portal without BOE

    Hi all,
    We need to create a report using Crystal Reports, save it to BW, publish it to SAP NetWeaver Portal, and run it from SAP NetWeaver Portal. We do not want to use BOE here.
    Currently, we are able to save the report on BW.
    With Xcelsius, we have seen that we can directly refer to the dashboard's technical name from SAP NetWeaver Portal. Is similar thing possible using Crystal Reports? If yes, how this can be achieved?
    Regards,
    Dhanesh Aradhye

    take a look here:
    Portal Part 1
    /people/ingo.hilgefort/blog/2010/03/29/sap-businessobjects-enterprise-sap-enterprise-portal--part-1-of-4
    Portal Part 2
    /people/ingo.hilgefort/blog/2010/03/30/sap-businessobjects-enterprise-sap-enterprise-portal-part-2-of-4
    Portal Part 3
    /people/ingo.hilgefort/blog/2010/04/08/sap-businessobjects-enterprise-sap-enterprise-portal--part-3-of-4
    Portal Part 4
    /people/ingo.hilgefort/blog/2010/04/21/sap-businessobjects-enterprise-and-sap-enterprise-portal--part-4-of-4
    but you still need the BusinessObjects Enterprise system as only the BusinessObjects system will actually render the report.
    Ingo

  • How to run a crystal report in SAP Crystal Reports 2011

    I've installed SAP Crystal Reports 2011. I can't figure out how to run a crystal. What replaces the lightning bolt used in previous versions of crystal? I'm I missing something?

    Hi Tim,
    You may:
    1) Press F5
    2) Go to Report > Refresh Report (Notice the icon beside the label)
    3) Go to View > Print Preview
    4) Or, click the refresh button on the toolbar
    5) The icon on Point#2 is also available on the toolbar
    -Abhilash

  • Error while trying to run the Crystal Report ADD ON on SAP 8.8 Patch 12

    Hello Expert,
                        I have installed Crystal addon version 2.0.07 on SAP 8.8 P12.While trying to start the crystal addon I am getting the following error.
    "External connection to DB Failed.Please re-run the account setup with super user login."
    regards,
    pankajk

    Hi Gordon,
                    I am unable to see the crystal manager in the menu after the installation of SAP 8.8.Only at the Tool there is Preview for th external crystal report.How to visualize the cyrstal report manager in SAP 8.8.
    regards,
    pankajk

  • Not seeing parameter values in SBO while running a crystal report w/Zebra

    I am using the crystal reports addon for SAP Business One.  I created a report which prints a label (1"x3") on a zebra thermal printer.  If I run the report within SAP Business One with a default printer other then the zebra printer I see the drop downs for the parameter values.  However when I select the values and print it , the label does not print correctly.  It appears as if crystal thinks the label is 3"x1".  If I try to run the report with the zebra printer as a default printer within SAP Business One, the drop downs for selecting the parameters are gone.
    If I run the report within crystal 2008 directly, I have no problems with printing the label properly as long as the Zebra Printer is not the default printer.  I have updated crystal 2008 with all available service packs and updates.  I have made registry entries on the server and workstations to allow more than enough values to be seen in the parameter dropdowns.
    Does anyone have any idea why the report will not work when being executed within SAP Business One?

    Susan,
    I'm not sure if the attached thread is relevant for you? I am also searching related to issues with Zebra, although mine are with PLD.
    Re: Crystal Reports viewer(runtime) barcode printing problem

  • Running a crystal report xi in batch mode (C# runs a crystal report xi in batch mode)

    <p>Does anyone know if it is possible in a C# program to submit a Crystal Report XI? </p><p>Our design is to use C# front end to prompt the user for the parameters for the report.  These parameters would be stored in a table.  At night the C# program would wake up and based on the parameters, the C# program would submit the crystal report to run.</p>

    hi..
    am using .net version 2005 and crystalreports version 9.0
    i pass value from crystalreportviewer page to crystal reports design page using parameter fields but they take only first row data only...
    i want to display dynamic values .. values are passed correcltly but not displayed... all fields dispalyed same  value from database first row..
    is there any solutions .. please reply me..
    my mail id: [email protected]

  • API to run a crystal report remotely

    Hi.  I am trying to figure out how to programatically run crystal reports and save the resulting pdfs.  Here is my setup:
    I have a machine running linux, and another machine running Windows Server with Business Objects on it.  (neither machine is one that I administer).
    I have some crystal reports stored on the Business Objects server.  The reports take parameters.  Using Infoview, I can navigate to the reports and run them by typing in parameters and telling it to export to a pdf file, where I type in the filename.
    Now I want to automate that.
    The parameters I want to pass in are stored in a database.  I want to have a cron job on the Linux machine get all the parameters and then trigger the exporting of each of the 1500 reports.  A scheduled job on the Business Objects server can then scp the pdf files to the final location (on the Linux server).
    Alternatively, I want that cron job to trigger the export of the pdf files, grab the data, and create the files right then without requiring the scp process.
    I am terribly confused how to do this.  I thought I should use the "Java Reporting Components", JRC, but that doesn't seem to have a provision to connect to a remote Business Objects server.  Also, apparently, those libraries are only available on a machine that has Crystal installed, which the Linux server does not.
    So, I need a library that I can run on that LInux server, and run those reports remotely..  What API should I be looking at, and how do I get it?
    Languages available on the Linux server:
    C, C++, Java, PHP, Perl
    Thanks.
    --Ryan

    Hi Tim,
    You may:
    1) Press F5
    2) Go to Report > Refresh Report (Notice the icon beside the label)
    3) Go to View > Print Preview
    4) Or, click the refresh button on the toolbar
    5) The icon on Point#2 is also available on the toolbar
    -Abhilash

  • SAP B1 Closes when Running the Crystal Report

    Hi SAP Expert,
    I have a problem during running the customized report i've created in Crystal. I created a stored procedure please see my code below. The Crystal Report is running during development but when i exported to SAP B1 and run the report. The SAP Business One will terminated. Any help please...
    CREATE PROCEDURE [dbo].[SP_ACTUALPURCHASESV3]
         -- Add the parameters for the stored procedure here
         @FROM DATETIME,
         @TO DATETIME
    AS
    BEGIN
         SET NOCOUNT ON;
         SET @FROM = CAST(CAST(MONTH(@FROM) AS NVARCHAR) + '/' +
                        CAST(DAY(@FROM) AS NVARCHAR) + '/' +
                        CAST(YEAR(@FROM) AS NVARCHAR) + ' 00:00:00:000' AS DATETIME)
         SET @TO = CAST(CAST(MONTH(@TO) AS NVARCHAR) + '/' +
                        CAST(DAY(@TO) AS NVARCHAR) + '/' +
                        CAST(YEAR(@TO) AS NVARCHAR) + ' 23:59:59:000' AS DATETIME)
         SELECT
              (SELECT DocEntry FROM OPOR WHERE OPOR.DocNum = PDN1.BaseRef) as  PODocentry,
              PDN1.BaseRef AS PONum,
              OPDN.DocEntry,
              OPDN.DocNum,
              OPDN.DocType,
              (select ocrd.lictradnum from ocrd where ocrd.cardcode = opdn.CardCode) as LicTradNum,
              OPDN.CardCode,
              OPDN.CardName,
              OPDN.DocDate,
              CASE WHEN PDN1.WhsCode IS NULL THEN PDN1.AcctCode ELSE PDN1.WhsCode END AS WhsCode,
              CASE WHEN PDN1.WhsCode IS NULL THEN (SELECT OACT.AcctName FROM OACT WHERE OACT.AcctCode = PDN1.AcctCode) ELSE (select OWHS.WhsName from OWHS where OWHS.WhsCode = PDN1.WhsCode) END AS WhsName,
              CASE WHEN PDN1.ItemCode IS NULL THEN 'N/A' ELSE PDN1.ItemCode END AS ITEMCODE,
              PDN1.Dscription,
              PDN1.Quantity,
              PDN1.unitMsr,
              PDN1.Price,
              PDN1.PriceBefDi,
              PDN1.PriceAfVAT,
              CRD4.WTCode,
              OWHT.RATE,
              (case when pdn1.quantity > 0 then (pdn1.Price * pdn1.Quantity) else PDN1.Price end ) * (OWHT.rate/100) as EWTVALUE
         FROM OPDN JOIN PDN1 ON OPDN.DOCENTRY = PDN1.DOCENTRY left join CRD4 on OPDN.CardCode = CRD4.CardCode left join OWHT on OWHT.WTCode = CRD4.WTCode
         WHERE OPDN.DocDate BETWEEN @FROM AND @TO  and OPDN.CANCELED = 'N'
         --WHERE OPDN.DocNum = 2542
         ORDER BY OPDN.DocDate
    END

    Hi,
    Does it means we are allowed to create stored Procedure inside the Company Database. We only use selecting and joining tables and somehow some complex sql procedures to meet our requirements.
    Thanks, but my question is if there's nothing wrong with it why my SAP B1 Closes when previewing the Crystal Report. Im running on Windows 7 64-bit, i will not imagine that the capacity of memory of my Terminal Unit is not enough because my memory is 8GB. I run crystal report but it shows the record, but when running the Cystal Viewer inside SAP B1 it illegally terminated.
    Thanks for clarifying the creation of Stored Procedure.
    Ben

  • Running a crystal reports viewer from forms

    Greetings,
    I am using Oracle Forms 10g!!
    I have a form that is used to invoke a crystal report viewer using the HOST command. The viewer has the ability to pass in a id and password. When I try to run it I get:
    Logon failed.
    Details: IM003:Specified driver could not be loaded due to system error 998 (Oracle in Oracle_HOME)
    The report runs fine otherwise.
    Regards,
    Bill Chadbourne

    I have the following in my WHEN-BUTTON-PRESSED trigger:
    CLIENT_HOST('cmd /c "C:\Program Files\Jeff-Net Report Runner Viewer\JNRRE.EXE" jnreport=H:\OC\Computer Services\Oracle Database\DFACrystalReports\EPA_PTS\COST_RECOVER.RPT jnid=rs_ray jnpassword=rs_ray') ;
    When I click the button I receive:
    Logon failed.
    Details: IM003:Specified driver could not be loaded due to system error 998 (Oracle in Oracle_HOME)
    If I change the trigger text to:
    CLIENT_HOST(' cmd /c "C:\Program Files\Jeff-Net Report Runner Viewer\JNRRE.EXE jnreport=H:\OC\Computer Services\Oracle Database\DFACrystalReports\EPA_PTS\COST_RECOVER.RPT jnid=rs_ray jnpassword=rs_ray" ') ;
    (From the CMD window) 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
    I would rather not use a .bat file, if possible.
    Regards,
    Bill Chadbourne

Maybe you are looking for

  • Not the same old water damage story.

    Alright...I confess...it probably is. But after reading through virtually every thread on the topic I've decided to post anyway as there are a few variables particular to my situation, to see what you all think is the best course of action. Long stor

  • HTML response for HTTP adapter

    Hi All, I have a BPM scenario in which I have to send PO idoc to third party system using HTTP adapter and after I receive a response message from the system (it is synchronous process), I have to update PO idoc status using SYSTAT idoc. The problem

  • Problem on Installing RAC System - Oracle Linux 6.2 and 11gR2

    Folks, Hello. I just start to install 4-nodes RAC system using VMplayer 3. The host Operating System is Windows 7. The Guest OS is Oracle Linux 6.2. Because my computer's hard disk does not have enough space, I install the Guest OS Oracle Linux 6.2 i

  • Does iphoto support transparency in images?

    does iphoto support transparency in images?

  • Sequence of deployment for EJBs and Servlets....

    Is there any way to control the order in which weblogic 6.0 deploys EJBs           and servlets?           We have a few startup servlets which use EJBs, however, weblogic 6.0           seems to start the Servlets before it deploys the EJBs and thus