How to set crystal report image object's file path dynamically from file system in vb 2010

I using visual studio 2010 and sap crystal report is installed on it.
I have a report with picture box on it and i need to load image to this picture box from vb e.i.
Dim imgPhoto As CrystalDecisions.CrystalReports.Engine.PictureObject = crShortReport.ReportDefinition.Sections(3).ReportObjects("imgPhoto")
imgphoto.image= loadpicture("c:\abc.jpg")
So, please help...
Thanks

Crystal reports is a thrid party program
and is
not supported by
Microsoft, you will have a beter chance getting help here
http://scn.sap.com/community/crystal-reports.

Similar Messages

  • How to change Crystal Reports XI database name at run time from ASP code using ADO

    Dear All,
    I need advises regarding to my problem below
    I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
    The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
    Thanks and wait for your reply soon.
    Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
    <%
    Dim oADOConnection, oRptTable, oADORecordset, sql
    Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
    struser = "sa"
    strpwd = ""     
    strdriver = "{SQL SERVER}" 
    dblocation = "SQL200501"     
    dbname = "LIVE01"    ' Changed from TEST01 to LIVE01
    strConnect = "User Id=" & strUser & ";"
    strConnect = strConnect & "PWD=" & strPwd & ";"
    strConnect = strConnect & "DRIVER=" & StrDriver & ";"
    strConnect = strConnect & "SERVER=" & DBLocation & ";"
    strConnect = strConnect & "DATABASE=" & dbName
    sql="Select * from Employee"
    Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
    Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
    session("oRpt").MorePrintEngineErrorMessages = False
    session("oRpt").EnableParameterPrompting = False
    session("oRpt").DiscardSavedData
    Set oADOConnection = Server.CreateObject("ADODB.Connection")
    oADOConnection.Open (strConnect)
    Set oADORecordset = Server.CreateObject("ADODB.Recordset")
    Set oRptTable = session("oRpt").Database.Tables.Item(1)
    oRptTable.SetDataSource oADORecordset, 3
    session("oRpt").SQLQueryString = CStr(sql)
    session("oRpt").ReadRecords
    %>

    Did you ever find a solution to this problem?  I have the same problem when moving reports from development to Test to Production environments.  If the DBName is not the same the report ignores the name provided at runtime.

  • How to set Crystal Report  command timeout in runtime ?

    Hi, All !
    I have a report that is generating timeout error during execution command (Crystal Report command with SQL query). How can I set timeout  for the  command from application code ? I am using CR 12 and C#  (.NET framework 2.0)
    I have investigated CommandTableClass (CrystalDecisions.ReportAppServer.DataDefModel.CommandTableClass) but I didn't find timeout property or simething like that.
    Please help.
    Thank you in advance.
    Edited by: Bonowow on Feb 24, 2010 11:38 AM
    Edited by: Bonowow on Feb 24, 2010 11:42 AM

    I do not believe there is such an API. How long does it take before you get the timeout?
    Ludek

  • How to do crystal reports in bi-7 i need  clear steps

    how to do crystal reports in bi-7 i need  clear steps

    Hi,
    Please read the following documents.
    I am sure that this is going to help you in creating crystal reports.
    Regards,
    Subha
    Pls grant me points if it is found useful
    Use
    The Reporting Agent allows you to precalculate BEx queries (as “useful queries”) for Crystal reports in the background. This is a device used to improve system performance when executing Crystal reports.
    Prerequisites
    ·        In the BEx Query Designer, you have defined a “useful query” for Crystal Reports and determined variables for the required characteristics.
    ·        You may want to apply a filter when precalculating this “useful query” using a control query (see “Parameter Filtering” in the section below). In this case, you need to have created an additional suitable query in the BEx Query Designer.
    The associate variable must have the type “Changeable with Query Navigation”. Other variables can have any type.
    Procedure
           1.      Choose the REPORTING_AGENT transaction code.
           2.      Select Precalculating Crystal Reports Queries and choose Execute.
           3.      Navigate to the required query in the left-hand Reporting Agent Settings tree.
           4.      You have the following options for creating a new setting:
    -         Choose New Setting from the context menu.
    -         Choose  Create New Setting.
    The New Reporting Agent Setting dialog box appears.
           5.      Enter a technical name and a description.
    The following information is displayed on the General tab page:
    -         The functional area of the setting is Precalculation of Crystal Reports Queries.
    -         Information about the query for which you are creating a setting is shown under the Query group header (description, technical name, InfoProvider).
    -         After the setting has been saved for the first time, the system displays details of the last person who changed the setting and the time this change was made, under the Last Changed On/By group header.
    -         Under the Setting is Used in Packages group header, the system displays information about the packages in which the setting is used, and how they are scheduled. This information can only be displayed if you have defined the setting and assigned one or more scheduling packages to it.
           6.      Choose the Parameters tab page.
           7.      Determine whether precalculation of the Crystal Reports queries are to be parameterized using a filter and using variants.
    For more information and recommendations for choosing parameters in a straightforward example, see Parameterizing Crystal Reports Queries Setting.
    Filtering Parameters
    No Filters
    When you do not want to use a control query to precalculate variables, choose No Filter.
    You can combine this option with parameterization using Variables (see below).
    Explicitly Using Query Result
    If you want to use a control query when filtering, choose Explicitly Using Query Result. You can now make entries in the Control Query and Variants fields.
    Specify the technical name of the control query. Input help is available. After you save your entries, the system updates the information according to your selections.
    You only need to specify a variant when the control query contains input-ready mandatory variables. This does not happen very often, however.
    You can combine this option with parameterization using Variables (see below).
    Parameter Variants
    After making your setting for filtering a parameter, you can process variant for the individual characteristic values of the variables set in the „useful query“.
    Note: The variable screen only offers such variables when they have not already been filled by the control query. (This can also include variables of type “Changeable with Query Navigation”, as long as they aren’t filled by the query).
    You can choose from the following functions:
    Create a Variant
    A dialog box appears in which you can choose values for the SAP variables used in the “useful query”, in the Query Selection area. Input help is available for those InfoObjects for which SAP variables have been created.
    Enter the required data.
    Choose  .
    Change Variants
    Delete Variants
    If you have already created one or more variants, the system lists these in the lower part of the screen. Choose the variants you want to change or delete and choose the appropriate function.

  • How to use Crystal Reports XI release 2 Preview with Lotus Notes  Scripts ?

    <br />Hi all,<br /><br /> How to use Crystal Reports XI release 2 Preview with Lotus Notes 7 Scripts ?<br /><br /> <br /><br />Thank&#39;s  <br />

    Hi,
    we are using Lotus Notes and Crystal Reports for preview and printing reports from our Lotus Notes Applications. We use the RDC object model. For previewing the reports we export them in an pdf-file and then start the PDF Reader to show the Preview. This works fine.
    But with Crystal Reports > 11 the RDC Object Model is no longer supportet, so we look for another way to preview and print our reports.
    I try to preview a report build with crystal report XI release 2 in my thick client (Lotus Notes) using java reporting component JRC, this report uses an native xml file as datasource. If the datasource is saved with the report everything works fine, but otherwise I have the following error:
    JRCAgent1 detected an exception: javax.xml.namespace.QName: method getPrefix()Ljava/lang/String; not found
    I also tried the .jars from Crystal4Eclipse. Doesn't work. When I use Eclipse to view the report everything works fine. The class QName exitsts in the jaxrpc.jar and in the xbean.jar, but only in the xbean.jar a Methode getPrefix exists.
    This is what we tried:
    Works fine with RDC. Doesn't work with JRC until now.
    Did this help you ?
    Perhaps you con help me with the JRC, because I'm a java newbee so any ideas could be helpful.
    Oliver
    <p><a href="http://www.cominform.de">www.cominform.de</a></p>

  • How to use Crystal Report in JDeveloper

    Hi all,
    I'm a JDeveloper fresher. To day, i want to use Crystal Report 2008 in JDeveloper.
    Please support to me: how to setup, config Crystal Report to use with JDeveloper.
    share to me your demo if you have.
    Thanks!

    No, I don't have example (I usually work with Crystal Reports inside MS Visual Studio and C#)
    But some very basic example would be:
    1. Create rpt file in Crystal Report Designer
    2. Download CR Java Runtime files from here: SAP Crystal Reports, version for Eclipse - Down... | SCN
    3. Add necessary jar files from previous step to your jdev project
    4. Create new java servlet and map to some url (for example: /reports)
    5. Add button/link to invoke this servlet, for example <a href="reports" target="_blank">click here</a>
    6. Inside your servlet add code similar to this:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        ReportClientDocument reportClientDoc = new ReportClientDocument();
        try {
            reportClientDoc.open("Path to your report file", 0);
    // for example, to output pdf file
    response.setContentType("application/pdf");
            reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF, response.getOutputStream());
        } catch (Exception e) {
            e.printStackTrace();
    If you want to use Crystal Reports JSF Viewer then you need to copy "crystalreportviewers" folder from downloaded CR Java Runtime to public_html location inside your app
    and adjust code in servlet:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        ReportClientDocument reportClientDoc = new ReportClientDocument();
        try {
            reportClientDoc.open("Path to your report file", 0);
            Object reportSource = reportClientDoc.getReportSource();
            CrystalReportViewer viewer = new CrystalReportViewer();
            viewer.setOwnPage(true);
            viewer.setReportSource(reportSource);
            viewer.setPrintMode(CrPrintMode.PDF);
            viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), response.getWriter());
        } catch (Exception e) {
            e.printStackTrace();
    Of course, you can embed this viewer in existing page(instead of opening in new page/tab)
    Dario

  • How to Burst Crystal reports to user Inboxes in BI 4.0

    We have been bursting crystal reports using dynamic recipients (using crystal report as recipient file) to external email ids.
    How do we burst the outputs to their BO Inboxes? We found documentation around Webi report bursting to enterprise recipients, but it involves creating profiles and using universe objects.
    We do not deal with Webi or Universes currently.
    Appreciate your help!
    Thanks,
    Neeraj

    Thanks Chinmaya,
    Since we only use Crystal reports, can the profile targets be skipped? Profile Targets only has the Universe selection option.
    Also, are there any pointers on how to use Crystal Reports expression under Profile Values?
    Appreciate your help.
    Neeraj

  • Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Experts,
    I am using Crystal report for Eclipse and also using Struts2 and tiles framework combination.
    The problem is when viewing the report all I've got is red X on all images and the graph image also not showing. This is when I use tiles and my jsp is inside the web-inf folder.
    This is my struts link: href="s:url value='/report/reportOpen.action?report=1'
    I've checked that the path to the viewer generated HTML is not correct. see code below.
    src="../../../crystalreportviewers/js/crviewerinclude.js"
    But when I test to access a simple jsp viewer that resides on the web root folder, this works fine but of course this is not what I want to have. I need to have my banner and menus on top of the report page (using tiles)
    This is my jsp link: href="s:url value='/ReportViewer.jsp?report=1'
    Viewer generated HTML below.
    src="crystalreportviewers/js/crviewerinclude.js"
    This might be a common problem and that you can share to me your solution.
    Note: I removed the script tags because I can't submit this entry.
    Thank you  in advance,
    Regards,
    Rulix Batistil
    Crystal Report Images Not Showing - JSP inside /WEB-INF folder

    Hi Saravana,
    After a few experimentation from your idea i was able to figure out the problem and now it is working.
    I don't have to copy the folder to where my jsp resides but still maintains it in the root location:  web/crystalreportviewers
    The changes should always be in web.xml.
    1st: change the crystal_image_uri value to ../crystalreportviewers
    2nd: change crystal_image_use_relative value to "web"
    Change to "web" instead of webapp because that is what I named my web root folder.
    <context-param>
              <param-name>crystal_image_uri</param-name>
              <param-value>../crystalreportviewers</param-value>
         </context-param>
         <context-param>
              <param-name>crystal_image_use_relative</param-name>
              <param-value>web</param-value>
         </context-param>
    Thank you. You showed me the way on how to solve the 3 day problem.
    BTW, my next problem is when clicking on any buttons prev/next/print/export, I got this error HTTP Status 404.
    Well, at least for now I can view my initial report.  I just need to figure out the next issue and with the help of the great people here in the forum.
    Thanks a lot.
    Regards,
    Rulix
    Edited by: Rulix Batistil on Nov 26, 2008 7:27 AM

  • How to set the report path in a model plugin

    I am trying to figure out how to set the report path in a process model plug-in. I can seem to figure out how to get access to it. It seems like this would be a reasonable thing to do since the plug-ins are for results processing. Does anyone know how to do this? We typically use the Sequential process model but I am trying to keep my plug-in as independent of that as possible. 
    Thanks.
    Solved!
    Go to Solution.

    If I understand, you want your plug-in, when enabled, to alter the settings of any other instances of the NI report plug-in such that their reports share the same directory as your plug-in is configured to use.
    If so, your plug-in can access and modify the settings of all other plug-in instances. All instances are passed to all plug-in entries point in the plugins array sub-property of the ModelConfiguration parameter. You can iterate through this array. Any element of the array with a Base.SequenceFilename equal to "NI_ReportGenerator.seq" is an instance of the NI report plug-in. Its report options are stored in the element under PluginSpecific.Options.
    You can change the report options to what ever you want. Note that the ReportOptions model callback is called from the Initialize model-plugin entry point, so you might want to ensure that your changes are applied after that, so they aren't overwritten. To do that, you could make your changes in the the Initialize entry point of your plug-in, and ensure that your plugin runs last. To make it run last, you could set the FileGlobals.ModelPluginComponentDescription.Default.Base.RunOrder in your plug-in file to a value greater than 0, such as 1.0 (see TestStand Help>>Fundamentals>>Process Model Architecture>>Process Model Plug-in Architecture>>Structure of Plug-in Sequence Files>>Model Plug-in Entry Points>>Order of Entry Point Execution at Run Time).

  • How to design crystal report with web service data source?

    I want to design and run a Crystal Report 2008 against my ADO.NET DataSet from web service method.
    I choose New Report, for Data I choose XML, then "Use Web Data Source" hit next, then choose "HTTP WSDL URL" I enter http://localhost/RDWS/Service.asmx?wsdl, hit Next, I leave HTTP username and HTTP password blank. Then I see the Services, Ports and Methods screen. Services: Service, Ports: ServiceSoap, Methods: CustomerOrdersDataSet
    When I click Finish, I get Logon Failed, Details, Schema file is invalid. error:Element Schema@htttp://www.w3.or/2001XMLSchemal not found.
    How can I get this to work?

    The native XML driver is incompatible with ADO.NET DataSet XML.  The specific issue is that the driver cannot handle the recursive definition on "Schema" that the .NET DataSet XML uses.
    The workaround is to create a .NET class that Web References, invoke the Web Service method for the DataSet, then returns it. 
    Use the ADO.NET (XML) driver in Crystal Report to consume the .NET data source.
    Note - when you deploy your report, ensure you deploy the DLL for the .NET class you've created.
    Sincerely,
    Ted Ueda

  • How to design crystal report multi column

    how to design crystal report multi column
    for example
    id              1001             id                 1002     
            id            1003
    name        dinesh          name            dk                 name       
    dkn
    address   kota             address       jaipur             address     delhi
    pin          3260356        pin              546332            pin       
    675942
    id              1004             id                 1005       
               id            1006
    name        dinesh1       name            dk1                     name       
    dkn
    address   kota1           address       jaipur1                 address     delhi
    pin          32606           pin                546345                pin       
    675942
    and so on....................

    DN
    I am afraid you have come to the wrong place.  MS does not support Crystal reports except for
    "Microsoft supports setup and installation for the Crystal Reports products shipped with the Professional and Enterprise Editions of Microsoft Visual Basic for Windows versions 3.0, 4.0, 5.0 and 6.0."
    For other support you need to contact
    For other Crystal Reports support, please do not contact Microsoft. Please contact Crystal Decisions (formerly Seagate Software), which now owns and supports Crystal Report Writer.
    http://support.microsoft.com/kb/100368
    Wanikiya and Dyami--Team Zigzag

  • How do i convert an image object to a byte array ?

    Hi
    how do i convert an image object into a byte array
    early reply apperciated

    Oh sorry my method and the other method need to have the pixels from the Image passed to them which you get my using pixelgrabber:
    //create width and height variables from image
              int w = img.getWidth(this);
              int h = img.getHeight(this);
              //retrive picture from image
              int[] pix = new int[w * h];
              PixelGrabber pg = new PixelGrabber(img, 0, 0, w, h, pix, 0, w);
              try{ pg.grabPixels();
              } catch (InterruptedException ioe) {
                   System.err.println("Interrupted");
              if ((pg.getStatus() & ImageObserver.ABORT) != 0) {
              System.err.println("image fetch aborted or errored");
              }

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • How to use crystal report in php

    hello
    i need help for how to use crystal report for view the database report spacilly crosstab report i need it very much to complete my project ill be very thank full for help
    from farooq

    Hello sir
    i am sudeep and i need to deploy crstal reports in php
    i want to integrate it in sugar crm (open source project(
    can u plz tell me how to do it
    i have written this code
    <?php
    //echo phpinfo();exit;
    $ObjectFactory= New COM("CrystalReports11.ObjectFactory.1");
    $crapp = $ObjectFactory->CreateObject("CrystalDesignRunTime.Application");
    //$crapp = new COM("CrystalRuntime.Application.10");
    $reportToRun="C:\Report4.rpt";
    $creport = $crapp->OpenReport($reportToRun, 1);
    //reportToRun=full path to *.rpt file
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['User ID'] = $user;
    $creport->Database->Tables->
    Item(1)->ConnectionProperties['Password'] = $pass;
    //fomatType = integer 22=xls, 31=pdf etc
    $creport->ExportOptions->FormatType = $formatType;
    //type 1 is to output to a file I think 2 is email
    $creport->ExportOptions->DestinationType = 1;
    //location = full path to report output file
    $creport->ExportOptions->DiskFileName = $location;
    $creport->DiscardSavedData();
    $creport->Export(False);
    ?>
    thanks in advance

  • How to Deploy crystal reports in BOE

    Hi,
        I have two questions.
        1.How to deploy crystal reports in BOE server.
        2.How many ways is there to deploy crystal reports in BOE server and name of the method is needed.
       Anyone knows about these details could you please reply me
    Regards
    Babu N

    I am not sure what you are asking.
    Are you trying to publish reports into Enterprise so they can be run from say infoview, scheduled etc?  If so you can either use the publishing wizard or do a save as from the Crystal Reports designer and save them to Enterprise directly.

Maybe you are looking for