Crystal report subreport details

hi ...
i have created a c# windows application and i have used crystal report tool for reporting purpose , i have a work order report that preview the work order details and it's own production details , this work order report has a sub report for production details
but i have faced a problem when organize this sub report , this final form for this report that i want is like to this picture 
my two problems is :
1- i want to display sub report data horizontally report have much data , i have configured to layout of the details section to preview it across then down and it succeeded to preview but if i try to preview it in 'down then across' mode it preview them
in another page if report have much data .
2- if i set the details section of sub report to preview data in 'down then across' mode the summary will displayed on the first column but i want to display summary at the end of data .
thanks for attention

Hi,
I’m sorry for the issue that you are hitting now.
This crystal report has been removed after the Visual Studio 2010.For this issue, I recommended to consult the report provider directly, I think they can give more precise troubleshooting.
http://www.crystalreports.com/
Thanks for your understanding.
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.

Similar Messages

  • Crystal Report / Subreport - Performance Issue

    I am having problems with a Crystal Report / Subreport with performance. I am using Crystal Version 11, directly in Crystal Developer.  There are no other programs involved.  I am linking to a SQL Server database using ODBC.
    I have narrowed the problem down to this:
    The main report has 4 tables.  See diagram using the following link.   http://screencast.com/t/TA9YYlwwl7
    The subreport has 1 table, this table has > 2 Million records in it.
    The main report links to the subreport with one field:
    Main report field SAMPLE.PATIENT = subreport field Z_RESULT_HISTORY.PHIN
    When I set the subreport linking within Crystal   it automatically generates the following in the record selection for the subreport:
    {Z_RESULT_HISTORY.PHIN} = {?Pm-SAMPLE.PATIENT}
    The problem is that the report execution time is dependent on the field that I am using for the record selection in the main report.
    Case I   works lightening fast:
    There are 16 records returned on the Main Report   each one of these has about 1-5 records returned on the subreport.
    {SAMPLE.PATIENT} = "MOUSEMICKEY"  and {SAMPLE.SAMPLE_NUMBER} < 200
    Case II   brutally slow   there are 51 records in the main report that qualify   with a few records each in the subreport.  By  brutally slow    I mean a few minutes:
    {BATCH.NAME} = "HEP_ARCH-20090420-1"
    In this case, I can see in the bottom right of the Crystal Preview window, that it is reading through all 2M records in the Z_RESULT_HISTORY table
    Case III   brutally slow - a couple minutes
    {BATCH_OBJECTS.OBJECT_ID} = 111
    This returns 1 record on the main report and 0 records on the subreport.  Yet I can see it reading through ALL 2 Million records before the report is displayed.
    What I can t understand is why the field used for record selection on the MAIN report is affecting the speed of the execution of the subreport.  I need the main report to be selected by BATCH.NAME   yet I can t figure out what I can change to make the report run fast.  When I record select the main report by SAMPLE.PATIENT, I do NOT see the subreport reading all 2M reocrds - the report preview is returned in less than 1 second.
    Any help would be much appreciated.

    Lindell - your response was very helpful.  I was able to create a SQL Command on the subreport and change the subreport links on the main report to use the paramters in the SQL Command.  The report is now very fast - even when there are lots of detail records on the main report.  It is properly executing the query and not reading all 2M records into memory for each subreport.
    I'm still totally confused as to why Crystal was misbehaving so poorly and changing how the subreport queried the database when the only change was the fields used for record selection on the main report.  It really looks like a bug to me, but maybe someone can still enlighten me.
    thanks again so much.  We are in Parallel testing for a production rollout - and the users are MUCH happier now!  (which of course makes me much happier!)
    Susan
    PS I was not aware of the SQL Command - had never used it before.  Took me a little while to figure it out and how to do the linking - but it is very powerful.  Thanks again.

  • Crystal report Subreport linking error

    Hi, I have a issue with linking subreport to main report in crystal report. I created a main report with BEx query as source and this query had fiscal year/period as variable. I have a another subreport with different BEx query and this query also had fiscal year/period variable.
    I linked main report fiscal year/period parameter to subreport fiscal year/period parameter.I can run the report and see the data, however In the parameter selection screen I have two prompts with fiscal year/paeriod variable. How can I make this report to prompt fiscal year/period once?
    I treid to link main report field and subreport parameter, in this case it is prompting only once but I am getting below error.
    [Mon May 23 11:30:08 2011]     5120     5628     ERROR: .\crdb_bwmdx_execution.cpp [478]: l_bapiSelectData failed with return code RFC_RC = 0 Exception:  BAPI Error: BAPI Error #:0
    For characteristic 0FISCYEAR, enter value in a permitted format
    [Mon May 23 11:30:08 2011]     5120     5628     Caught DbError #1 with Message 'BAPI Error #:0
    For characteristic 0FISCYEAR, enter value in a permitted format'
    [Mon May 23 11:30:08 2011]     5120     5628     Caught DbError #1 with Message 'BAPI Error #:0
    For characteristic 0FISCYEAR, enter value in a permitted format'
    Please advice.
    Thanks
    Sasi

    Hi Sasi
    i had the same issue with main report - subreport linking over Bex Variables. So far i realised a workaround by
    giving the value to the subreport variable in the obviously requested format.
    I had to provide the value with leading zeros (internal Numc format).
    In my case I had a compounded value. By running the rep from CR local I have to give the value as usual like "ED/20080" but when running on infoview the subrep variable demands this format "ED0000020080".
    Veeeeery special, but it works.
    Obviously, when running this thing on infoview the variable in the subrep demands the internal fomat.
    But me to, I'm very interested in an explanation of this behavior and by when it's solved. We have BOE XI 3.1 Sp 3 FB 3.
    Ingo, can you help?
    regards alex

  • Crystal report subreport connect DB Problem

    I have rpt file was set the connect DB(AAAA). This file have two reproject (main report and subreport)
    The subreport parameter is linked to main report.
    These two report will get the data from DB by the parameter.
    Server Name:AAAA, Database Name: AAAA, UserID: AAAA, Password:AAAA
    for testing and save it.
    I am trying to build a MFC project with crystal report 13
    My project call this rpt file and pass a parameter to main
    The crystal report main report and subreport can get correct infomation where connect to the DB(AAAA)
    but when I connect to the other DB.
    My project only the crystal report main report can get the correct infomation, the subreport cannot get correct infomation.
    it show a diolog to ask me "enter the parameter".After passing a corrent parameter, the result also not corrent.
    The program code:
    CrystalDecisions::Windows::Forms::CrystalReportViewer^  crystalReportViewer1;
    ReportDocument boReportDocument = gcnew ReportDocument();
    boReportDocument->Load(strFilePath);
    String^ strUser = gcnew String (ReportPara->strUser);
    String^ strPassword = gcnew String (ReportPara->strPassword);
    String^ strServer = gcnew String (ReportPara->strServer);
    String^ strDatabase = gcnew String (ReportPara->strDatabase);
    boReportDocument->DataSourceConnections[0]->SetConnection(strServer,strDatabase,strUser,strPassword);
    ParameterValues^ pv = gcnew ParameterValues();
    ParameterDiscreteValue^ pdv = gcnew ParameterDiscreteValue();
    pdv->Value =ReportPara->varDate;
    pv->Add(pdv);
    boReportDocument->DataDefinition->ParameterFields[0]->ApplyCurrentValues(pv);
    crystalReportViewer1->ReportSource = boReportDocument;
    I have try to change the subreport DataSourceConnections:
    for (int j; j <boReportDocument->DataSourceConnections->Count;j++)
          boReportDocument->Subreports[0]->DataSourceConnections[j]->SetConnection(strServer,strDatabase,strUser,strPassword);
    but the result is also not corrent
    I have try to pass parameter to the subreport:
    pv->Add(pdv);
    boReportDocument->DataDefinition->ParameterFields[1]->ApplyCurrentValues(pv);
    for (int i; i <boReportDocument->DataDefinition->ParameterFields->Count;i++)
         pdv->Value =ReportPara->varDate;
         pv->Add(pdv)
         boReportDocument->Subreports[0]->DataDefinition->ParameterFields[0]->ApplyCurrentValues(pv);
    but the result is also not corrent
    I have try to set the ReportViewer LogOnInfo
    TableLogOnInfo^ loi;
    loi = boReportDocument->Database->Tables[0]->LogOnInfo;
    oTblLogOnInfos->Add(loi);
    for (int j=0; j<boReportDocument->Subreports[0]->Database->Tables->Count;j++)
          loi = boReportDocument->Subreports[0]->Database->Tables[j]->LogOnInfo;
          oTblLogOnInfos->Add(loi);
    crystalReportViewer1->LogOnInfo = oTblLogOnInfos;
    but the result is also not corrent

    Hi Edwin,
    I assume you are using the runtime for Cr for Visual Studio which is available from the download page correct?
    You don't want to use the .Add method, this actually adds a NEW parameter, you simply want to modify the current parameter value.
    Sorry I don't have and C++ samples.
    Don

  • Crystal report -Subreports and BW key date

    Hope your in good spirits,  we had to install the SP 7 on bw for our webi reports to work, i have an issues here with Crystal reports
    I need to develope a crystal report with two BEx Queries as Data Sources, I suggested to use Subreports, where the promts of the reports can be linked, but i have a Keydates in these two Bex Queries which are poping up as two parameters when i run the report is there any way that you can link those to key dates,where the user can enter for one key date Parameter and the value is passed to the Sub report Key date  parameter, please help me

    >
    raj_4234 wrote:
    > Hope your in good spirits,  we had to install the SP 7 on bw for our webi reports to work, i have an issues here with Crystal reports
    >
    > I need to develope a crystal report with two BEx Queries as Data Sources, I suggested to use Subreports, where the promts of the reports can be linked, but i have a Keydates in these two Bex Queries which are poping up as two parameters when i run the report is there any way that you can link those to key dates,where the user can enter for one key date Parameter and the value is passed to the Sub report Key date  parameter, please help me
    did you manage get the solution, i also want to know how to share date parameter from subreport to main report?

  • Problem passing parameter to crystal report subreport from *.aspx page

    Background:
    I am developing a .NET web application using Visual Studio 2005. The code behind is in VB.net. One of my asp.net pages calls a report, which is invoked when the user clicks a Print button. I have developed this report using the Crystal Reports software that is bundled with Visual Studio 2005. I am passing one parameter from the asp.net page (utilizing the VB.net code-behind on the Print button) to the Crystal report. The report consists of a main report and 5 subreports. Both the main report and the subreports use the same parameter. Both the main report and the subreports are bound to stored procedures, each of which require a parameter.
    Problem:
    For some reason, the parameter is not being passed from the asp.net page to the report. I am receiving the following error: "CrystalDecisions.CrystalReports.Engine.ParameterField.CurrentValueException: Missing Parameter Values." However, when I remove the subreports, the parameter gets passed, and the report is invoked with no problem.
    I have read in other forums that there may be an issue with the Crystal Reports software that is causing this problem. I have downloaded and run the suggested hotfix, but the problem remains unresolved. I have tried changing the linking of my main report to the subreport, but that doesn't help either. It is possible that I am doing something wrong with the linking, as this is the first time I have developed a report with Crystal Reports. I need a workaround or definitive solution. Below is the aspx code used to call the report:
    Imports System
    Imports System.Collections.Specialized
    Imports System.Collections.ObjectModel
    Imports System.Collections
    Imports System.Text
    Imports System.Configuration
    Imports System.Data.SqlClient
    Imports System.Data
    Imports System.Data.SqlClient.SqlDataAdapter
    Imports System.Web.Configuration
    Imports Crystaldecisions.crystalreports.engine
    Imports Crystaldecisions.reportsource
    Imports Crystaldecisions.shared
    Partial Class OACIS_Award_or_Deny_BudgetSummary_PrintRpt
    Inherits System.Web.UI.Page
    Dim paramFields As ParameterFieldDefinitions
    Dim paramField As ParameterFieldDefinition
    Dim paramValue As ParameterValues
    Dim paramDiscreteValue As New ParameterDiscreteValue
    Public Shared idCase, nameRpt As String
    Private PrintRpt As ReportDocument
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Try
    idCase = Request.QueryString("id")
    nameRpt = Request.QueryString("prtName")
    Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
    Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
    Dim file As String = settings.File
    Dim dSource, iCatalog, userIs, passUser, appString As String
    dSource = Nothing
    iCatalog = Nothing
    userIs = Nothing
    passUser = Nothing
    appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
    Dim AppArray() As String = Split(appString, ";")
    Dim arrayLgth As Integer = AppArray.Length
    Dim i As Integer
    For i = 0 To arrayLgth - 1
    Dim pairIs() As String = Split(AppArray(i), "=")
    Dim firstItem As String = pairIs(0)
    Dim secondItem As String = pairIs(1)
    If firstItem = "Data Source" Then : dSource = secondItem : End If
    If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
    If firstItem = "UID" Then : userIs = secondItem : End If
    If firstItem = "PWD" Then : passUser = secondItem : End If
    Next
    Dim crReportDocument As ReportDocument
    Dim crExportOptions As ExportOptions
    Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
    Dim crconnectioninfo As ConnectionInfo
    Dim crDatabase As Database
    Dim crtables As Tables
    Dim crtable As Table
    Dim crtablelogoninfo As TableLogOnInfo
    Dim Fname As String
    Dim Prtname As String
    Dim FPath As String
    Dim crSection As Section
    Dim crReportObject As ReportObject
    Dim crSubreportObject As SubreportObject
    Dim subRepDoc As New ReportDocument
    FPath = Server.MapPath("") + "\"
    Dim rptIs As String = nameRpt
    crReportDocument = New ReportDocument
    Prtname = FPath
    Prtname = Prtname + rptIs
    crReportDocument.Load(Prtname)
    Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
    crconnectioninfo = New ConnectionInfo
    crconnectioninfo.ServerName = dSource
    crconnectioninfo.DatabaseName = iCatalog
    crconnectioninfo.UserID = userIs
    crconnectioninfo.Password = passUser
    crDatabase = crReportDocument.Database
    crtables = crDatabase.Tables
    For Each crtable In crtables
    Try
    crtablelogoninfo = crtable.LogOnInfo
    crtablelogoninfo.ConnectionInfo = crconnectioninfo
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.SetDataSource(Prtname)
    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
    crtablelogoninfo.ConnectionInfo.UserID = userIs
    crtablelogoninfo.ConnectionInfo.Password = passUser
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.Location = iCatalog + ".dbo." + crtable.Name
    Catch ex As Exception
    Response.Write(ex)
    Exit Sub
    End Try
    Next crtable
    For Each crSection In crReportDocument.ReportDefinition.Sections
    For Each crReportObject In crSection.ReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    crSubreportObject = CType(crReportObject, SubreportObject)
    subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    For Each crtable In subRepDoc.Database.Tables
    Try
    crtablelogoninfo = crtable.LogOnInfo
    crtablelogoninfo.ConnectionInfo = crconnectioninfo
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.SetDataSource(Prtname)
    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
    crtablelogoninfo.ConnectionInfo.UserID = userIs
    crtablelogoninfo.ConnectionInfo.Password = passUser
    crtable.ApplyLogOnInfo(crtablelogoninfo)
    crtable.Location = iCatalog + ".dbo." + crtable.Name
    Catch ex As Exception
    End Try
    Next
    End If
    Next
    Next
    crDiskFileDestinationOptions = New DiskFileDestinationOptions()
    crDiskFileDestinationOptions.DiskFileName = Fname
    crExportOptions = crReportDocument.ExportOptions
    With crExportOptions
    .DestinationOptions = crDiskFileDestinationOptions
    .ExportDestinationType = ExportDestinationType.DiskFile
    .ExportFormatType = ExportFormatType.PortableDocFormat
    End With
    Dim parIDCase As ParameterValues = New ParameterValues
    Dim disIDCase As ParameterDiscreteValue = New ParameterDiscreteValue
    disIDCase.Value = idCase
    parIDCase.Add(disIDCase)
    crReportDocument.DataDefinition.ParameterFields("@ID_CASE_NMBR").ApplyCurrentValues(parIDCase)
    crReportDocument.Export()
    Response.ClearContent()
    Response.ClearHeaders()
    Response.ContentType = "application/pdf"
    Response.WriteFile(Fname)
    Response.Flush()
    Response.Close()
    System.IO.File.Delete(Fname)
    Catch ex As Exception
    lblMessage.Visible = True
    lblMessage.Text = "Error Load
    " & Convert.ToString(ex)
    End Try
    End Sub
    End Class
    Your help is greatly appreciated!

    Thanks for your help!
    I've now gotten past the "missing parameter values" error, and the report renders fine in the report viewer.  However, I've encounted another problem.  The data in my main report displays correctly, but the data in my subreport does not display.  Of course, when I view the report in the designer, both the main report and subreport display correctly.  What am I doing wrong?  Below is my vb.net code:
            Try
                idCase = Request.QueryString("id")
                nameRpt = Request.QueryString("prtName")
                Dim config As Configuration = WebConfigurationManager.OpenWebConfiguration("~/")
                Dim settings As AppSettingsSection = DirectCast(config.GetSection("appSettings"), AppSettingsSection)
                Dim file As String = settings.File
                Dim dSource, iCatalog, userIs, passUser, appString As String
                dSource = Nothing
                iCatalog = Nothing
                userIs = Nothing
                passUser = Nothing
                appString = config.ConnectionStrings.ConnectionStrings("OacisConn").ToString()
                Dim AppArray() As String = Split(appString, ";")
                Dim arrayLgth As Integer = AppArray.Length
                Dim i As Integer
                For i = 0 To arrayLgth - 1
                    Dim pairIs() As String = Split(AppArray(i), "=")
                    Dim firstItem As String = pairIs(0)
                    Dim secondItem As String = pairIs(1)
                    If firstItem = "Data Source" Then : dSource = secondItem : End If
                    If firstItem = "Initial Catalog" Then : iCatalog = secondItem : End If
                    If firstItem = "UID" Then : userIs = secondItem : End If
                    If firstItem = "PWD" Then : passUser = secondItem : End If
                Next
                Dim crReportDocument As ReportDocument
                Dim crExportOptions As ExportOptions
                Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
                Dim crconnectioninfo As ConnectionInfo
                Dim crDatabase As Database
                Dim crtables As Tables
                Dim crtable As Table
                Dim crtablelogoninfo As TableLogOnInfo
                Dim Fname As String
                Dim Prtname As String
                Dim FPath As String
                Dim crSection As Section
                Dim crReportObject As ReportObject
                Dim crSubreportObject As SubreportObject
                Dim subRepDoc As New ReportDocument
                FPath = Server.MapPath("") + "\"
                Dim rptIs As String = nameRpt
                crReportDocument = New ReportDocument
                Prtname = FPath
                Prtname = Prtname + rptIs
                crReportDocument.Load(Prtname)
                Fname = "C:\WINDOWS\TEMP\" & Session.SessionID.ToString & ".pdf"
                crconnectioninfo = New ConnectionInfo
                crconnectioninfo.ServerName = dSource
                crconnectioninfo.DatabaseName = iCatalog
                crconnectioninfo.UserID = userIs
                crconnectioninfo.Password = passUser
                crDatabase = crReportDocument.Database
                crtables = crDatabase.Tables
                For Each crtable In crtables
                    Try
                        crtablelogoninfo = crtable.LogOnInfo
                        crtablelogoninfo.ConnectionInfo = crconnectioninfo
                        crtable.ApplyLogOnInfo(crtablelogoninfo)
                        crtable.SetDataSource(Prtname)
                        crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
                        crtablelogoninfo.ConnectionInfo.UserID = userIs
                        crtablelogoninfo.ConnectionInfo.Password = passUser
                        crtable.ApplyLogOnInfo(crtablelogoninfo)
                        crtable.Location = iCatalog + ".dbo." + crtable.Name
                    Catch ex As Exception
                        Response.Write(ex)
                        Exit Sub
                    End Try
                Next crtable
                For Each crSection In crReportDocument.ReportDefinition.Sections
                    For Each crReportObject In crSection.ReportObjects
                        If crReportObject.Kind = ReportObjectKind.SubreportObject Then
                            crSubreportObject = CType(crReportObject, SubreportObject)
                            subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
                            For Each crtable In subRepDoc.Database.Tables
                                Try
                                    crtablelogoninfo = crtable.LogOnInfo
                                    crtablelogoninfo.ConnectionInfo = crconnectioninfo
                                    crtable.ApplyLogOnInfo(crtablelogoninfo)
                                    crtable.SetDataSource(Prtname)
                                    crtablelogoninfo.ConnectionInfo.DatabaseName = iCatalog
                                    crtablelogoninfo.ConnectionInfo.UserID = userIs
                                    crtablelogoninfo.ConnectionInfo.Password = passUser
                                    crtable.ApplyLogOnInfo(crtablelogoninfo)
                                    crtable.Location = iCatalog + ".dbo." + crtable.Name
                                Catch ex As Exception
                                End Try
                            Next
                        End If
                    Next
                Next
                crDiskFileDestinationOptions = New DiskFileDestinationOptions()
                crDiskFileDestinationOptions.DiskFileName = Fname
                crExportOptions = crReportDocument.ExportOptions
                With crExportOptions
                    .DestinationOptions = crDiskFileDestinationOptions
                    .ExportDestinationType = ExportDestinationType.DiskFile
                    .ExportFormatType = ExportFormatType.PortableDocFormat
                End With
                crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase)
                crReportDocument.SetParameterValue("@ID_CASE_NMBR", idCase, "MemberName")
                crReportDocument.Export()
                Response.ClearContent()
                Response.ClearHeaders()
                Response.ContentType = "application/pdf"
                Response.WriteFile(Fname)
                Response.Flush()
                Response.Close()
                System.IO.File.Delete(Fname)
            Catch ex As Exception
                lblMessage.Visible = True
                lblMessage.Text = "Error Load<br>" & Convert.ToString(ex)
            End Try
    Edited by: LaShandra Knox on Sep 17, 2008 7:59 PM

  • Crystal report with Details section

    Dear All,
    I design one Crystal report. In that can we add Details section below the Report footer.
    When i add Details section it is adding below Details section like Details a and below Details b.
    I want this Details b section adds below Report Footer. Can anybody suggest me how to add that is ?
    Thanks and Regards

    Dear Friend,
    Thnks for reply. In my Crystal report i added two page header like Page header a and Page header b.
    In Page header a i shows the heading of columns and in Page header b also i am showing the headin column. Coz my all columns name not fited in one Page header. Tha's y i taken two Page header.
    Now i also added two Details section for takeing multiple value from database. Like Details a and Details b. But it is showing one by one.
    I want to show record in details section of specific column. Like following design. Can u plz tell me how to design ?
    Page header a    GCN/Invoice      GCN ...................
                                Date                 No.
    Details a             11/12/2008      1
                                13/12/2008       2
    .........Page header b       Destination        Tanker
                                                                      No.
             Details b                  Pune              125469
                                              Mumbai          566862
    Thanks and Regards

  • How to enable the crystal report log details version 2008

    Hi,
    Kindly give suggestion to enable the crystal report log in BOXIR3.1.  Crystal report version 2008. (User's want to know the complete details log for the report refreshing)
    Thanks.

    This is essentially the same query as in Crystal Report 2008 - Sever.CreateObject Failed which is also posted by you.
    I am thus setting this thread as assumed answered and locking. Please continue to work the issue on the above thread.
    Ludek

  • Crystal Report - Subreport embedded without Page Heading

    Hi, Crystal Report expert,
    I am now working on 2 sub reports On-demand bringing into the crystal report;
    but the page heading for two reports both were changed as Report Heading, and then the 2nd page more will not be displayed with heading.
    Someone can please help me solving the problem?
    Thanks in advance.
    Best regards,
    Michelle for Allen

    Please post your query to Crystal Reports Design forum:
    SAP Crystal Reports
    If it is related to ".NET Development - Crystal Reports" the post to this forum:
    SAP Crystal Reports, version for Visual Studio
    Hope you will find answer for you query on those forums.
    Good Luck.
    Regards
    Satish

  • Report containing 15 sub reports crashing - Crystal Reports 2008

    I am using Crystal report 2008 with all latest service packs applied. I have more then 20 different reports wich work absolutely fine and never crash. One of my report contains 15 sub reports since its bringing data from 15 different queries. This consistently keeps crashing everytime I try to run it. Not sure what could be the root cause.
    We are using Postgres database and connected to it with  ODBC connection using Microsoft DSN.
    - All Subreport data is being displayed on Report Footer
    - All subreports are included in the Main report  page header section. (I have also tried doing it on report footer section but it still crashes)
    I have tried searching through the forum and did not find similar issue resolutions. Did someone face similar problems before?
    The crash message is:
    "crw32.exe has encountered a problem and needs to close. We are sorry of the inconvenience."
    Error report contains this data:
    AppName: crw32.exe      AppVer: 12.2.0.290      ModName: psqlodbc35w.dll
    ModVer: 9.0.2.0      Offset: 0004c538
    I am using Windows XP
    Crystal Report Version Details:
    CR Developer Version 12.2.0.290
    Product Type: Full
    Let me know how can I debug this issue? Any help is appreciated.

    @Don - We performed extensive testing for this crash issue and found that now this crash is not happening only in one scenario. So we have partially fixed this.
    Now the report crashes if I get disconnected from database and reconnect. This is what happens
    1. open the report in crystal report 2008
    2. try to run the report when db is connected- it works fine.
    3. Now disconnect the database (we are using ssh tunnel to connect to db so we just close the tunnel)
    4. now try to refresh the report - it fails to retrieve data.
    5. Now close the report without saving it.
    6. Now Close Crystal Report.
    7. Now Connect the DB using ssh tunnel so crystal report can connect.
    8. Now open Crystal Report
    9. Launch the target report.
    10 Preview the report - it works for first time.
    11. Now do a refresh keeping same parameters - Report crashes here.
    - I tried these steps with some of my other reports and they do not crash.
    - Now I have only one report which contains a Postgres Query with date range,order by and a union join.
    - No subreports now - I am trying to run this one subreport as a standalone report which I created from scratch(using blank report wizard) and just copied the query.
    Any more pointers would help.

  • How to Retrieve a Crystal Report's Unmanaged Destination Filename

    Hi all,
    I have looked very closely at Robert Twigg's response to the post "[Destination Path and name of a scheduled Report|http://forums.sdn.sap.com/thread.jspa?messageID=9588160#9588160]" dated 9/1/10 and while it does retrieve the unmanaged destination path, the filename retrieved is the managed filename.  How does one go about retrieving an instance's unmanaged filename?
    When I look at a Crystal Report instance details, it definitely knows what the unmanaged filename that was populated, here is a sample instance detail:
    External Destination: File copy the instance with the filename: "ALOG_Deferred_Clearing_RPT_2011-12-13-11-43-09.pdf" to the folder: "/apps/efs_bobj/IMPL/XX" .
    As you can clearly see, the filename consists of report name, date, and time that was specified as "%SI_NAME%_%SI_STARTTIME%.%EXT%" in the destination filename.
    Here's the snippet to retrieve the managed filename:
    IInfoObject report = (IInfoObject) reports.get(0);
    // Get the file name from the instance.
    IFiles files = (IFiles) report.getFiles();
    IFile file = (IFile) files.get(0);
    Any insight on how to retrieve an instance's unmanaged filename would be highly appreciated.
    Thanks in advance,
    Hart Penn
    Edited by: hartpenn on Dec 14, 2011 2:14 PM
    Edited by: hartpenn on Dec 14, 2011 2:15 PM
    Edited by: hartpenn on Dec 14, 2011 2:19 PM

    Thank you for your response.  I am querying for the report instances using the query below:
    IInfoObjects iRptObjects = infoStore.query("SELECT * FROM CI_INFOOBJECTS " +
                                               "Where SI_KIND='Pdf' AND " +
                                               "SI_INSTANCE>0 ");
    Collection<IInfoObject> iRptObjs = iRptObjects;
    for (IInfoObject iRptObj : iRptObjs) {
        ISchedulingInfo iSchedInfo = iRptObj.getSchedulingInfo();
        IEvents triggerEvents = iSchedInfo.getDependants();
        if (triggerEvents.size() > 0) {
            for (int j=0; j < triggerEvents.size(); j++) {
                IInfoObjects events = (IInfoObjects)infoStore.query("SELECT * FROM CI_SYSTEMOBJECTS " +
                                                                    "Where SI_KIND='Event' AND " +
                                                                    "SI_ID=" + (Integer) triggerEvents.get(j));
                if (events.size() > 0) {
                    IEvent curEvent = (IEvent)events.get(0);
        IDestinationPlugin destPlugin =
            (IDestinationPlugin) infoStore.query("Select Top 1* from CI_SYSTEMOBJECTS " +
                                                 "Where SI_NAME = 'CrystalEnterprise.DiskUnmanaged'").get(0);
        IDestinations dests = iSchedInfo.getDestinations();
        Collection<IDestination> destObjs = dests;
        if (dests.size() > 0) {
            // we have a dest set up
            for (IDestination destObj : destObjs) {
                if (destObj.getName().compareTo("CrystalEnterprise.DiskUnmanaged") == 0) {
                    // Copy the destination properties to the destination plugin.
                    destObj.copyToPlugin(destPlugin);
                    // Get the scheduling options for the unmanaged disk.
                    IDiskUnmanagedOptions diskUnmanagedOptions =
                        (IDiskUnmanagedOptions) destPlugin.getScheduleOptions();
                    // Get the destination files
                    List destFiles = diskUnmanagedOptions.getDestinationFiles();
                    String pathName = (String)destFiles.get(0);
        IFiles iFiles = (IFiles) iRptObj.getFiles();
        IFile myFile = (IFile) iFiles.get(0);
        logger.debug("Object: " + iRptObj.getTitle() +
                     ", ID: " + iRptObj.getID() +
                     ", Kind: " + iRptObj.getKind() +
                     ", Trigger Event: " + curEvent.getEventName());
        logger.debug("Dest: " + pathName);
        logger.debug("Filename: " + myFile.getName());
    while this is not efficient, it does retrieve the instances. However, the file name returned is not what was specified in the destination filename. Here is some info returned and displayed:
    Object: ALOG_Deferred_Clearing_RPT, ID: 128776, Kind: Pdf, Trigger Event: EVT_121311_114308
    Dest: /apps/efs_bobj/IMPL/XX/%SI_NAME%_%SI_STARTTIME%.%EXT%
    FileName: ~ce46086dd492ac788.pdf
    As you can see, the filename is clearly the managed filename.
    Edited by: hartpenn on Dec 14, 2011 3:43 PM
    Edited by: hartpenn on Dec 14, 2011 4:02 PM
    Edited by: hartpenn on Dec 14, 2011 4:03 PM
    Edited by: hartpenn on Dec 14, 2011 4:17 PM
    Edited by: hartpenn on Dec 14, 2011 4:26 PM
    Edited by: hartpenn on Dec 14, 2011 4:27 PM
    Edited by: hartpenn on Dec 14, 2011 4:28 PM

  • Load Multiple Images in Crystal Report using Paths

    Hi Guys,
    I am currently in need of developing a new requirement for our company's client. We have to load multiple images using just link in Crystal Report. Let's say that the images are stored in a folder (e.g., C:\Datafolder\Images\) and i have to fetch two images to show in crystal report (say, C:\Datafolder\Images\imageval1 and C:\Datafolder\Images\imageval2). These are actually dynamically created and therefore the number of images are not known and so i have to iterate through the list of image links.
    Is it possible using merely crystal report and how?. If not, can I do it using Crystal Report SDK?. Any help will be appreciated. Please take note that we're also using C# in developing our software applications.
    Thanks and best regards.
    ---CHITO--

    There are also a number of KBAs:
    1296803 - How to add an image to a report using the Crystal Reports .NET inproc RAS SDK
    1199408 - How to load an image from disk into a dataset using CSharp (C#) in Visual Studio .NET
    Other related KBAs:
    1216239 - How to access a Crystal Report "Preview Picture" using the CR .NET or RAS .NET SDK?
    1373770 - How can I add a picture to a Crystal Reports subreport using the RAS .NET SDK?
    1320507 - How to change images dynamically in Crystal Reports based on parameter selection?
    And more. Please do use the search box in the top right corner. Simple search terms are best. E.g: 'crystal image net' or 'crystal image format formula', etc.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Alternate Item in Crystal Report

    Hi Experts!
    I am not able to manage alternate item in crystal report's detail section.
    Please help me out in solving the same problem.

    Hello,
    Whenever you make CR in designer then you have three option
    1.Select Table(SQL Table)
    2.Select Procedure(SQL procedure)
    3.Select Command(Which have SQL query)
    Option 1:-
    If you want to use Alternative code then use OALI table and make right or left join with this table.
    Option :-2
    Make UDF row level and set FMS for Alternative or parent item Code.
    Thanks
    Manvendra Singh NIranjan

  • Database error when trying to view Crystal Report from InfoView

    I am receiving the following error when I try to view or run a Crystal Report from the InfoView.  The report is based on an SAP InfoSet.
    "Failed to load database information."
    The report data can be refreshed with no trouble from within the Crystal Reports designer on my local machine, but the error occurs after it is published to the InfoView.  The same error appears when trying to import into Excel using LiveOffice.
    Server details:
    -Edge 3.1
    -Windows 2003 64-bit
    -SAP Integration kit installed
    Local Crystal Reports machine details:
    -Windows XP
    -SAP Integration kit installed
    -Crystal Reports 2008
    My steps to troubleshoot so far:
    -Checked Database Logon details in CMC for the report.  Username and password are entered correctly.
    -Cycled all CrystalReports background services off and on again from the CMC
    -Rebooted server
    Have I missed anything?  Any help would be appreciated.

    Hi,
    do you have any connectivity from your EDGE to the SAP System ? Like can you import roles or run a WebI ?
    Regards
    -Seb.

  • Can we insert new Detail Section After Report Footer in Crystal Report

    Hi All,
                Is it possible to  insert new  'detail' section  after  ' Report Footer' in the Crystal Report, i know this  is possible in 'detail' section where you can insert new detail one after another, but i want to  insert another  ' detail' section after Report Footer according  my required  result.
    Regards
    Rahul

    Hi Rahul...........
    Open Crystal Report and go to Insert option and select SubReport. From here you can create Subreport........
    Check below links....
    http://msdn.microsoft.com/en-us/library/ms227520%28v=vs.80%29.aspx
    http://www.youtube.com/watch?v=JVNkhj_rnMY
    Regards,
    Rahul

Maybe you are looking for

  • A1281 is the battery i got for my 15inch MBP. Is the battery life only 2 - 3 hours for a new battery on this device.

    A1281 is the battery i got for my 15inch MBP. Is the battery life only 2 - 3 hours for a new battery on this device. This is from Apple. 2 to 3 hours seems very low. what is teh standard or advertised spec for a 15 inch Macbook Pro with this battery.

  • Add on for SAP B1 9.0 32 bit is disconnected

    Hi, I have developed a simple add on for SAP B1 9.0 32 bit. The add on is working fine in development environment. But while working on a Terminal Server client, the add on is getting disconnected after some time. This is happening for all terminal s

  • How to pipeline a function with a dynamic number of columns?

    Hi everyone, I'm trying to figure out how to write a piplined function that generates a dynamic SQL statement from its inputs, executes the query, and returns the results of the query in the pipeline. The number and names of the columns in the dynami

  • Silent install of iTunes 10 for Windows

    I am trying to deploy iTunes 10 to about 100 windows machines. Is there a command I can use to make the install silent. I have seen past references to /q /n and /quiet /passive but those do not seem to work. I have also seen references at appdeploy.c

  • Payment terms at header level

    Dear All, Please let me know what will be the terms of payment at header level, if I have 2 line items and these 2 line items have different payments terms. Thank You. Regards Madhu