UI Loading Cystal Reports 2008 ActiveX Viewer into SAP B1

I have been looking over Code Samples, Help Forums and documentation from Business Objects for pas 5 hours. I made this work with VS2003 and CR10 but now im running VS2005 with CR2008.
Here is my code; It crashes on the bold line with the message: "Invalid cast".
The report is there and valid.
It does not even connect to a database; it has one text field in the header containing "Helloworld"
Oh and one more thing; i dont have this class CRAXDDRT. Im assuming that the class was stopped at CR11...
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class cCRViewer
    Protected oForm As SAPbouiCOM.Form
    Protected oDataSources As SAPbouiCOM.UserDataSources
    Protected WithEvents oCRViewer As CrystalActiveXReportViewerLib12.CrystalActiveXReportViewer
    Public ocr As New ReportDocument
    Public Sub New()
        Dim oActiveX As SAPbouiCOM.ActiveX
        Dim oItem As SAPbouiCOM.Item
        Try
            oForm = oApplication.Forms.Add("NewClass", SAPbouiCOM.BoFormTypes.ft_Sizable, "900201")
            oDataSources = oForm.DataSources.UserDataSources
            oItem = oForm.Items.Add("Viewer", SAPbouiCOM.BoFormItemTypes.it_ACTIVE_X)
            oActiveX = oItem.Specific
            oActiveX.ClassID = "CrystalReports12.ActiveXReportViewer.1"
            oCRViewer = oActiveX.Object
            ocr.Load("D:\TEST.rpt")
            oCRViewer.ReportSource = ocr
            oForm.Visible = True
        Catch ex As Exception
        End Try
    End Sub
Thanks
Denis
Edited by: Denis Doiron on Sep 24, 2008 8:17 PM
Edited by: Rui Pereira on Dec 23, 2008 2:44 PM

Denis,
I don't know what's wrong will your code, but I can tell I'm using a .NET form to show the ReportViewer.
Regards,
Vítor Vieira
Edited by: Rui Pereira on Dec 23, 2008 2:52 PM

Similar Messages

  • Issue with use of shared variables in Crystal Reports 2008 Offline Viewer

    Hi,
    I have a report that contains a number of sub-reports which include drill-down functionality. The report returns data relating to an individual team with the user being able to view top level summary information in each area from the parent report and then drill into the sub-reports to view see more detail. The data returned by the sub-reports is filtered, using sub-report links, based on the team code parameter value given by the user. This parameter field resides in the main report.
    One of the values returned by the main report is the team name. This is passed to each sub-report using a shared variable and each sub-report displays this team name as part of a heading.
    This all works fine in Crystal Reports 2008, but when a report, containing data, is opened using Crystal 2008 Offline Viewer there is a problem with the shared variable. The value is displayed correctly when the user initially drills into the sub-report. However, when the user begins to drill into grouped data within the sub-report the value passed to the sub-report using the shared variable disappears. 
    How can I ensure that, when a report is viewed using Crystal Offline Viewer 2008, the value within the shared variable is not lost when users drill into grouped data within sub-reports
    Thanks
    Stuart

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Printing Extremely Slow Using Crystal Reports 2008 ActiveX Print Control

    Problem:
    We are trying to upgrade our existing Crystal Reports 10.0 ActiveX Viewer ASP based reports to the new Crystal Reports 2008 ASPX Report Viewer but are having print performance issues that have prohibited us from moving forward.
    Environment:
    Windows 2003 Server Standard Edition 32-bit with SP1
    IIS 6.0 running ASP .NET version 2.0.50727
    Crystal Reports 2008 SP0 with FP1
    Crystal PrintControl.dll version 12.0.0.796 (verified on server and client)
    Details:
    Crystal Reports 2008 ASPX Report Viewer Object & ActiveX Print Control Report Printing Scenario
    From a typical 27 page report, the user clicks the Print icon from the ASPX Report Viewer Object.
    The Print window with the message Crystal Reports Print Control immediately appears on the screen.  This window is on the screen for approx 30 seconds.
    The Print Setup window finally appears on the screen.  The user verifies the printer, chooses to print pages 1-5, and clicks the Print button from the window.
    The Retrieving page 1 message appears in the Print window.  The message remains in the window for approx 30 seconds.
    The Printing page 1 message appears in the Print window.  The message remains in the window for approx 30 seconds.
    The Printing page 2 message appears in the Print window.  The message remains in the window for approx 30 seconds.
    The Printing page 3 message appears in the Print window.  The message remains in the window for approx 30 seconds.
    The Printing page 4 message appears in the Print window.  The message remains in the window for approx 30 seconds.
    The Printing page 5 message appears in the Print window.  The message is in the window for less than 1 second.
    After 3 MINUTES of waiting the report finally starts printing.
    Crystal Reports 10 ASP ActiveX Report Viewer Report Printing Scenario
    From the same typical 27 page report that was used in the Crystal Reports 2008 scenario, the user clicks the Print icon from the ASP ActiveX Report Viewer.
    The Print window Immediately appears on the screen.  The user verifies the printer, chooses to print pages 1-5, and clicks the Print button from the window.
    The Print window Immediately disappears from the screen and the report Immediately starts printing.
    The entire print process takes only 3 u2013 4 SECONDS.
    Even  though we are trying to get the users to decrease the amount of paper used in report printing.  They still do a significant amount of printing.  The difference between the print performance using Crystal Reports 10 (3-4 seconds) and Crystal Reports 2008 (3 minutes) is totally unacceptable to our users.
    Has anyone else experienced this problem and is there a known fix for it?  This is the only thing holding us back from our upgrade and it has become very frustrating to us.
    Much thanks to anyone that can shed some light on this.

    Hi Brian,
    Please have a look at [this|Crystal 11.5 Activex control for viewer; post.
    However, have you tried with the No Printer options available in Print Options window from designer?
    Regards,
    Atanu.

  • Hide the database connection window when load a report in a viewer control

    When I load a report in viewer and the datasource is empty always appears a window for connect to database. How I can hide ALWAYS that window. Is possible? I did see some ways for do it, at before versions of CR, but seems don´t works in last version of Crystal Reports for .NET.
    Anyway, is possible show a default text in viewer for information to user than don´t exists data?
    Many thanks for the help, and excuse me my poor english.

    The structure of XML is that: http://slexy.org/view/s20h0LVX1b
    The XSD showed is used for the design of report.
    In the empty datas the prompt dialog appears. The XML is different depend of context from application.
    When I have the XML then load it in a DataSet object, and call the SetDataSource method from ReportDocument. In that moment ReportDocument don´t have any information over his state? Exists some way for know if will need extra information from user through the prompt dialog? In that case I could load another report with "NO DATA" text, but I don´t have info.
    For example, is possible override the behavior from Crystal report viewer for show a different window? I did see events but nobody works for me.
    Many thanks for the help and excuse me for my poor english.

  • Runtime Error  loading Crystal Reports 2008

    Hi there
    I have recently purchased online in the sap site the bundled product that includes SAP Crystal Reports and SAP Crystal Dashboard Design on the sap website. For those I received only one key code
    I downloaded both products and manage to installed and load SAP Crystal Dashboard Design. I have installed SAP Crystal Reports (CR2008LPs_02142011.exe) everything goes well. When I start the program it loads for a second and then I get the following error:
    u201C Runtime Error!
    Program: c:\Program Files\Businessu2026
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application support team for more information.u201D
    My OS is Windows 7 Enterprise 32-bit
    I have tried the following:
    u2022     Uninstalling and reinstalling again
    u2022     Downloading the file again from the sap site in case the file was corrupted
    u2022     I have uninstalled CR and download the SAP Crystal Reports trial version from SAP site
    u2022     Trying to navigate to the registry to clear the registry for recent files (as I have seen in this thread Crystal Reports 2008 Runtime Error) . I get the following error message when I click on u201CHKEY_CURRENT_USER/Software/Business Objects/Suite 12.0/Crystal Reports/Recent Filesu201D. Error:
    "Error opening Hey:
    Crystal Reports cannot be opened
    An error is preventing this key from being opened
    Details: Access is denied"
    I have been unsuccessful with all the above.
    I would appreciate if someone could help.
    Thanks in advance and regards,
    Santiago

    Hi Santiago,
    That error suggests you are not a local PC administrator. CR installs require you use an account that can update registry keys etc.
    Talk to your IT guys to give you full access to your PC or log on as the local PC Administrator and install it again.
    Thank you
    Don

  • [Crystal Reports 2008] - Logon failed in SAP system

    Hi everybody,
    I have installed on my notebook Crystal Reports 2008 trial version and the Integration Kit for SAP Solutions that I found on this web page: https://boc.sdn.sap.com/node/18962
    When I try to open a SAP Data Source, Crystal Reports finds the connections I have in my SAPLogon and ask me credential infos. I get the following credential error:
    "You do not have the necessary rights to design reports against the SAP System"
    The user I enter has full administration right on the system, which is a SAP R/3 Enterprise.
    Thanks,
    Valerio

    Hello Valerio,
    Please make sure you install the corresponding transports for the Driver you are trying to use in Crystal Reports.
    The transports are available on the SAP Integration Solution CD.
    thanks
    Mike

  • IE8 on XP shuts down on first print of Crystal Report using ActiveX Viewer

    Environment:
    u2022 Business Objects Enterprise XI 3.1 SP3 FP 3.5
    u2022 Tomcat 5.5
    u2022 Windows Server 2003
    u2022 JDK Version: 1.6
    u2022 Internet Explorer 8 - compatibility mode
    u2022 client machines Windows XP Professional SP3
    Issue:
    The browser shuts down after last page is queued for printing upon installing ActiveX print control for the first time in all XP SP3 environments.  Issue does not occur when using Vista or Windows 7.  Subsequent printing works fine after ActiveX print control has been installed once.
    Steps Taken:
    -"Enabled memory protection to help mitigate online attacks" option in IE and turned on DEP on OS - this is mandatory for company security policies.  Issue does not occur if this option is turned off.
    -Not reproducible on my end under same environment
    -PDF printing works, however this is not a feasible solution
    -issue does not occur for IE6 and IE7 in XP, and IE8 on Windows 7
    -disabling DEP via boot.ini also removes issue
    -upgrading client workstation to Windows 7 also not a viable solution
    -validated version of  \Business Objects\common\4.0\crystalreportviewers12 \ActiveXControls\PrintControl.dll on the BOE server as 12.3.1.684
    -on client machines, added to Trusted Sites  the web site of report origin. Open internet explorer >Tools>Internet Options>Security Tab>Trusted Sites Security Zone >Click Sites> Add Site by typing the web site address---> Click Add -->OK then close the internet Options dialog box.
    -not applicable solution, BO XI R2 - "Blank "Crystal Reports Viewer" window - attempt to print report
    relevant links:
    http://support.microsoft.com/kb/875352
    http://blogs.msdn.com/b/ie/archive/2008/04/08/ie8-security-part-i_3a00_- dep-nx-memory-protection.aspx

    Hi Seb,
    It's already been validated that turning off DEP works. however, DEP is mandatory for this customer.
    I did come across the release notes for IE8 at http://msdn.microsoft.com/en-us/ie/dd441788, indicating the following,
    Turn off Data Execution Prevention group policy
    The Group Policy setting, Turn off Data Execution Prevention (Windows Components | Internet Explorer | Security Features), does not currently function as expected. While the Internet Control Panel option will appear to be disabled, Data Execution Prevention is still turned on. This is a known problem and will be corrected it in a future update.
    Thanks,
    Calvin

  • Cannot display Crystal Report with ActiveX Viewer

    I am using SmartViewerActivex.asp in a classic ASP website to display Crystal Reports and the report will not load. 
    I get a blank grey screen with only the toolbar showing but able to export out with data intact.
    I am  using CR9, running in Windows Server 2012 R2 IIS 8.5.
    I've already spent about 2 weeks and have not found an answer. Please HELP!

    Unfortunately, no help available. I suspect when CR 9 released in 2002, Win Server 2012 was not even a twinkle in Bill's eye. E.g.; you are looking for CR 9 to be 10+ years forward compatible. In other words, it is not supported on WIN server 2012.
    Possible option is to upgrade to CR XI R2 (v. 11.5). There you have a weak prayer and hope. With luck it may work. Note that CR XI r2 was the last version of CR to include the AcitiveX viewer. And CR XI R2 has been out of support for over 2 years now.
    Best bet: CR SDK for VS .NET or CR SDK for Java. This would mean a new app...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Cystal reports 2008 conversin caused parameters not to show

    We started the process of upgrading our runtime to the lastest version 2008.  We were on XI and everythign worked fine. Now when we invoke a report through c# program, if the parameter is not explicitly placed in teh report page the parameter does not show up. We have to put the parameter in the report ofr them to be invoked.  Is there a setting or a code piece that we need to put in place in order for it to prompt for every parameter that is being used in the report. Most of our reports are used in selects and not displayed directly in the report.

    Remember this is only a community forum. Not technical support as such. You may get an answer, you may not... If you need technical support, you can create a phone case here:
    http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100 
    Ludek

  • Need alternative for activex print control using Crystal reports 2008

    I have created a .Net web application (2.0/3.5 .Net framework) with crystal reports 2008.
    Reports are viewed using Crystal reports 2008 activex viewer.
    On click of PRINT icon in activex viewer, activex print control download prompt will be displayed on client machine.
    I need to avoid downloading of activex print control on client machine. Is there any other alternative or option to use print functionality in viewer without downloading activex print control on client machine?
    Or Is there any other workaround for print functionality in Crystal reports 2008 Viewer without downloading activex print control?
    Note: Activex print control download prompt will not be displayed when using Crystal reprots XI Release 2 version.
    Thanks,
    Jagannath

    Does anyone know which files need to be registered for the ActiveX print control?  We occasionally have users who somehow break their Crystal ActiveX controls, and they can no longer see the print options.  In Crystal 10, I was able to fix these issues by pushing a package which registered several files on the user's computer.

  • Error installing Crystal Reports 2008 in Vista

    I am trying to load Crystal Reports 2008 on a Vista machine (32 bit).  I keep getting an error message and set-up will not continue.  Details show APPCRASH.
    How can I get this to install??????
    Thanks,

    Hi Debbie
    We would like to know the following information:
    - From which source (CD or Website) are you installing the product?
    - The link from where you have downloaded the product.
    - What happens if you install the product by login as an Administrator?
    - Is the download saved on your local drive?
    Thanks
    Poonam

  • SBO Crystal Report 2008 Add-on on 64bit Windows 2008 Server

    Dear Friend,
    Do you have any experience on installing SBO Crystal Report 2008 Add-on with SAP B1 2007 B on 64bit Windows 2008 Server (SBS)? Could you please explain the exact reason for the following error on installation of the add-on on its final stage?
    Retrieving the COM class factory for component with CLSID {3E...} failed due to the the following error: 80040154

    [crystal report integration for SAP Business One|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/707f51b3-0b20-2b10-8daa-d8ee72ace309 [original link is broken]] version v2.0.0.7
    [Run time Download|https://smpdl.sap-ag.de/~sapidp/012002523100009351352008E/crruntime_120_mlb.msi]
    Thanks
    Krish

  • Crystal Report 2008 Runtime License

    Hi,
    I have a Crystal Report 2008 designer license.
    I want to design reports and distribute to my clients.
    Clients will just execute the reports through my application with the Crystal Report 2008 Runtime.
    There is runtime available on:
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
    While installing the runtime it does not ask for any license key.
    my query is do we require any license to use the Crystal Report 2008 Runtime?
    Can we install the same runtime on web servers so that multiple clients can use it.
    Do we require any license for the Runtime on server?
    Thanks,
    Abhijit

    Hi Thanks for the reply.
    Just to make it sure is that means?
    1. Crystal Report 2008 Runtime is free for the client applications.
    2. Crystal Report 2008 Runtime requires the 'SAP Crystal Reports runtime server license' to use the runtime on server applications.
    Is it correct.
    Thanks,
    Abhijit

  • Crystal Reports V8.5から.Crystal Reports 2008へのレポートファイルのコンバート

    現在、Crystal Reports V8.5から、Crystal Reports 2008へバージョンアップをしています。
    Crystal Reports V8.5で作成した定義を、Crystal Reports 2008で実行した際に
    データソースの保存場所の設定が、V8.5と2008の間で変わった(と思っています)為
    帳票出力出来ません。
    V8.5の定義では、以下のようにデータソースのパスを指定しています。
    レポート
    |-XXXX.DBF
     |-プロパティ
       |-データベースタイプ:xBase
       |-サーバータイプ:pdbxbse.dll
       |-サーバー名:XXXX.DBF
    ◆メニューバーのデータベース -> データベースの照合 -> データソースの保存場所の設定 -> プロパティのデータベースパスをレポートと同一にする -> レポートファイルを上書き保存
    上記作業を行うと、Crystal Reports 2008でもデータソースを正しく見る事が出来るようになるのですが、
    いかんせんレポートファイルが100本近くあるので手作業で1つ1つ行っていくのが手間です。
    このコンバート作業について、SAP社からユーティリティなどはリリースされていますか?
    ダウンロードサイトは確認しましたが、見つけられてはいません。。。
    また、ユーティリティが無ければ、このコンバート作業をバッチプログラムなどで行いたいと考えています。
    どなたかバッチプログラムを作られた方いらっしゃいますか?それとも、バッチプログラムでの作業は無理なのでしょうか?

    Hi Again,
    That is very strange, almost like a pop up blocker is enabled.
    All I can suggest is to use ProcessMonitor and look for Access Denied errors to see if that helps, likely some security setting is blocking the linking UI from updating itself.
    And/Or purchase a case on line and get someone in Support to work with you directly to fix the issue. It's beyond what forums can do now.
    Here's the link:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551
    Good luck.
    Don

  • Crystal Report requests Database logon if SAP BW is datasource

    Hi all
    I experience the following:
    1. SSO from SAP Portal to BOE works: I can view Sample Crystal Reports based on the BO-iView-template without additional login
    2. SSO from SAP Portal to SAP BW works: a) I can view custom BW Web queries without additional login and b) the connection tests on the system object in SAP Portal run fine
    3. I assume SSO between BOE and BW works because I can view Xcelsius dashboards based on BW queries within SAP Portal without additional login
    Nevertheless I am presented a login screen ("The report you requested requires further information. -
    Database Logon") if I try to view a crystal report based on a BW query, no matter if I start the report from InfoView, SAPGUI or SAP Portal. If I enter my SAP credentials in "Databse logon"-window I can see the report runs fine.
    SAP Authentication in BOE seems to work (I can import users & roles). In all 3 systems I have at least Admin or equivalent permissions. If I change the Database Configuration for this report within InfoView ("Use SSO") it does make any change (I also read somewhere a reply from I. Hilgefort that this is not necessary if BW publisher service is installed correctly).
    We use SAP BW 701.06, BOE XI31FP3.4 and SAP Portal 701SP6
    I publish the report from Crystal Reports 2008 SP2 with the SAP-Menu -> Save Report.
    I logon to InfoView-App with my SAP-BW credentials.
    Any help appreciated!
    BR
    Kanan

    Real solution is different, my other post is only a workaround:
    1. SNC settings in CMC were not correct (Certificate path, path to sapcrypto.dll)
    2. Relevant Serices have to run under local username
    3. Username has to be added to PSE
    See here: https://websmp130.sap-ag.de/sap/support/notes/1364536

Maybe you are looking for

  • Photoshop can't open more than one graphic at a time without crashing

    I get the error: The instruction at "0x7c918af2" referenced memory at "0x00000010". The memory could not be "written". Anytime I try to open more than one image in Photoshop at a time, regardless of how I do it - doesn't matter if I choose the image

  • Real time apply for logical standby

    Hi Oracle 11.2.0.3.0 I have a primary database orcl and logical standby database orcl_std. Real time apply is enabled. I have standby redologs in both primary and standby sides and I`ve started recovery with below command: ALTER DATABASE START LOGICA

  • Sax character method cutting elements

    Hi everyone. Here is my problem, sometimes the character method of Sax parser doesn't give me entire elements back. I found these but cannot get it working: Also, be really careful with what you get back from the characters method of the handler. You

  • Trying to set network interface at 100/full on Solaris 11

    Hi all, I hope someone can help me. I've built two boxes running Solaris 11 in my lab. Connected to a hub, all seemed well. Now, I've connected them to the network here and I'm having the following issue, The machines should be connecting to the netw

  • Regarding Inbox Search

    Hi All, Currently we are facing an issue in Inbox while searching  Service Tickets,I am searching ST based on the Status and Communicated but it is showing an error that "Unable to select business transaction" and if i am giving time period it is sho