Show image in crystal report 2008

Hi All,
I have a UDF - image type in Sales order Line item which stores image.
Currently I want to display sales order line item data in CR2008 using a query.
All data is coming but image field is showing image name in place of showing image.
How can I show image.
Kindly suggest.
Deep Kulshrestha

Hi Deep,
An image type UDF only stores the image name in the database. When you add an image, the SBO client takes a copy of the image file and puts it in the Pictures folder (as defined in General Settings). Therefore, to use dynamic images in Crystal you will need to do the following:
1) Create a formula in Crystal that combines the image name from the UDF field and the path to the Pictures folder to create the full path to the image (note: your Pictures folder must use a UNC or mapped drive path rather than a local path). It's easiest just to hardcode the path to the Pictures folder in the report but you'll have to bear in mind that this setting is company database specific. If you want to be able to run the report for multiple SBO databases then you may need to use a formula to change the path (you could add the OADM table to the report but there is no suitable join between this table and other tables in the database. The report would work because there is only ever 1 record in OADM but it's not good report design).
2) Once you have your formula you can add a add a picture to the body of the report (at this point you should select a default image)
3) Right-click the picture on the layout and choose Format Graphic.
4) Select the Picture tab and click on the formula button to the right of the Graphic Location property
5) In the formula window set the return value to the formula you created in step 1.
6) At this point your image will dynamically change based on the UDF value. You may want to set a formula in the Suppress property of the image so that the default image is hidden if the UDF field is blank for a particular record.
Kind Regards,
Owen

Similar Messages

  • Converting a binary string into a JPEG image in Crystal Reports 2008

    Hi Gang
    Iu2019m having problems converting a binary string into an image in Crystal Reports 2008
    I have JPEG images stored in ECC.  ECC stores the data in binary format.
    Iu2019m using the ECC function module SKWF_PHIO_CONTENT_ACCESS_GET to retrieve the data.  This function module has an export table, FILE_CONTENT_BINARY, which returns several lines of data.  Each line contains a maximum of 1,024 characters.
    When I drop the T_ FILE_CONTENT_BINARY.LINE field into my Crystal Report detail section, I wind up with a report that displays all the lines in FILE_CONTENT_BINARY table.  (in my case, 19 lines are displayed.)
    I created a formula to collect all the data into a single string.
    whileprintingrecords;
    stringvar data:= data & {SKWF_PHIO_CONTENT_ACCESS_GET.T_FILE_CONTENT_BINARY.LINE}
    I added the formula to the detail section and itu2019s doing a great job collecting the data.
    I then inserted a picture object in the report footer, opened the format editor, navigated to the u201Cpictureu201D tab, and inserted a formula for the u201Cgraphics locationu201D.
    whileprintingrecords;
    stringvar data:=data;
    data
    My clever idea turned out to be a disappointment . . . . my picture object is blank.
    Does anyone have a solution for converting a binary string into a JPEG image?

    Save the JPEG in a format CR supports. Refer to the help file for the file types.

  • Error while dynamically setting logo image in Crystal Report 2008

    Hi,
    We have embedded Crystal Report 2008 JRC in our web application which is an Enterprise Archive (EAR) deployed on WebSphere Application Server.
    The RPT files bundulled in the archive displays a logo which is dynamicalli picked up by the RPT files from a configured location. Due to this the Report generation crashes when travesed to the sub reports/ groups within RPT. We have observed that this problem never occures if the logo is hard coded within the RPT files.
    The report crashing causes another big problem, it crashes the Applciation Server too. This is major concern to us and we need a resolution to this problem.
    Thanks in advance
    Alok Potdar

    FULL Stack Trace is as follows. We have not pasted in our earlier post...............
    3XMTHREADINFO      "WebContainer : 4" (TID:0x16AAE100, sys_thread_t:0x14B1F114, state:R, native ID:0x000015F4) prio=5
    4XESTACKTRACE          at sun/awt/color/CMM.cmmLoadProfile(Native Method)
    4XESTACKTRACE          at java/awt/color/ICC_Profile.getInstance(ICC_Profile.java:784)
    4XESTACKTRACE          at com/sun/imageio/plugins/jpeg/JPEGImageReader.setImageData(JPEGImageReader.java:630)
    4XESTACKTRACE          at com/sun/imageio/plugins/jpeg/JPEGImageReader.readImageHeader(Native Method)
    4XESTACKTRACE          at com/sun/imageio/plugins/jpeg/JPEGImageReader.readNativeHeader(JPEGImageReader.java:588)
    4XESTACKTRACE          at com/sun/imageio/plugins/jpeg/JPEGImageReader.checkTablesOnly(JPEGImageReader.java:343)
    4XESTACKTRACE          at com/sun/imageio/plugins/jpeg/JPEGImageReader.gotoImage(JPEGImageReader.java:465)
    4XESTACKTRACE          at com/sun/imageio/plugins/jpeg/JPEGImageReader.getImageMetadata(JPEGImageReader.java:885)
    4XESTACKTRACE          at com/crystaldecisions/reports/common/image/ImageUtils.a(SourceFile:896)
    4XESTACKTRACE          at com/crystaldecisions/reports/common/image/ImageUtils.if(SourceFile:873)
    4XESTACKTRACE          at com/crystaldecisions/reports/common/JavaImage.do(SourceFile:183)
    4XESTACKTRACE          at com/crystaldecisions/reports/common/CrystalImage.createImage(SourceFile:50)
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/FormattedOleObject.new(SourceFile:101)
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/FormattedOleObject.<init>(SourceFile:71)
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/FormattedReportObject.a(SourceFile:148(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/w.for(SourceFile:105(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/aa.a(SourceFile:64(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ObjectFormatter.a(SourceFile:428(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ObjectFormatter.a(SourceFile:250(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/u.a(SourceFile:887(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/u.e(SourceFile:784(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/u.for(SourceFile:242(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/aa.a(SourceFile:64(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ObjectFormatter.a(SourceFile:243(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ObjectFormatter.a(SourceFile:210(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/v.a(SourceFile:185(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/v.a(SourceFile:230(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ai.for(SourceFile:359(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ai.for(SourceFile:133(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ColumnFormatter.for(SourceFile:120(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/aa.a(SourceFile:64(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ai.a(SourceFile:503(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ai.a(SourceFile:452(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ai.a(SourceFile:369(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ah.a(SourceFile:70(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ReportColumnFormatter.a(SourceFile:86(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/paginator/SinglePageFormatter.a(SourceFile:332(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ai.for(SourceFile:359(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ai.for(SourceFile:133(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/ColumnFormatter.for(SourceFile:120(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/paginator/SinglePageFormatter.for(SourceFile:177)
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/objectformatter/aa.a(SourceFile:64(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/paginator/PageFormatter.do(SourceFile:727)
    4XESTACKTRACE          at com/crystaldecisions/reports/formatter/formatter/paginator/PageFormatter.formatPage(SourceFile:226)
    4XESTACKTRACE          at com/businessobjects/reports/sdk/requesthandler/ReportViewingRequestHandler.byte(SourceFile:219)
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter.do(SourceFile:1909(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter.if(SourceFile:661(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter.a(SourceFile:167(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter$2.a(SourceFile:529(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter$2.call(SourceFile(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/reports/common/ThreadGuard.syncExecute(SourceFile:95(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter.for(SourceFile:525(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter.int(SourceFile:424(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/reports/sdk/JRCCommunicationAdapter.request(SourceFile:352(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/sdk/erom/jrc/a.a(SourceFile:54(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/sdk/erom/jrc/a.execute(SourceFile:67(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/proxy/remoteagent/RemoteAgent$a.execute(SourceFile:716(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/proxy/remoteagent/CommunicationChannel.a(SourceFile:117(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/proxy/remoteagent/RemoteAgent.a(SourceFile:537(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/sdk/occa/report/application/ds.a(SourceFile:186(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/sdk/occa/report/application/ReportSource.a(SourceFile(Compiled Code))
    4XESTACKTRACE          at com/crystaldecisions/sdk/occa/report/application/ReportSource.getPage(SourceFile:767)
    4XESTACKTRACE          at com/crystaldecisions/sdk/occa/report/application/AdvancedReportSource.getPage(SourceFile:324)
    4XESTACKTRACE          at com/crystaldecisions/reports/reportengineinterface/JPEReportSource.getPage(SourceFile:149)
    4XESTACKTRACE          at com/businessobjects/report/web/event/s.a(SourceFile:158)
    4XESTACKTRACE          at com/businessobjects/report/web/event/s.a(SourceFile:127)
    4XESTACKTRACE          at com/businessobjects/report/web/event/bt.a(SourceFile:47)
    4XESTACKTRACE          at com/businessobjects/report/web/event/bw.broadcast(SourceFile:93(Compiled Code))
    4XESTACKTRACE          at com/businessobjects/report/web/event/am.a(SourceFile:53)
    4XESTACKTRACE          at com/businessobjects/report/web/a/t.if(SourceFile:2104)
    4XESTACKTRACE          at com/businessobjects/report/web/e.a(SourceFile:300)
    4XESTACKTRACE          at com/businessobjects/report/web/e.a(SourceFile:202)
    4XESTACKTRACE          at com/businessobjects/report/web/e.a(SourceFile:135)
    4XESTACKTRACE          at com/crystaldecisions/report/web/ServerControl.a(SourceFile:607)
    4XESTACKTRACE          at com/crystaldecisions/report/web/ServerControl.processHttpRequest(SourceFile:342)
    4XESTACKTRACE          at com/ibm/_jsp/_CrystalReportViewer._jspService(_CrystalReportViewer.java:107)
    4XESTACKTRACE          at com/ibm/ws/jsp/runtime/HttpJspBase.service(HttpJspBase.java:87)
    4XESTACKTRACE          at javax/servlet/http/HttpServlet.service(HttpServlet.java:856(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/webcontainer/servlet/ServletWrapper.service(ServletWrapper.java:1143(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/webcontainer/servlet/ServletWrapper.handleRequest(ServletWrapper.java:591(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/wswebcontainer/servlet/ServletWrapper.handleRequest(ServletWrapper.java:481(Compiled Code))
    4XESTACKTRACE          at com/ibm/wsspi/webcontainer/servlet/GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
    4XESTACKTRACE          at com/ibm/ws/jsp/webcontainerext/AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:226)
    4XESTACKTRACE          at com/ibm/ws/webcontainer/servlet/CacheServletWrapper.handleRequest(CacheServletWrapper.java:90(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/webcontainer/WebContainer.handleRequest(WebContainer.java:748(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/wswebcontainer/WebContainer.handleRequest(WebContainer.java:1466(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/webcontainer/channel/WCChannelLink.ready(WCChannelLink.java:119(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/http/channel/inbound/impl/HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/http/channel/inbound/impl/HttpInboundLink.handleNewInformation(HttpInboundLink.java:387(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/http/channel/inbound/impl/HttpICLReadCallback.complete(HttpICLReadCallback.java:102(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/tcp/channel/impl/AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165(Compiled Code))
    4XESTACKTRACE          at com/ibm/io/async/AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217(Compiled Code))
    4XESTACKTRACE          at com/ibm/io/async/AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:143(Compiled Code))
    4XESTACKTRACE          at com/ibm/io/async/AsyncFuture.completed(AsyncFuture.java:136(Compiled Code))
    4XESTACKTRACE          at com/ibm/io/async/ResultHandler.complete(ResultHandler.java:196(Compiled Code))
    4XESTACKTRACE          at com/ibm/io/async/ResultHandler.runEventProcessingLoop(ResultHandler.java:751(Compiled Code))
    4XESTACKTRACE          at com/ibm/io/async/ResultHandler$2.run(ResultHandler.java:881(Compiled Code))
    4XESTACKTRACE          at com/ibm/ws/util/ThreadPool$Worker.run(ThreadPool.java:1473(Compiled Code))
    NULL          
    1XMTHDINFO     All Thread Details
    NULL           -
    NULL

  • Geographical Map does not show up in Crystal Reports 2008 Viewer

    Hi,
    I'm facing a problem by creating maps with CR2008 SP2. If I export the report directly to an pdf or html file the map is shown properly. If I'm using the CR 2008 Viewer to open the .rtp file there's an error message like 'not supported object: geographical map'.
    Anyone else facing such problems?
    Thanks for help,
    Carsten

    Hi,
    Welcome to MSDN.
    I am afraid that this issue is related to third-party, and it is not supported in these forums.
    You could consider posting this issue in website of the publisher of that tool: http://scn.sap.com/community/crystal-reports.
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Background image with Crystal Report 2008

    Hi,
       I have to develop an invoice report with a background image on the full page.
    I have already develop some trying but i have not the right result:
    1) Background image in page header
    2) Create 2 different sections: one for the image and one with labels and data
    3) Background image in report header
    4) Background image in report footer
    In all of my tests  in Report > Section Expert, I check Underlay Following Sections on the Common tab
    but never the image was printed in background respect of the different sctions.
    I always got the image and then the rest of the report
    Can you help me please?
    Thank you for your attention
    Bye
    Edited by: EDPTEAM on Aug 30, 2011 5:52 PM

    Hello Brian.
    Thanks for you answer.
    I do just like you say but i have the same problem.
    My report is like an invoice: i have an header, a body with a group and 2 sections and a footer.
    All the pages of my report must be printed on a background image (A4 format).
    This is the problem.
    If i create a report with image in a single section all is ok. But in my report if i use a small image, the image is printed and hide columns separator (simple vertical lines) and show data but the following sections lose their right position.
    If I use the original image (A4 format) CR return the following error:
    header or footer too large for the page
    o similar word (I translate from italian to english because I am working with italian version).
    Do you have other solutions?
    Thank you wery much.
    Best regards

  • Crystal Reports 2008 and Dynamic Images

    Hello,
    I have a windows .net application that uses a listing of items in a grid.  The user selects an item then clicks the print button and that brings up a report viewer form and passes the photograph location in a parameter to the report document being loaded.
    The first time that this report is printed, the image for the selected item is printed correctly.  The next time the report is printed, the default image used to create the graphic object on the report is printed.
    In addition if a user double clicks on the listing of items, a detail form is displayed.  When the same report is printed from this screen, the default image used to create the graphic object on the report is printed.
    This is happening in multiple .net windows applications.
    Can anyone please give me an idea as to what may be causing this.
    I am using Crystal Reports 2008 with Service Pack 2 installed.
    Thanks

    The following is the code in the Report Viewer form that contains the Crystal Report Viewer Control.
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.Windows.Forms
    Imports System.IO
    Public Class RptViewer
        Inherits System.Windows.Forms.Form
        Dim MyReport As CrystalDecisions.CrystalReports.Engine.ReportDocument
    #Region " Windows Form Designer generated code "
        Public Sub New()
            MyBase.New()
            'This call is required by the Windows Form Designer.
            InitializeComponent()
            'Add any initialization after the InitializeComponent() call
        End Sub
        'Form overrides dispose to clean up the component list.
        Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
            If disposing Then
                If Not (components Is Nothing) Then
                    components.Dispose()
                End If
            End If
            MyBase.Dispose(disposing)
        End Sub
        Friend WithEvents CrystalReportViewer1 As CrystalDecisions.Windows.Forms.CrystalReportViewer
        'Required by the Windows Form Designer
        Private components As System.ComponentModel.IContainer
        'NOTE: The following procedure is required by the Windows Form Designer
        'It can be modified using the Windows Form Designer. 
        'Do not modify it using the code editor.
        <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
            Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(RptViewer))
            Me.CrystalReportViewer1 = New CrystalDecisions.Windows.Forms.CrystalReportViewer
            Me.SuspendLayout()
            'CrystalReportViewer1
            Me.CrystalReportViewer1.ActiveViewIndex = -1
            Me.CrystalReportViewer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
            Me.CrystalReportViewer1.Dock = System.Windows.Forms.DockStyle.Fill
            Me.CrystalReportViewer1.Location = New System.Drawing.Point(0, 0)
            Me.CrystalReportViewer1.Name = "CrystalReportViewer1"
            Me.CrystalReportViewer1.Size = New System.Drawing.Size(656, 481)
            Me.CrystalReportViewer1.TabIndex = 0
            Me.CrystalReportViewer1.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None
            'RptViewer
            Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
            Me.ClientSize = New System.Drawing.Size(656, 481)
            Me.Controls.Add(Me.CrystalReportViewer1)
            Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
            Me.Name = "RptViewer"
            Me.Text = "Report Viewer"
            Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
            Me.ResumeLayout(False)
        End Sub
    #End Region
        Private Sub RptViewer_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try
                Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo()
                myConnectionInfo.ServerName = MyServer (Name of SQL Server)
                myConnectionInfo.DatabaseName = MySqlDb (Name of Database)
                myConnectionInfo.UserID = MyUid (Userid for SQL Database)
                myConnectionInfo.Password = MyPwd (Password for SQL Database)
                MyReport = New CrystalDecisions.CrystalReports.Engine.ReportDocument
                MyReport.Load(Path.GetFullPath(".") & "\" & MyReportFile)
                MyReport.SummaryInfo.ReportTitle = MyReportTitle  (Title passed to the report)
                MyReport.SummaryInfo.ReportComments = MyReportComments   (Comments passed to the report)
                SetDBLogonForReport(myConnectionInfo, MyReport)
              MyReport.SetParameterValue("MySequence", MyReportKey)  (Parameter passed to select single record in table)
               MyReport.SetParameterValue("MyPhotoLocation", sPhotoLocation)  (Physical Location of Photograph \\Server\Photos\)
                CrystalReportViewer1.ReportSource = MyReport
                'handle any exceptions
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Report could not be created", MessageBoxButtons.OK)
            End Try
        End Sub
        Private Sub SetDBLogonForReport(ByVal myConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
            Dim myTables As Tables = myReportDocument.Database.Tables
            Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
            For Each myTable In myTables
                Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                myTableLogonInfo.ConnectionInfo = myConnectionInfo
                myTable.ApplyLogOnInfo(myTableLogonInfo)
            Next
        End Sub
    End Class
    In the Crystal Report the Graphic Location formula field takes the {?MyPhotoLocation} + {Table.Photo} field to display the picture.  I have placed the parameter and the photo field on the report and the correct data is in the fields.
    This is the exact same form being opened and that displays correctly from the listing screen.
    Joel
    Edited by: JYaeger on Aug 8, 2009 2:56 AM

  • Hide Link Button Image used in Crystal Report 2008 while printing

    Hello Experts,
    I am using Link Button of SAP B1 in Crystal Report 2008 which works perfectly. But when i am trying to export it, i am also getting the image of Link Button.
    Is there a way to hide the image while printing?
    Thanks
    Shiv

    hi Piyush,
    there are some changes in the cr viewer between 3.1 to 4.x. can you please upgrade the reports that are not working to webelements 2.47 which was built for 4.0.
    let us know how this works.
    -jamie

  • Crystal Reports 2008 sql image field stretches in report display

    i have the full version of Crystal reports 2008 i run through a .net web form to display the reports. i have need to display logos which in resize mid stream before saving to the sq table. My problem is when i got to retrieve the images it looks like crystal is stretching them to fit. I can have horizontal or vertical images and i resize them to fit the smallest determined in the report. Another issue is the background turns black. The images appear to be "normal" outside of the report. Am i doing something wrong? Is there a setting i'm missing i need to config or something? I'm kind of lost i assumed as long as i stored the images in teh proper size they would diplay correctly. Any help is greatly appreciated.

    Are you seeing this behavior in the CR designer or in a .NET app?
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • Crystal Reports 2008 crashes when previewing image with graphic location

    Hi,
    I'm using Crystal Reports 2008 for SAP Business One.  When I try to insert an image with a UNC graphic location (browse to a UNC drive for image) and I preview, Crystal Reports crashes with the following debug info:
    Problem signature:
      Problem Event Name:     APPCRASH
      Application Name:     crw32.exe
      Application Version:     12.1.0.892
      Application Timestamp:     48de4bbc
      Fault Module Name:     cslibu-3-0.dll
      Fault Module Version:     12.4.0.966
      Fault Module Timestamp:     4daed0a1
      Exception Code:     c0000094
      Exception Offset:     0002d7fd
      OS Version:     6.1.7601.2.1.0.272.7
      Locale ID:     1033
      Additional Information 1:     0a9e
      Additional Information 2:     0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:     0a9e
      Additional Information 4:     0a9e372d3b4ad19135b953a78882e789
    Any idea why?  If I trun graphic location off, it works fine.
    The code I'm using to pull image is:
    sapserver\B1_SHR\Bitmaps\Versailles\" & {RSM_Inventory_Images;1.PicturName}
    Thanks.

    Through  Startu2014Run are you able to view the image by choosing the following path ?
    sapserver\B1_SHR\Bitmaps\Versailles\" & {RSM_Inventory_Images;1.PicturName}
    Also try to insert any image which is on your local hard drive and try.  I think this is because, CR is unable to access the images which are on UNC.
    Thanks,
    Sastry

  • Crystal Report 2008 SP2 Dynamic image file

    ASP.NET2008 C# +Crystal Report 2008 SP2 
    製作動態顯示圖片的報表
    資料庫是SQL2005 內存圖檔的路徑
    使用DataSet+Report Document的方式產生報表資料
    動態圖片是利用工是產生的
    現在發現以下問題,其他固定顯示的圖片正常
    1.未安裝SP1 &SP2
      (1)在VS下建置檔案:圖片正常顯示,且有錯誤訊息
      (2)部署後直接開啟網頁,無法顯示動態產生的圖片
      (3)錯誤訊息如下:
      網頁錯誤詳細資料
      使用者代理程式: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
        時間戳記: Mon, 1 Feb 2010 08:22:08 UTC
        訊息: 無法判定字串常數的結尾
      行: 23
        字元: 19
        程式碼: 0
        URI: http://192.168.1.89/aspnet_client/system_web/2_0_50727/crystalreportviewers12/js/dhtmllib/language/zh_TW/labels.js
      2.安裝SP1 &SP2 後
      (1)在VS下建置檔案:圖片正常顯示,且有錯誤訊息
      (2)部署後直接開啟網頁,無法顯示動態產生的圖片,且有錯誤訊息(同2(1))
        (3)錯誤訊息如下:
    網頁錯誤詳細資料
    使用者代理程式: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    時間戳記: Wed, 3 Feb 2010 00:45:39 UTC
    訊息: 無法判定字串常數的結尾
    行: 129
    字元: 19
    程式碼: 0
    URI: http://192.168.1.89/aspnet_client/system_web/2_0_50727/crystalreportviewers12/allStrings_zh_TW.js

    Hi Florian,
    I'm having the same problem, have you by any chance found a solution?
    Gajus.

  • ASP Crystal Report 2008 (12) Oracle 9 and Visual Basic!

    Hi All,
    I'm mainting an old application and I need to simulate the same client environment in my machine.
    I have a VB application (with COM+ server components) that's creates a report object with parameters. But the only thing that this application does it's call an ASP page that contains all the logic to call a .rpt file, connect to Oracle 9i and then show the crystal report inside a MS webbrowser component (activeX) in the VB form.
    I already setup the IIS, and the site there, I put all the .rpt files in the site and if you try to access without calling from VB you can run the asp pages, but the reports still doesn't appears.
    These ASP pages should connect to Oracle and then show the rpt file, but I'm facing the following error:
    The url that's the application creates is for example this: http://localhost/application1/createreport.asp?sSessionId=2&ReportName=TransactionsProcessed.rpt&parameter1&parameter2... etc etc...
    Script Error Number: -21471922153
    File could not be opened because the library "P2sora7.dll" cannot be found.
    User Error Text: An error has ocurred in CreateReport.asp while logging onto the Oracle database server. Please try again.
    I already check the database connection and it is working fine using ODBC, and the application works fine with the database.
    The file p2sora.dll is in C:\WINDOWS\SYSTEM32, I already copied from another machine, and I have installed Crystal Report 2008 (12) in my server machine with Windows 2003 server, that's the application and web server where report should be run. I know that the old application was executed with Crystal 7, but I cannot found this version to buy.
    Edited by: Don Williams on Mar 21, 2010 9:05 AM

    This is the code of the createPage.asp that it's called from VB:
    <%
    On Error Resume Next
    Dim sDLLName
    Dim sDatabaseType
    Dim sServerName
    Dim sUserId
    Dim sPassword
    Dim arrayInteger
    Dim sReportDbName
    Dim oTransStore
    Dim oReportObject
    Dim oCRSections
    Dim oCRSection
    Dim oCRSubReportObject
    Dim oCRReportObjects
    Dim oCRReportObject
    Dim oCRSubReport
    Dim oCRPageEngine
    Dim sSessionId, sReportPath, sReportName, sTablename
    ' Errorhandling Parameters
    Dim lUserErrorNumber, sUserErrorText
    ' -- Get parameters --
    sSessionId = Request.QueryString("SessionId")
    sReportName = Request.QueryString("ReportName")
    sStartDay = Request.QueryString("StartDay")
    sStartMonth = Request.QueryString("StartMonth")
    sStartYear = Request.QueryString("StartYear")
    sEndDay = Request.QueryString("EndDay")
    sEndMonth = Request.QueryString("EndMonth")
    sEndYear = Request.QueryString("EndYear")
    sAccName = Request.QueryString("AccId")
    sUserName = Request.QueryString("UserName")
    ' -- Initialisation --
    Session("ImageFolder") = ".\images"
    sDatabaseType = Request.QueryString("DbType")
    sServerName = Request.QueryString("ServerName")
    sUserId = Request.QueryString("DbUserId")
    sPassword = Request.QueryString("DbPassword")
    sReportPath = Request.QueryString("ReportsFolder")
    ' -- Select DLL for DB Type
    - Hide quoted text -
    sDLLName = "P2sora7.dll"
    Response.Write "DATABASE SELECCIONADA: " & sDatabaseType
    Select Case sDatabaseType
    Case "Oracle":
      sDLLName = "P2sora7.dll"
      sReportDbName = ""
            Case "SQLServer":
                 sDLLName = "P2ssql.dll"
      sReportDbName = Request.QueryString("ReportsDbName")
            Case "Informix":
                 sDLLName = "P2sifmx.dll"
    End Select
    ' -- Set the ErrorNumber to 400 and sErrorText.
    sUserErrorText = "An error has occurred in CreateReport.asp while loading the report details. CreateObject(CrystalRuntime.Application) . Please try again."
    lUserErrorNumber = 400

  • Unable To Print or Access Page Setup in Crystal Reports 2008

    I have Win 7 32 bit, and installed Crystal Reports 2008 last week (v12.0.0.683 from the Help window).
    Every time I open a report, and from the Preview tab clicking File -> Print, or File - > Page Setup, I immediately receive a Windows message that "Crystal Reports has stopped working".  After a few seconds, another Windows message displays "Crystal Reports has stopped working - a problem caused the program to stop working correctly.  Windows will close the program and notify you if a solution is available".  Then Crystal completely closes.
    I downloaded sample reports from the BO website, and still receive the error, so I don't think it's the report.
    When I view the Event Log, I see the following:
    Faulting application name: crw32.exe, version: 12.0.0.683, time stamp: 0x47c8be9a
    Faulting module name: ntdll.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdadb
    Exception code: 0xc0000374
    Fault offset: 0x000c283b
    Faulting process id: 0x94
    Faulting application start time: 0x01cc1fc304e98ecd
    Faulting application path: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crw32.exe
    Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
    Report Id: 3cfc99e6-8bb8-11e0-b8ef-00248122792c
    I have uninstalled and reinstalled CR 2008 multiple times and continue to receive the same error.  I tried updating to SP1 (Version 12.1.0.892 Incremental) but I receive the following error: "A BusinessObjects product at a lower patch level is detected.  The installation cannot continue.  Please update all installed products to the SP1 patch level, then restart this installation".
    Need to print my reports - any ideas?

    Sorry busy on Support cases and they take precedence over this community forum.
    Very interesting....
    In a test application I use I have this routine to get the local printers:
    private void frmMain_Load(object sender, System.EventArgs e)
         if (System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count > 0)
              foreach(String myPrinter in System.Drawing.Printing.PrinterSettings.InstalledPrinters )
                   cboCurrentPrinters.Items.Add(myPrinter);                         
              cboCurrentPrinters.SelectedIndex = 0;
         else
              rdoCurrent.Enabled = false;
              EnableDisableCurrentControls(false);
         //For printers exposed to System account as per MS Kbase
         //http://support.microsoft.com/default.aspx?scid=kb;en-us;184291
         //Look to HKEY_USERS\.Default\Software\Microsoft\Windows NT\CurrentVersion\Devices
         Microsoft.Win32.RegistryKey mySystemPrinters =
              Microsoft.Win32.Registry.Users.OpenSubKey(@".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Devices");
         foreach (String defaultPrinters in mySystemPrinters.GetValueNames())
              cboDefaultPrinters.Items.Add(defaultPrinters);
         if (cboDefaultPrinters.Items.Count > 0)
              cboDefaultPrinters.SelectedIndex = 0;
         else
              rdoDefault.Enabled = false;
    Note the MS Kabse on where the printer registry is. Now the odd part is on one of my test development PC's it won't populate the Default User Printer list, only the Local User Printers. I take this same app to another PC and it works just fine. The register keys are there but for some reason on my Windows 7 64 bit it won't show them, the other strange part is I have full access to both keys. I have not been able to figure out why this happens...
    I'm thinking this may be related to your issue.... But I don't have a solution, very strange... I've even gone into regedit32 and set full permissions on the various keys and it still doesn't work...
    I have other VM-ware images if I need to get past that part for testing so I never drilled into why, I believe it has to be some Windows/Firewall/Anti-virus configuration or something our IT department pushed into my local Profile.... What that is I don't know unfortunately.
    I'll do some looking and testing. You may want to post this on Microsoft forums as well.... Ask about printer permissions.
    Thanks
    Don

  • "Invalid export DLL or export format" with Crystal Reports 2008

    I've included this sticky because we are seeing many posts in this forum regarding the error Invalid export DLL or export format when exporting to Excel and RTF in .NET applications using the Crystal Reports 2008 .NET SDK.
    Issue
    - Exporting a Crystal Report to Excel or RTF format
    - .NET application using the Crystal Reports 2008 runtime (version 12.0)
    - error Invalid export DLL or export format
    We've been doing some testing in-house and haven't reproduced this behavior. In order to figure this issue out we will need your help. If you are getting this error please reply to this post with the following information:
    - Server Operating System
    - Version of the .NET Framework
    - How did you deploy?
    - If you deployed with CRRuntime_12_0_mlb.msi - what was the date of the file and its size?
    - What is the file version of crpe32.dll on your server? You'll find this in the C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 directory
    - How many libpng10.dll files are on your system? List all instances.
    - Any additional comments
    What We Know
    - The error invalid export DLL or export format may occur when exporting to Excel and RTF formats in .NET applications utilizing the Crystal Reports 2008 runtime (v 12.0)
    - Other export formats like Adobe PDF, Crystal Reports, CSV all export with no error
    - Some customers have resolved this by adding C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to their environment path variables. Note the system must be restarted after editing the path variable.
    - This may have something to do with the file libpng10.dll. Both crxf_xls.dll and crxf_rtf.dll are dependent on it.
    - libpng10.dll has changed versions from SP0 to SP1. In SP0 it was 1.0.30.0 and in SP1 it is 1.0.30.1
    libpng10.dll dependencies
    The dependencies have also been updated for libpng10.dll in service pack 1. This may have something to do with the export issue. If you've deployed your application with the latest merge modules or setup package for service pack 1 you'll want to make sure you have version 1.0.30.1 of libpng10.dll.
    Version 1.0.30.0
    - zlib.dll
    - msvcr71.dll
    - kernel32.dll
    Version 1.0.30.1
    - boezlib.dll
    - msvcr80.dll
    - kernel32.dll
    Thanks in advance for your co-operation. We hope to figure out what is causing this issue soon.
    Edited by: David Hilton on Jan 14, 2009 10:07 AM

    Our company has also been experiencing this issue with deployed versions of our software, and during my examination of the error I have made the following discoveries:
    For us the error has only been reproduced on Windows 2003 running Citrix
    The error does not occur on Windows XP, Windows 2003 or Vista without Citrix
    For installation of our application we use the CRRuntime_12_0.msm merge module (version 12.0.0.683, file size 46790KB)
    As mentioned in the first post this error is related to the files crxf_rtf.dll and cfxf_xls.dll being unable to locate its reference to the file libpng10.dll during load.
    I have run the application with ProcMon (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) attached on both environments that work correctly and that does not work and iIve made these observations:
    During load of dlls Windows searches for references in the following orders (see http://msdn.microsoft.com/en-us/library/ms682586.aspx):
    1. The directory from which the application loaded.
    2. The system directory.
    3. The 16-bit system directory.
    4. The Windows directory.
    5. The current directory.
    6. The directories that are listed in the PATH environment variable.
    Looking at the ProcMon log for the environment where it works correctly (Windows XP, no Citrix) it looks like this . Numbers represent the search order mentioned above:
    Load Image     C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crxf_rtf.dll     SUCCESS     Image Base: 0x3e640000, Image Size: 0x79000
    (1) QueryOpen     C:\Program Files\<our application name>\libpng10.dll     NAME NOT FOUND     
    (2) QueryOpen     C:\WINDOWS\system32\libpng10.dll     NAME NOT FOUND     
    (3) QueryOpen     C:\WINDOWS\system\libpng10.dll     NAME NOT FOUND
    (4) QueryOpen     C:\WINDOWS\libpng10.dll     NAME NOT FOUND     
    (5) QueryOpen     C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\libpng10.dll     SUCCESS      ...
    So you can see it finds the file in the "current directory"
    Now, from the environment where it does not work (Windows 2003 Server / Citrix):
    Load Image     X:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\crxf_rtf.dll     SUCCESS     Image Base: 0x3e640000, Image Size: 0x79000
    (1) QueryOpen     X:\Program Files\<our application name>\libpng10.dll     NAME NOT FOUND     
    (2) QueryOpen     X:\WINDOWS\system32\libpng10.dll     NAME NOT FOUND     
    (3) QueryOpen     X:\WINDOWS\system\libpng10.dll     NAME NOT FOUND     
    (4) QueryOpen     X:\WINDOWS\libpng10.dll     NAME NOT FOUND     
    (5) QueryOpen     X:\Documents and Settings\<my user name>\WINDOWS\libpng10.dll     NAME NOT FOUND     
    (6) QueryOpen     ... loops trough all paths in the PATH variable, finding nothing
    As you can see somehow the current directory is %USERPROFILE%\WINDOWS and not the Crystal Reports bin path in this environment at the time of loading the dll.
    I have yet to discover why this is the case, but i tought i could share what I have found =)
    The %USERPROFILE%\WINDOWS folder is not a standard Windows folder, and I think it is used by Citrix for some files (like win.ini)
    This also shows why adding the bin folder to the PATH variable is a valid workaround for some, but for us this is not really a good solution as we need this to work out of our installer. We don't always have consultants do the installations for the customers and we cannot expect them to manually edit the PATH variable, and we don't want to add to the PATH variable in the installer unless this is the only way...
    So, I hope this maybe can bring you closer to being able to reproduce it. I'm still looking into it, will post more if I find something else interesting

  • Exporting Options in Crystal Reports 2008

    I am using Crystal Reports 2008 to make my report for my users.   I am also programming a viewer in vb 2005 so the users can view the report without changing it.  In the viewer I need to be able to export to excel or pdf or any other format.  I want the user to be able to specify where and how to export the report.  However when they press on the export button it is giving a save as dialog box, which, while it gives options to save as excel or pdf, it does not give the options such as to application, or to file, which are there in the full crystal report product. 
    My form gets the report name, sets up the data source and then displays it in a
    CrystalReportViewer object. 
    CrystalViewer.ReportSource = MyReportDocument
            CrystalViewer.DisplayToolbar = True
            CrystalViewer.ShowRefreshButton = False
            CrystalViewer.DisplayStatusBar = True
            CrystalViewer.EnableDrillDown = True
            CrystalViewer.EnableRefresh = False
            CrystalViewer.EnableToolTips = True
            CrystalViewer.ShowExportButton = True
    The export button is there, it just does not give all of the options that I would have expected.  I see there are ways to programatically use the options, however the export dialog box that appears in crystal reports 2008 would be useful to the user here.  Is there a way to make that box show up.  Perhaps it should be and I am doing something wrong.  I am very new to .net and crystal 2008, we used to use crystal 8.0 with vb6 for a viewer.  In that version the export dialog box showed up correctly.  Thank you for your help.  Also, if i am posting this in the wrong forum area please let me know so i can post it where it should be.

    You are doing things the correct way, unfortunately the export dialog is very basic.  If you want this extra functionality, you will have to code it yourself.

  • Two problmes between  Crystal Reports 2008 and Bex Query

    Hi Gurus.
    I have two problems with Crystal Reports 2008 when It obtains data from a Bex Query (SAP MDX query connection).
    1)     I have defined some Parameters Fields using the follow options:
    Type: String
    List of Values: Dynamic
    Value Options Level1:
                         Show on (Viewer) Panel :Editable
                          Prompt text: <text>
                          Sort Order: Ascending by value
                          Prompt With description Only : False
                          Optional Prompt: True
                          Allow multiple values: True
                          Allow discrete values: True
                          Allow range values: False
    When I execute the report with the client of Crystal Reports 2008 (the developer tool), in the initial screen shows a list box where I can select the values from the left box and add it to the left box (as a usually filter). When the number of options (LOV) is more than  the maximum of the system, I have a input box bellow the list box, where I can insert any value (manually) and a button to insert it into the left box. When I publish the Report in the infoview, this filter is modified and the input box where I can introduce manually values is not showed and I can insert only the values showed in the list box, it causes that I can`t select a lot of values that is in the master data of SAP BW, because they arenu2019t listed in the list box.
    There is any option to ability this option in the infoview.
    2)     My Bex query, have a date filter with variable in the restricted key figures, when I execute a Crystal Reports, the infoview (and the Crystal Reports 2008 designer) ask me 2 times the same date, first only the date and second the date and the rest of parameters (introduced in the report of Crystal Reports).
    Why I need insert the date 2 times? How can I modify the Crystal Report for ask me only one time all the parameters?.
    Thanks.

    Hi Abhilash.
    Thank you for your information.
    1) Yes, the parameters are created in the Crystal Reports designer. I have created the parameters in the Crystal Report because I use the same Bex Query to create some Crystal Report, in other case, I will need create some Bex Query.
    2)The Bex query has the date filters and I have created some filters in Crystal Reports designer, the date filter from the Bex query is created automatically in the Crystal Report Designer but I don't use it, I haven't created it anytime. I use my filters only in the record selection. The date filters from the Bex query is showed as Static, and I can`t delete it, if I modify the parameter to dynamic or static with values, at first step ask me again static without values and the second step of the report execution ask me the parameter as I have defined in Crystal Reports Designer, my parameters fields are dynamic. A lot of reports have subreport, but I have created one of them without subreport (to trial) and the Crystal Reports ask me the date filters at first execution, and when I insert the date filters, in the second step, ask me the date filters again and my parameters fields again.
    Thank you again.

Maybe you are looking for

  • Trying to install Windows 7, 64 bit on Bootcamp

    I am trying to install 64 bit Windows 7. I used the Bootcamp Assistant, followed the whole process as specified, but at an early stage it said it needed a driver for the cd/dvd drive; when I tried to give it the required driver, it said 'No drivers f

  • Images do not open in Photoshop Elements 10

    I am using iPhoto 11 on my MacBook Pro. I have set the Preference for editing to use PSE 10. When I was using PSE 9, images selected in iPhoto for editing opened in PSE 9. Since I have upgraded to PSE 10, when I select an image for editing, PSE 10 wi

  • Indesign CS4 to PDF 1.3 transparency issue

    We submitted an ad to the local newspaper that we created in Indesign CS4 and Acrobat 9. The ad was exported as a press-quality Acrobat 4 PDF. It is a fairly simple layout, with type and a logo. The headline and logo have a drop shadow applied with m

  • Panasonic PV-GS500 compatible with Final Cut HD EXPRESS

    Is the Panasonic PV-GS500 compatible with the HD express software. I've heard it will work with the MAC and it has a firewire, but will it work with the HD express software? Thank you! Sheila

  • How can I communicate with other applications from my Java application?

    Hello, I need help about how can i communicate with other application(say textpad.exe/wordpad.exe/MS word.exe) from my Java program. More precisely, I need to know how i can get the current position of the cursor whether it is in any .txt/.doc files,