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

Similar Messages

  • Hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,but i can't find  my data which i have saved on mac.please help me out in this matter.

    hey,i forgot my login password,so i changed the password by using terminal command(reset password).now i have new user name with new password,
    but i can't find  my data which i have saved on mac.the storage is showing data used and free space on the disk
    please help me out in this matter.

    How did you change your user name?
    resetpassword wouldn't have done it. If you managed to create a new user, then your data is still in the old account.

  • Is it possible to open AI files created with newer version of Illustrator?

    I am still using AICS2; I've noticed that files created in newer versions without PDF content will not open; is there any workaround for this? I'm missing out on lots of nice stuff....

    >is there any workaround for this?
    Open them in the appropriate version. You can download a 30-day demo of Illustrator 14. You can also ask the supplier to down-save for you.

  • 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

  • Have file name with date working but appending the time to file name can't get a result

    DECLARE @dt AS VARCHAR(26)
    SELECT @dt = REPLACE(CONVERT(VARCHAR(26),getDate(),110),'-','-'
    Have this appended to a filename like: log_01-15-2015.  Don't know what to add to SQL code to get the get the time and append time in hours, min, sec. like:  log_01-15-2015_10:01:33  
    DECLARE @dt AS VARCHAR(50)
    SELECT @dt = REPLACE(CONVERT(VARCHAR,CURRENT_TIMESTAMP,110),'-','-') +'_'+ CONVERT(VARCHAR,CURRENT_TIMESTAMP,108)
    EXEC master.dbo.sp_configure 'show advanced options',1
    RECONFIGURE WITH OVERRIDE
    EXEC master.dbo.sp_configure 'xp_cmdshell',1
    RECONFIGURE WITH OVERRIDE
    SET @bcpCommand = 'bcp "SELECT * FROM ##Temp ORDER BY barcode" queryout "C:\TEMP\Log\ContainerHistory_Log_' + @dt +'" -c -T'
    EXEC master..xp_cmdshell @bcpCommand
    I am trying to append to the file created with the date a time stamp but when appending the time part for the filename results aren't creating the file.  If it's just doing the date part then it is working. Any idea what is wrong? 

    Since you added ":" to the file name, the file name is not valid. You can change ":" to "-".
    DECLARE @dt AS VARCHAR(50)
    SELECT @dt = CONVERT(VARCHAR,CURRENT_TIMESTAMP,110) +'_'+ REPLACE(CONVERT(VARCHAR,CURRENT_TIMESTAMP,108), ':', '-')
    SELECT @dt
    A Fan of SSIS, SSRS and SSAS

  • I'm trying to download Adobe Air. Getting Error that I need newer version, but keep getting same error. Any help here?

    Each time I try to download Adobe Air, I keep getting an error pop-up stating that I need to go to adobe to get a newer version.  Each time I attempt to do this, I receive the same error.  I'm able to get to the point where Adobe Air Installer icon appears.  I'm able to click on this icon but then I get the error.  Anyone else experiencing this problem?  Anyone have success getting through this problem?  Thank you!

    If the Adobe product is not compatible with Lion, it's still Adobe's issue.  Even still, this is a MacBook Pro hardware forum, so if you think Lion caused it, try going to the Lion forum, maybe someone will be able to give you quick/helpful support. 
    https://discussions.apple.com/community/mac_os/mac_os_x_v10.7_lion

  • How can I upgrade to new versions, but keep the custom look I love icons of the theme I've installed in version 3.6.n ?

    When will custom icons in themes be available for the new versions. The stripped down m9inimal version is just not appealing to me.

    First, try to determine the reason that Firefox 3.5.10 is hanging or not starting. Since you did not specify, you will need to read some of the following to determine hanging or starting; hanging usually gives you an error message when you try to start Firefox. See below. If you install Firefox 3.6.6 over the top of 3.5.10 and the cause of the hanging or not starting is one or more extensions or plugins or some other cause, Firefox 3.6.6 may experience the same problem.
    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • Sync iPhone with new computer but keep text messages / photos etc

    Hi,
    So I have an iPhone 4 that I always synced with my Mac Book Pro. I now use a Mac Pro tower computer as my primary machine. I hear you can only sync with one computer at a time (is this true?) well if so, I'd like to start syncing my iphone with the tower for now on, but am concearned cause my friend was in the same predicament and had a bunch of stuff erased. I see online a lot of people say to manually transfer your music to the new computer and sync, but I want to make sure everything else is properally done as well including contacts photos and the text message / call history etc.
    My itunes music is already transfered to the tower. I beleve my "contacts" app is mostly updated on my tower , and even more updated on the phone itself. The photos are only on my iphone, and the text message / call / voicemails are only on the phone ( I dont even think those could be backed up). So - should I just go ahead and try and sync it with the new computer?
    What option would I choose...I don't think I wanna swipe it...and although I have my music on the tower, my contacts / photos are on the phone so what is the best way of properly doing this?
    Thanks

    You just have to set your preferences in iTunes.
    You can choose not to delete contacts etc from the iPhone. After you connect the iPhone, click on the iPhone icon that shows up in iTunes, and go to the appropriate tab, and check / uncheck what you want or don't want.
    I don't think text messages get deleted or changed.

  • Crystal Reports for B1 on Hana version 9.0, Invalid column name DOCCODE

    Hi Experts,
    I am new to SAP B1 for HANA, now I am learning how to use Crystal Report with SAP Business one for HANA version 9.0. I am facing this issue while trying to save the crystal report inside SAP B1 for hana. Please help me to fix the issue
    The steps that I followed
    1.created the Blank Crystal report file
    2.imported that into layout manager
    3.Then tried to edit the file using Crystal report 2011 sp4
    4.For testing, I have used the Query SELECT * FROM SBODEMOSG.OCRD. In Crystal report i am able to get the data
    5.But while trying the Save the report inside sap using Add-ins-->Save as option, im getting the following error message.

    Moved to the B1 forum.
    Business One is an OEM version of CR Designer.
    Log onto your B1 site and download the latest Crystal Reports for B1. CR XI does not support the new connector.
    Don

  • Report file name error with Chinese Date format

    Hello,
    I am seeing an error at
    step Write UUT report in the standard model files.  This step is
    calling the API method save on the object Runstate.Report.
    The issue occurs on computers using chinese localization with the date in the report file name.
    Is this a known issue?  Is there a way to modify the filename before calling the above method to eliminate the problem?
    Solved!
    Go to Solution.

    An Error Message is attached. 
    WE have seen this on both Vista and XP.  We are using TestStand version 4.1.1.  I am not sure about the localization, but I have seen this on computers from Taiwan, Korea and Japan.  
    If I put a breakpoint in the Model file at the Write UUT Report Step, you can see Chinese Characters in the time portion of the file name.
    If you change the report name to not include the time and date, the error does not occur.
    We have seen this with ASCII and xml.  With XML, the error also occurs at the step "Add Root Tags to XML Report"
    Attachments:
    FileNameError.JPG ‏134 KB

  • 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:");

  • 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

  • Having trouble opening Crystal Report files from a document library

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

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

  • Modify UUT report file name

    Hello,
    I use TesStand 3.1 in Batchmode with 4 Testsockets and generate a XML Testreport for every UUT with the serial number in the file name.
    I leave the "Enter UUT Serial Number" dialog boxes at the begin empty.
    After that i read out the Serial Number of my UUTs at the runtime via CAN and use the "PostUUT-Callback" to modify the "Parameters.UUT.SerialNumber".
    Because of that the UUT Serial Number appears in the Report Header.
    But the report filename is always "Report[NO_UUT_SERIAL_NUM0][date][time].xml".
    Is it possible to modify the "UUT Serial Number" in the Report File Name, too?
    Thanx for your answers!
    Greetz ALIEN

    We modify the report name to include error count, Model, build, etc. but it requires that the Report be complete at that point (file no longer locked by TestStand). 
    In order to do this, you'll need to create a Sequence (with no Process Model) to call the test sequence using Subsequence call with the "Run Sequence in a New Execution" selected in the "Specify Module", Multithreading selection ring.
    There may be other ways to do what you're attempting, but this gives you freedom to rename the file. 
    Mike

  • Change file name with oreilly servlet

    I am using oreilly servlet package and I want to change the file name to the file I am uploading, is this possible ?
    How ?
    Thanks.
    here I post the servlet code:
    package com.reducativa.sitio.servlets;
    * DemoParserUploadServlet.java
    * Example servlet to handle file uploads using MultipartParser for
    * decoding the incoming multipart/form-data stream
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import com.oreilly.servlet.multipart.*;
    public class DemoParserUploadServlet extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    response.setContentType("text/plain");
    out.println("Demo Parser Upload Servlet");
    File dir = new File("f:/");
    if (! dir.isDirectory()) {
    throw new ServletException("Supplied uploadDir " + "f:/ " +
    " is invalid");
    try {
    MultipartParser mp = new MultipartParser(request, 10*1024*1024); // 10MB
    Part part;
    while ((part = mp.readNextPart()) != null) {
    String name = part.getName();
    if (part.isParam()) {
    // it's a parameter part
    ParamPart paramPart = (ParamPart) part;
    String value = paramPart.getStringValue();
    out.println("param; name=" + name + ", value=" + value);
    else if (part.isFile()) {
    // it's a file part
    FilePart filePart = (FilePart) part;
    String fileName = filePart.getFileName();
    if (fileName != null) {
    // the part actually contained a file
    long size = filePart.writeTo(dir);
    out.println("file; name=" + name + "; filename=" + fileName +
    ", filePath=" + filePart.getFilePath() +
    ", content type=" + filePart.getContentType() +
    ", size=" + size);
    else {
    // the field did not contain a file
    out.println("file; name=" + name + "; EMPTY");
    out.flush();
    catch (IOException lEx) {
    this.getServletContext().log("error reading or saving file");
    }

    Hi there,
    I am facing the same problem that you have stated in your Feb 26, 2002 10:28 AM message regarding "change file name with oreilly servlet", I would like to change the file name to include a unique identifier upon upload, did you ever find a solution to your problem?
    Thanks!
    Todd
    [email protected]

Maybe you are looking for

  • How to make beep by PC speaker in java

    hello,everybody: I know that can make pc speaker produce beep voice in c language through use ascII--007,but how to realize it in java application.Please help me,thank you.

  • On my IPAD, I accidently called up firefox home and cannot get off how do I do this

    using firefox on my ipad for bookmarks, by accident I hit a tab that went to firefox home and asked me to set up a sync account which I do not want to do, now I cannot get off of that page.

  • Package in invalid status - compiles ok

    I created a package having 2 procedures. The package compiles fine, no errors found. My "SELECT * FROM all_objects" shows the package with STATUS=INVALID. If I try to call a procedure in the package Says "ORA-06575 Package or function is in an invali

  • Mixer for Mac?

    I do quite a few trainings for my job and use my MacBook Pro to create Power Points with embedded video clips and also use iDVD to show movies I have created. I am trying to find a microphone mixer that will integrate both the sound on my Mac as well

  • How do I sync outlook tasks with iPhone4?

    Is there a 3rd party app to assist? thanks