Pass along Crystal Report file name on export to Excel

Hello, I am using Crystal Reports 10 and create numerous Crystal reports, all of which end up being exported out to Excel.  Is there a way to export the name of the Report or its file name out to Excel as well?  I work with so many reports that I can't always trace back the Excel version of the report back to its Crystal report roots.
Thank you.

Hi
In field explorer  Use Special Field called File Path and Name drag and place it  in Report Header
If you want just the report Name then use Report Title.
Cheers
Rahul

Similar Messages

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

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

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

  • Crystal report not able to export in EXCEL file in windows 7

    Hi Expert,
    I have an Form, in which there is a button print.  when I press Print button Crystal report open with data. upto here is fine with any operating system (OS).
    When I press Export report in XP it working fine, ShowDialog is show on screen where I have to save this file. but When I run as application on windows 7 I got  below as error
    Current thread must be set to single thread apartment (STA) mode before OLE calls can be made .......
    rptDoc.PrintOptions.PaperSize = CType(rawKind, CrystalDecisions.Shared.PaperSize)
                rptView.ReportSource = rptDoc
                rptView.Show()
                Dim oFrm As New System.Windows.Forms.Form
                rptView.DisplayGroupTree = False
                rptView.Dock = System.Windows.Forms.DockStyle.Fill
                rptView.Location = New System.Drawing.Point(0, 0)
                oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
                oFrm.Controls.Add(rptView)
                oFrm.Name = "Report Viewer"
                oFrm.Text = "Report Viewer"
                oFrm.ResumeLayout(False)
                oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
                oFrm.TopMost = True
                oFrm.ShowDialog()
            Catch ex As Exception
                objMain.objApplication.MessageBox(ex.Message)
    Can you please tell me why is I am not able to export report on windows 7 thru Crystal report
    Thanks
    Kevin

    Hi Kevin,
    You may check: Error in Export to PDF for crystal reports
    Thanks,
    Gordon

  • Crystal Report Viewer | Issue Default Exporting to Excel

    hi,
            if any 1 of the column is empty in the report then when exported to the excel the null valued column value is printed by the next column.
    For example if i have  columns such as A,B,C and B has null values, then B is replaced by c.
    Is this a bug?
    Thanks and regards,
    Dhinesh B

    Editable RTF, because of the static nature of header and footer information, has restrictions on field display mapping Crystal page numbering to Word page numbering.
    RTF export does not, since header and footer information is not placed in header and footer, but in the body itself as static text.
    Sincerely,
    Ted Ueda

  • Crystal Reports XI: formatting and exporting to Excel (VB 6)

    Hi.
    I have a VERY simple report that all I want it to do is display the numbers from a table EXACTLY as formatted and be able to export them to Excel, as NUMBER (not STRINGS).
    Example:
    My fields may contains the following values in a single column:
    45.02
    0.04454
    215
    And I want them to be displayed as entered in the source table.
    Initially, to maintain the formatting, I set the field's data type to a STRING.
    The problem is that when I then export the data to Excel, all the numerical values are treated as TEXT and we need to "Convert Text to Numbers".
    When I changed the field's data type to a DOUBLE, the data in the table is correct, but the report formats all the numbers in one way.  I want to be able to retain the formatting of the field (as-is) but have them exported as numbers, rather than text.
    Can this be done?
    Please advise!
    Thanks.
    AK

    I actuallly found my answer elsewhere (http://www.tek-tips.com/viewthread.cfm?qid=1235276&page=4).
    The Decimal formattion (x=2) for the fields can be set as follows:
    If CurrentFieldValue = Int(CurrentFieldValue) Then 0Else If CurrentFieldValue * 10 = Int(CurrentFieldValue * 10) Then 1
    Else If CurrentFieldValue * 100 = Int(CurrentFieldValue * 100) Then 2
    Else If CurrentFieldValue * 1000 = Int(CurrentFieldValue * 1000) Then 3
    Else If CurrentFieldValue * 10000 = Int(CurrentFieldValue * 10000) Then 4
    Else If CurrentFieldValue * 100000 = Int(CurrentFieldValue * 100000) Then 5
    Else If CurrentFieldValue * 1000000 = Int(CurrentFieldValue * 1000000) Then 6
    ElseDefaultAttribute
    Basically - this works.
    Hope this helps someone else!
    Thanks.
    AK

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

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

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

  • Report file name as parameter

    There's probably a simple answer to this but I can't figure it out...
    I have made a jsp-page to view my report using CR4E's Create Viewer JSP wizard. Instead of hard-coded report file name, I'm taking the name from URL parameter like this
    myviewer.jsp?report=myreport.rpt
    The report shows fine until I click any of the controls (next page, print, export, etc.) in HTML-viewer. This seems to run some javascript code that calls the myviewer.jsp again, but loses all URL parameters! How can I preserve those parameters?

    Page navigation with the viewer works by post-back to the page where you've defined the viewer - the viewer interprets the postback GET parameters for the action required.
    This means that the ReportSource must be available for every postback - usually, it's stored in HTTP Session.
    Check out the following sample codes:
    http://support.businessobjects.com/communityCS/FilesAndUpdates/crxi_r2_jrc_web_samples.zip.asp
    Sincerely,
    Ted Ueda

  • Help required in embedding flash file object into Crystal Report file.

    Hello,
          I use the default version of Crystal Report (i.e.'Crystal Report Basic For Visual Studio 2008 - version 10.5' ) which is the part of 'Visual Studio 2008', to create and display the Report. Further, as a requirement, I have to show 'Event Video' into the Report. But, as this default version of Crystal Report does not support Flash File, I uninstalled it and downloaded and installed the 30 days trial version of the Crystal Report (i.e. Crystal Report 2008 - version 12.0).
          Then, I created a new Crystal Report File using 'Crystal Report 2008 Designer', embedded the video as a Flash File(i.e. SWF file) into it. Now,  when I add this newly created Crystal Report File into my sample application, which is created using VS 2008, it does not shows the embedded video.
          So, can anybody please tell me, how can I embed the Flash File into Crystal Report, so that it will be visible in the sample application?
    I would like to appreciate your help and support.
    Thanks,
    -Yogesh.

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • Creating crystal report file dynamically.

    Post Author: malcomstewart115
    CA Forum: General
    Hi, everybody.
    I have one problem.
    How to create crystal report file(*.rpt)  in php dynamically.
    I mean, I want to create the "*.rpt" file with php code.
    Please help me. thanks everybody.

    Post Author: PWilkens
    CA Forum: General
    It sounds like you're defeating the power and purpose of Crystal Reports, or replace it with pure PHP (which I suppose could be done... but why?)
    What exactly are you trying to do?
    If you're trying to make certain parts of the report hide or reveal or change depending on variables settings in the PHP file, that's easy enough to accomplish by sending parameters with your PHP values into the report.  But the dynamic actions really need to be done within the report itself, accomplished through ample use of the section and field settings provided within the Report Designer.

  • Create crystal report file using JAVA

    Can someone tell me how to a Create crystal report file using JAVA Programming
    I want a very simple example

    Please help me. It's urgent.[http://catb.org/~esr/faqs/smart-questions.html#urgent]
    Be back in an hour or two...

  • View Crystal Report File  from SDK

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

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

  • Crystal report files created, but why not all?

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

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

  • How to print the report file name and path and the last mod date

    Good morning,
    I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
    Anyone would know how I can do that? I have checked the doc but found nothing.
    Thks. Philippe.

    Did you ever determine how to print report name and report last mod date?
    Thanks

  • How can I change the report file name depending on which seq file is run in the main seq?

    I'm using TestStand 3.0.
    I have a main sequence file with a menu option to select one of several sequence files to run.
    How can I get TestStand to change report file name to the selected sequence file rather than the main sequence file name?
    Thanks
    Harminder

    Hi Harminder
    Try RunState.Root.Locals.ReportFilePath = "PathToMyFile.xxx"
    regards
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Error when upload Crystal report files to CMC

    hi All,
    i having an error when trying to upload a Crystal report files to CMC, the msg appears below :
    Unable to find servers in CMS obt-sg-a1mgr.obtechglobal.com:6400 and cluster @obt-sg-a1mgr:6400 with kind fileserver and service FileStoreV2. All such servers could be down or disabled by the administrator. (FWM 01014)
    any help would be appreciated, thanks.
    Regards
    Hariyono

    Hi
    can you please go to the CMC under Servers and check the status of your file repository servers? Are they enabled and in status running ?
    Regards,
    Stratos

Maybe you are looking for

  • Generation of Annual Leave Quota at a time for the whole  year

    Hi All, Kindly give some suggestions. I am working on Time evaluation. We have a quota , Annual leave which is now given on monthly basis, means lets 12 annual leave are for whole year and employee are getting 1 leave on each month. Now  my requireme

  • Red frames and MXF decode error

    Hi there, I have Premiere Pro CC and running Mac OSX 10.9.5. I have one long 32 minute long C300 MXF clip in my timeline which seems to be fine until around the 26 minute mark, where the entire frame goes red. The audio still works, but I can't see a

  • Finding Transfered Files

    I have used a fire wire to transfer my photos from my desk top (imac) to my lap top Mac book pro). Everything seemed to go well but the photos are not on my lap top. What went wrong?

  • How to Modify ME2L (Purchase Orders by Vendor) ?

    Hi I would like to modify (adding a new Select-Parameter) to the selection-screen of transaction ME2L. Any Experience witdh that ? Thanks a lot !

  • JTable appears on maximizing Frame

    The JTable does not appear till I resize the frame. Relevant Points: 1. I am using a TableModel which extends AbstractTableMode to fetch the data for the JTable. 2. The JTable is being added to the JScrollPane. And the JScrollPane is being added on t