View Crystal Report File  from SDK

Hello All,
I want to View Crystal Report File (.rpt file) from SDK (using VB 6 )
I have already try following code on my Add On :
   Public Sub RunCrystalReport()
   Dim crlApp As New CRAXDDRT.Application
   Dim crlRep As CRAXDDRT.Report
   Set crlRep = crlApp.OpenReport("D:\ReportTest.rpt")  
   Dim CRAX2 As CrystalActiveXReportViewerLib12Ctl.CrystalActiveXReportViewer
   Set CRAX2 = Form2.CRAX
   CRAX2.ReportSource = crlRep
   CRAX2.ViewReport
   End Sub
But, nothing happen
Could some one help one for this ?
Thanks a lot
Regards,
Arie
SDK Beginner

Amazing Sir !!...
I could run my report through B1 SDK right now...
Many thanks to you Sir..
Just one more thing, The Horisontal and Vertivcal Scroll control wasn't appear. Do I have to add scroll object or someting like that
Many thanks again to you Mr. Porcelli
Arie

Similar Messages

  • Having trouble opening Crystal Report files from a document library

    I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint displays
    a prompt asking me to save the file locally instead of opening the file. I have done a lot of research online and found several sites discussing similar scenarios, however, I have not been able to get these solutions to work. Here is a short list of sites
    I have referenced for possible solutions:
    http://naadydev.blogspot.com/2013/03/crystal-report-viewer-sharepoint-2010.html?showComment=1383339860122
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/52aabf2d-10dc-424c-bd50-124fc972a9b9/crystal-report-viewer-integration-with-sharepoint-2010?forum=sharepointgeneralprevious
    http://www.codeproject.com/Articles/42731/Crystal-Reports-WebPart-for-SharePoint
    Here are the steps I have done to try to get the .rpt files to open:
    Added the Crystal Report extension .rpt as a MIME type
    Installed the Visual Studio 2012 Crystal Reports Viewer toolbar
    Installed the 64-bit Crystal Reports runtime
    I have also created a solution file based off the Code Project site which partially works, but not quite right. In this project I have created a document library called "Crystal Reports rpt Files" and deployed the solution file to a site. When
    I open the Web Part Maintenance Toolbar I can see the selected .rpt file in the drop-down, but no Crystal Report file is displayed on the page itself.
    I am not sure what I am doing wrong. Does anyone have experience working with Crystal Reports and SharePoint 2013 (or earlier versions) that could lend some advice?
    Thank you,
    Alex

    We are having the exact same issue, has anyone resolved this yet?

  • Issues viewing Crystal Report XI from vb6 application

    Hello,
    I'm trying to create a report interface in vb6. I'm using crystal reports XI. THe issue I'm having is that I'm getting error 91 - Object variable or With block variable not set at this line in my code :
    CrystalActiveXReportViewer1.ReportFileName = ReportPath . This is baffling me because as far as I can see, I've selected all of the relevant references.
    So if anyone has any ideas, please suggest.
    Mel T

    Hi,
    Try this link for VB6 application. [HOW TO OPEN AN EXTERNAL CRYSTAL XI REPORT IN VB6|http://pscode.com/vb/scripts/ShowCode.asp?txtCodeId=67374&lngWId=1]
    AND
    [Crystal Reports XI with Visual Basic 6.0|http://www.vbforums.com/archive/index.php/t-438828.html]
    Regards,
    Clint
    Edited by: Clint T. Pauyon on Feb 12, 2009 4:10 PM

  • Overwrite crystal report file name with new version but keep history

    I am writing a Crystal Reports .NET SDK in C# code to upload a crystal report files from its destination to CMC folder on BO XI R2 Platform.
    On "Upload Button" click_event, validate the two check boxes controls named "Keep History", and "Remove History". Once "Keep History" check box is selected, check If the SAME report file name exists in the same destination CMC folder, if Yes, overwrite it BUT Keep the History and all its associated objects like "recurring objects". If "Remove History" is selected, then remove the existing report and upload the new report file name.
    Please provide me some codes on how to do this task. This is definitely a "WIN" - "WIN" effort and contribution to my Team Goals.
    P.S. This is a similar scenario when you are uploading report on BO Enterprise R2 CMC.
    When Uploading a new report to a folder but same report file name exists, the BO System will promt message "Report File Name" already exists. Do you want to Overwrite it?" If Yes, then system will overwrite the file but it will keep the history and recurring objects.
    Any help would be greatly appreciated.
    Thanks,
    Bien

    Suggest looking at [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETBusinessObjectsEnterpriseSDKSamples] wiki for links to pertinent samples. Also, check out the [Developer Help File|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/WS_SDK/wssdk_server/default.htm]. Searching these forums for similar queries may also prove to be fruitful
    Ludek

  • Can't view Crystal Reports from BW

    Hi,
    I'm installing SAP Integration Kit XI 3.1 SP3 with IIS.  I am able to publish reports from BW to BOE but not able view them from BW.  I followed the documentation to use report/report_view.aspx to define the viewer application in Content Administration Workbench.  But it is giving me a "The page cannot be found" error when I try to view Crystal Reports from BW.  I tried looking for the file report/report.aspx but cannot find it.  I was able to locate the file in SAP_CrystalReport_View/report_view.aspx.  I repointed the system to this path but it still giving me the same error. 
    Anybody here encountered this before?
    Thanks,
    Elijah

    Hi Ingo,
    - has the report being saved to BW and then published to BusinessObjects enterprise ?
        Yes, the report is being published from BW to BOE successfully.
    - did you import the ABAP Transports to the BW system ?
        I imported all the transports that came with the Integration Kit.  I'm not sure if the ABAP transport is one of them.
    - has the viewing service in transaction SICF been configured ?
        Yes, the top entry in the handler list is /CRYSTAL/CL_BW_HTTP_HANDLER.
    I did notice that the BW system is on a different subdomain than the web application server.  For example,
       BW system        -  bw01.us.mydomain.com
       BOE web server -   boweb.mydomain.com
    Would that affect the single sign on?

  • 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

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • Regarding Crystal report  parameter from and to.

    hi.
    I am having one requirement ie.
    Normally we are giving..i.e
    We are using parameter in Sap b1 like Docentry
    Based on this one Docentry the data will fetch from the data base and it will shows into the sap crystal reprot
    suppose Ex Docentry = 3 then it will show the data.. then
    but ring now what i nee dis  Docentry from and to
    fromdocentry = 1
    todocentry  = 5
    so, 1,2,3,4,5 five documents should be generate one by one in crystal report in single crystal report not 5 pdf files single pdf should have 5 doc entries
    Is it possible how can i do it.
    how can i do it...

    Hi
    I think it is not possible from Crystal Report but below discussion indicates it is possible through some Crystal Report SDK tool.
    Exporting a Crystal Reports file into multiple PDF's
    How to export a crystal report into several pdf files then email them to several email addresses
    With Regards
    Balaji Sampath

  • Accessing Crystal Reports XI from ASP

    Post Author: cutedude43
    CA Forum: General
    I need to access Crystal reports from ASP. The catch is Crstal Reports XI is not installed on the web server where the ASP application is hosted. However there is another machine where Crystal Reports XI is installed. Can you please let me know, in detail, how I could view crystal reports through the ASP application under this scenario. If this is possible please also detail the required run time files that needs to be deployed on the web server where the ASP application is hosted.
    If this is not possible, please detail the other ways through which I can invoke the crystal report from my ASP application page.
    Thanks
    Vaidyanathan

    The only code you will find on this web site is for VB 6. I have a few C++ apps. Not knowing a thing about flex, I am not sure if either of those will be of any use to you(?). Other than that, see if you can find some flex forum and ask there...
    Ludek

  • Open a Crystal Report preview from an Add-on

    Hi All,
    I'm just trying to open a Crystal Report preview using a button from my add-on.
    I want to use the SAP Crystal report, (the runtime integrated with SAP 8.8)
    Basically I have my report created, so I need to create the object, pass the parameters and open an screen with my preview.
    The main idea is open this Crystal report object when the addon starts and then just use that object.
    I've found an example with this object SAPbobsCOM.ReportLayoutsService but this is for SAP 8.8.1 and I'm working with 8.8. I don't know if i can use SAPbobsCOM.ReportLayout.
    I need a simple example please.
    Thanks .

    Hi,
    Have you read through this: View Crystal Report from add-on ?
    Thanks,
    Gordon

  • RE: What's database field are used in crystal report file?

    Hi all
    Please help me a C# code that using Crystall Report API (Crystal Report XI- Develop license) to get the list of database fieldname that using in crystal Report file. (What's database field using in header section ,group section , detail section of report.....)
    We looking forward to hearing from you
    Thanks
    Son

    Hello Son,
    please use this code below to get a list of used database fields in a report :
    //File Name:          CS_Get_report_data_out_inproc.sln
    //Created:            April 11, 2008
    //Author ID:          FLI
    //Purpose:            This C# .NET sample Windows application demonstrates
    //                  how to retrieve report data and put the into a XML file
    //                  using unmanaged RAS.
    // Note this is available without a dedicated RAS with SP2 for XI R2
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    using CrystalDecisions.ReportAppServer.Controllers;
    using CrystalDecisions.ReportAppServer.DataDefModel;
    namespace CS_Get_report_data_out_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    ReportData.rpt");
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                // Retrieve the Rowset Controller
                RowsetController boRowsetController = boReportClientDocument.RowsetController;
                // Retrieve the metadata (column headers) - this allows you to only retrieve the data that is on the report.
                RowsetMetaData boRowsetMetaData = new RowsetMetaData();
                Fields boFields = boReportClientDocument.DataDefinition.ResultFields;
                boRowsetMetaData.DataFields = boFields;
                // Now print out the data in XML file
                //(Note: This will print out the results of formulas too)
                StreamWriter sw = new StreamWriter("C:
    ReportData.xml", false);
                sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
                sw.WriteLine("<ReportData>");
                sw.WriteLine("<Reportheader>");
                // Print out the titles
                for (int i = 0; i < boFields.Count; i++)
                    String boFieldName = boFields<i>.Name;
                    sw.WriteLine("<ReportheaderDetail>" + boFieldName + "</ReportheaderDetail>");
                sw.WriteLine("</Reportheader>");
                //Create the cursor which lets us loop through the data
                RowsetCursor boRowsetCursor = boRowsetController.CreateCursor(null, boRowsetMetaData, 1);
                Record boRecord;
                while (boRowsetCursor.IsEOF == false)
                    sw.WriteLine("<Customer>");
                    boRecord = boRowsetCursor.CurrentRecord;
                    for (int j = 0; j < boFields.Count; j++)
                        try
                            sw.WriteLine("<Detail>" + (String)boRecord[j].ToString() + "</Detail>");
                        catch (Exception err)
                            sw.WriteLine("<Error>" + err.Message + "</Error>");
                    sw.WriteLine("</Customer>");
                    boRowsetCursor.MoveNext();
                sw.WriteLine("</ReportData>");
                // CLose the file
                sw.Close();
                MessageBox.Show("XML File 'ReportData.xml' successfully created on C:");

  • Crystal report files created, but why not all?

    I am using several (total 19) Crystal report files (*.rpt) in my project as report or subreport. When I delete these rpt files under my "...\bin\Debug" folder and run the application I see that some (exactly 14) of them are automatically retrieved back into the "...\bin\Debug" folder.
    But there are several other reports (remaining 5 of them) I also want them to be created at the application start. I have debugged the application from tha main entrance and saw that the rpt files are generated even the first line of code is executed. Also checked my "App.config" file (where I hold the paths for these report originals) and added the most recently created report that is not retrieved into the file, but the file is not retrieved.
    I have also checked the contents of "XXXXX.exe" (XML Configuration file), "XXXXX.vshost.exe" (XML Configuration file) under "...\bin\Debug" folder and "XXXXX" (Microsoft Visual Studio Solution), "XXXXX" (Microsoft Visual Studio Project file), "XXXXX.csproj" (Visual Studio Project User Options file), "XXXXX" (XML Configuration file) under the project folder but I still can not figure out how the Visual Studio determines which ones to retrieve and leave others
    Any help would be appreciated.
    Regards.

    This could be related to the Build Action property for the .rpt file.  Compare the settings for this property to see if the files that are not copied have a different setting.
    -MJ

  • Database Error While Viewing Crystal Report In Infoview

    Hi,
    BO and Crystal Designer version is BO XI 3.1 SP2 FP2.6.
    Issue:
    While viewing crystal report for a particular user id in infoview, following error is coming:
    Error in File EPACertificate.rpt: Database Connector Error
    However, we are able to view the report in thick client Crystal Designer using same user id. This issue is occurring only for this user and rest of the users are able to view the report in Infoview and Crystal Designer.
    It would be great if any of you can provie a solution to this issue.
    Thanks in advance,
    Jaya

    closing it.

  • Cannot view Crystal Reports 2008 API documentation

    I've purchased Crystal Reports 2008 From the On-line Store.
    I found the documentation on the API in the SAP Help Portal
    I downloaded the Crystal Reports 2008 .Net API manual.
    I get this great outline but there is no content with the statement "Navigation to the webpafe was canceled"
    Were can I get a usable manual?

    Hi Edward,
    Try to download product guide  from the following link:
    [https://websmp105.sap-ag.de/bosap-support].
    Have a look to this thread:
    [Read Before Posting - Where to find Crystal Reports .NET SDK resources;
    you will get all the links of SDK Libraries,Business objects notes, Sample code.
    If you have any issue with SDK post your question in
    NET Development - Crystal Reports Forum
    [SAP Crystal Reports, version for Visual Studio;
    Hope this helps!!
    Regards,
    Shweta

  • How to set DbConnections when scheduling a crystal report using Crystal Reports Server Java SDK?

    Post Author: Manjula
    CA Forum: JAVA
    Hi,
    Trying to schedule a report using Crystal Reports Server Java SDK. Want to pass DBConnections from API, though passing DBConnections, the report is not being scheduled and says "Failed to retrieve data from the database.Details:&#91;Database Vendor Code:6550&#93;.
    Would be thankful if someone could answer my point as applicable.
    Here is the code attached.
    ISDKList dbLogons = oReport.getReportLogons();int dbLogonSize = dbLogons.size();
    for(int i=0; i<dbLogonSize; ++i) {
    IReportLogon dbLogon = (IReportLogon)dbLogons.get(i);
    dbLogon.setDatabaseName("DBname");
    dbLogon.setUserName("usrname");
    dbLogon.setPassword("pwd");
    Thanks in advance.

    Post Author: Manjula
    CA Forum: JAVA
    Ted,
    Thank you for your valuable information.
    First, tried scheduling on Central Management Console and then with the java code.It worked fine, but here is another question for you.
    On the Console, a report exists with ServerName and UserName harcoded and when trying to set ServerName and UserName from the java code, its throwing exception. Where as Password is not set on Console, am able to set password from java.
    And DatabaseName is not set on Console (non editable), unable to set the same from java too. Why is it so?
    So, my question is - though ServerName,DatabaseName,UserName,Password exists on the Console report, can't I override those parameters from java?
    Would be greatful if you answer my question and provide me some guidance.
    Thanks in advance.

Maybe you are looking for

  • HP 5180 printer wont print to photo tray - tiger software

    For some reason the printer will not recognize that I am trying to print a photo (even when photo paper is selected in print menu in iphoto) i uninstalled the software that came with the printer and reinstalled the software upgrade for tiger from the

  • How do I back up Contacts from Outlook account to iPhone?

    How do I back up Contacts from outlook account to i phone <Re-Titled By Host>

  • ITunes error ".itl file is locked"

    For a few days now, when I try to open up iTunes I have been getting an error message "The iTunes Library.itl file is locked, on a locked disk, or you do not have write permission for this file" can anyone tell me what this means and if there is a wa

  • Why is my new apple password not fully working?

    Why is my new apple password not recognized when updating apps or trying to use Facetime on I-Pad 2? My new Apple password allows me to access my itunes account and download new apps, but I cannot update existing apps or use Facetime. Also, the new p

  • Submitting a PDF form --- save and send completed PDF document?

    A small government site has a number of 'submittable' PDF form documents that they'd like me to include on the website. I am not very familiar with PDF forms in this way, and hope someone here can help sort out a few things... Can a PDF form be submi