Date Modified Date/Time Issues on Files Exported to Excel

Hello -
I am using Crystal Reports XI, Release 2 and Visual Studio 2005 Enterprise Edition for my ASP.NET application.
CrystalReports dll version : 11.5.3700.0
.NET Framework 2.0.50727
I use the CrystalDecisions.CrystalReports.Engine.ReportDocument to export a report to Excel (ExportFormatType.Excel).
When you view the exported file in Excel 2007 (just open and close it, making no changes), the Date Modified date of the file changes to whatever date/time the file was last viewed.  I have also noticed this same behavior when exporting to Excel from Crystal, using a vendor desktop application that is written in C++ and uses Crystal XI.
Does anyone else experience this issue and have a resolution?
Edited by: Meg Thickman on Feb 3, 2009 8:59 AM

Hi Meg,
Just to clarify did you mean viewing the PDF?:
"Why would/should the file system date change merely by viewing the report?"
Our exported files are not linked to the master RPT file.
As I indicated the XLS file is likely in an older format and Excel is detecting and updating something which the file system then detects a change and updates the date stamp. Or excel is writing something back to the file. Did you notice if the file size changed or possibly the byte hash?
This is not something we are going to be able change. For compatability reasons we cannot stop Excel from updating the file.
As a work around add the Data Date field to your reports and your auditors can use that as the reference. It will reflect the actual date and time the report was run. Or use Excel API's to update the file format once the report has been exported in your code. You may also want to check with Microsoft to see if it's an option in Excel not to update the format or possibly a registry key to disable the option.
Thanks again
Don

Similar Messages

  • How to determine the creation date/time for a file?

    The important operating systems maintain both a creation date/time and last modified date/time for files. But in the File class there is only a lastModified() method. How does one determine the creation date/time for a file?

    As far as i know, there is no way to know creation time, since it is a OS dependant information.

  • How do I get the last changed date & time of a file in app server?

    Hi Experts,
    How do I get the last changed date & time of a file in app server?
    Thanks!
    - Anthony -

    Hi,
    that's what I use...
      CALL 'C_DIR_READ_FINISH'.             " just to be sure
      CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
      IF sy-subrc <> 0.
        EXIT. "Error
      ENDIF.
      DO.
        CLEAR l_srvfil.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD l_srvfil-type
          ID 'NAME'   FIELD l_srvfil-file
          ID 'LEN'    FIELD l_srvfil-size
          ID 'OWNER'  FIELD l_srvfil-owner
          ID 'MTIME'  FIELD l_mtime
          ID 'MODE'   FIELD l_srvfil-attri.
    *    l_srvfil-dir = p_path .
        IF sy-subrc = 1.
          EXIT.
        ENDIF." sy-subrc <> 0.
        PERFORM p_to_date_time_tz
          USING    l_mtime
          CHANGING l_srvfil-mod_time
                   l_srvfil-mod_date.
        TRANSLATE l_srvfil-type TO UPPER CASE.               "#EC TRANSLANG
        PERFORM translate_attribute CHANGING l_srvfil-attri.
        CHECK:
          NOT l_srvfil-file = '.',
          l_srvfil-type = 'D' OR
          l_srvfil-type = 'F' .
        APPEND l_srvfil TO lt_srvfil.
      ENDDO.
      CHECK NOT lt_srvfil IS INITIAL.
      pt_srvfil = lt_srvfil.
    FORM p_to_date_time_tz  USING    p_ptime  TYPE p
                            CHANGING p_time   TYPE syuzeit
                                     p_date   TYPE sydatum.
      DATA:
        l_abaptstamp TYPE timestamp,
        l_time       TYPE int4,
        l_opcode     TYPE x VALUE 3,
        l_abstamp    TYPE abstamp.
      l_time = p_ptime.
      CALL 'RstrDateConv'
        ID 'OPCODE' FIELD l_opcode
        ID 'TIMESTAMP' FIELD l_time
        ID 'ABAPSTAMP' FIELD l_abstamp.
      l_abaptstamp = l_abstamp.
      CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
          TIME p_time.
    ENDFORM.                    " p_to_date_time_tz
    Regards,
    Clemens

  • Get the creation date time of the file located in persentation server

    Hi Experts,
    I have a requirement where i need to fetch the creation date time of a file.
    ex. file path :  C:\Documents and Settings\file.xml
    I have the file path, i need to know when this file is created.
    Is there any GUI services or FM to achieve this?
    Your help in this regard is highly appreciated.
    Kind Regards,
    Vidya

    Hi Sandeep,
    Thanks for your reply.
    Can you please explain in detail the procedure to Maintain a log table & fetching the
    creation date time of a file in persentation server.
    The requirement is :
    I have the directory path, which contains many xml files. ex : C:\Documents and Settings\Dir
    I have to fetch files ,which has been created between the specified time stamp.
    ex : October 24, 2008 to December 24, 2008
    So i need to fetch all the files from the directory "Dir" which has been created between
    October 24, 2008 to December 24, 2008.
    Regards,
    Vidya

  • When  Adobe Formscentral retires can we still send the forms to our customers  and recieve data on the response to export to excel

    When  Adobe Formscentral retires can we still send the forms to our customers  and receive data on the response to export to excel?

    Hello,
    Unfortunately, after the retirement of Adobe FormsCentral; you will not able to send and receive responses.
    Please visit the following link for more information:- End of support | Adobe FormsCentral
    Regards,
    Nakul

  • Setting date & time for a file

    Hi there!
    I need something that allows me to modify the date & time of creation of a certain file...
    Coming from Window$ world, I used a little program that did it: the main use would be when I have a digital photo that I need to rotate, I do it and then I give the new file the same creation date and time of the original one.
    Thanks in advance and Ciao!
    Sergio

    You can do this in iPhoto. If you import your pictures into iPhoto you can then select them all or one at a time and choose BATCH CHANGE from the PHOTO menu. Then you select choose DATE from the pulldown menu. You can even add time between photos (if you do more than one at a time).
    Hope that helps.
    EDIT: If you want to do this outside of iPhoto, there is a freeware app called MIANA, which I just found. It's a Universal Binary, too!

  • Need to add date/time stamp to file name without time change creating new files

    We have setup our application to save data once a trigger event occurs. We also need the date/time stamp as part of the file name. We used Format Date/Time String and concatenated it into the file name. It all works good, but as the time changes (seconds, minutes, etc.) it causes the Write to File to create a new file with the new filename. Is there a way to create the file and save/latch/buffer the time in the file name so that it doesn't create a new file for every second?
    I've attached a shot of the relevant part of our VI. It's all in a big while loop. The data save is in a case/switch so that when it is triggered it starts saving. (The for loop is to split the data up
    into 4 different files). Like I said, it all works except new files are created every second as the time changes instead of just putting it all in one file with the initial time in the file name.
    Attachments:
    TimeInFileNameQuestion.jpg ‏46 KB

    I need a loop in order to use a shift register. I cannot stop the outer while loop (because it would stop the hardware from collecting data), and I cannot add loops inside which bogs down the processor to where the app stops. I've attached a simpler version of my VI which illustrates the problem. While the button is pressed (the trigger) it should save the data (in this case just cycle numbers) into one file with the initial date/time. But, you can see that it creates 1 file/second. I tried using shift registers, but without adding extra loops I can't see how to do it. Thanks
    Attachments:
    FileNameTest.vi ‏29 KB

  • Updating EXIF date/time in XML files (Bridge CS4)

    Is there a way to re-read the EXIF date/time information from RAW camera files and update that existing information in the XML files?

    To my knowledge not with Bridge, maybe with a script.
    Basically the problem occurs while using multiple camera's that have not all the same correct date and time. To my experience the quickest way is to bite the bullet once and using the filters for date time for each dslr and apply labels to each dslr, then manual select the correct sequence and rename the whole bunch with a sequence number in front of all the filenames so you can use filename to sort the correct order.
    And after this of course check next time all date and time settings before starting a new job :-)

  • Creating a spool file with date/time appended to file name

    In Oracle Sql*Plus, I want to spool out a file, with the date-time stamp as part of the file name. Any idea how to do this?
    Here's what I have right now:
    SQL>
    set serveroutput on size 200000;
    rem
    rem $OFSA is a UNIX alias so sql plus is talking to UNIX
    rem
    spool $OFSA/logs/OFSAP/common_coa_id.log;
    prompt 'Enter date in mmddyyyy format, without quotes';
    exec upd_common_coa_id_driver ('&date_mmddyyyy');
    spool off;
    As an example, I'd like to have a file with this name: common_coa_id083002.log
    Thanks.

    In SQL*Plus this is what you can do to get the current date/time as part of the spool file:
    ============================================================================================
    SQL> column tm new_value file_time noprint
    SQL> select to_char(sysdate, 'YYYYMMDD') tm from dual ;
    1 row selected.
    SQL> prompt &file_time
    20020816
    SQL> spool C:\Temp\logfile_id&file_time..log
    . /* put your code here */
    . /* it will go to a file called C:\Temp\logfile_id20020816.log */
    SQL> spool off
    SQL>

  • Date Time issue factory unlocked iphone 4s

    I have a factory unlocked iphone 4s bought in Apple store US and currently in India. In Settings -> General -> Date & Time, I am setting "on" Set Automatically. After some time say 2-3 hours, the time automatically moves back by 30 minutes. In India there is no daylight savings. I am forced to set "off" for the "Set Automatically" option and then choose the timezone, time to keep it to the correct time. Anyone facing this issue ? By setting it to "Set Automatically" on, my understanding is it should sync with the mobile provider ("Airtel"). Is this a bug in iOS ?

    i have same problem i also went to apple store but the can not find any problem i don't know what to do ?
    i hop it's just a sofware problem

  • ASN Delivery Date/Time Issue

    Hi
    We are having issue wherein vendor navigates to Create ASN screen from DCM screen there he enters the ASN number, Shipping date and time, quantity and PO number etc. After this he presses the Check button for calculating delivery date and time. Here instead of adding number of hours mentioned in Means of Transport entry to Shipping time, system adds some fix number hours to MoT hours and calculates the delivery time.
    But if vendor directly goes to Create ASN screen then system only considers number of hours mentioned in MoT entry. I want to know from where system is adding this fix number of hours while scheduling delivery date/Time.
    Thanks

    Hi ,
    Thanks for the reply. But the issue is we are not passing any value to the Delivery Date Time Spot field (EKET-UZEIT). So by default when the BAPI_PO_CHANGE FM is called the value passed to this field is '000000'. It is that the system automatically changes the value to '00::0:1'. And it does so only if we execute the program without debugging the code. May be there might be a OSS note to update.
    Thanks
    Devarajan

  • Write 32 channels thermistor data (temp in degree vs date/time) into xls file for all channels continuously.

    i am acquiring 32 channels thermistor data (temp in degree vs date/time) in waveform plot using array to cluster function  ,
    now my problem is how to write this data  into xls file for all channels continuously.
    please help me at the earliest & i am new to Labview.

    Hi Priyanka,
    Writing to excel file continuously is not a good idea, you can use ".CSV" or TDMS file format and once data acquisition is completed you can convert that to excel file using report generation toolkit.
    With Regards
    Miraz
    Kudos is better option to thank somebody on this forum

  • How can I write waveform data to a txt file or an excel sheet?

    I want have a table that I can follow up in excel. In first column should be the timestamp (in ms or better in us), in the second column should be the value. I made an effort but it doesn´t work.
    Attachments:
    PWMReadWrite.vi ‏167 KB

    Yes, you must change block (Get Date/Time String.vi).
    You must write new subVI - this new VI convert date and time to the second [or ms or us].
    First choice is: time column will be count of second [the better ms or best us] since 12:00 a.m., January 1, 1904, Universal time[function "Get Date/Time In Seconds.vi"].
    Text file:
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333
    Second choice is: first record in TXT file will be time when test start and after will be table with time [ms or us] and value.
    Text file:
    Start time: Monday 30-th February 2005.
    0,000 0.000000
    0,050 0.062791
    0,100 0.125333
    Have a nice day.
    JCC
    P.S.: I recommend you creat header of result table to text file.
    Text file:
    time [ms] U [V]
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333

  • Date and Cost formats in export toward Excel (2013)

    Hi,
    I'm trying to export Start date and Cost of my project tasks to Excel:
    File/Save as/ Excel Workbook...
    but all these date and cost data arrive in Excel with Text format. With the 2003 version, date and cost formats were well recognized.
    I'm using Project 2013 English and Excel 2013 English on a French Win 7.
    What are the settings (decimal separator...) which are needed to allow this feature ?
    Thanks

    Hi Julie,
    Thanks for your help.
    The "Convert to Number" feature works fine for the Cost.
    But the dates arrive as text with a long format such as "03 August 2015 08:00" and the  =DateValue(Cell
    reference) function returns an error : #VALUE!
    Any idea to retrieve the dates?
    Thanks again

  • Data in table does not export to Excel

    Why the invoke node Export Data to Excel produces empty Excel sheet with no data?
    If I manually highlight the table control on the Front Panel, then run the VI again, data get exported. How does one highlight data in the table automatically?
    Solved!
    Go to Solution.

    murchak,
    I think this is happening to you because of the LV data-flow paradigm.  If your screen shot is all that is on your block diagram, then the Invoke Node actually executes first, when there isn't any data in the table. Then, the "Table Control" 2D array is populated after an empty table has been exported. When you run the VI again, the data from the first run is already populated within the table, and thus the it *appears* to working.  In actuality, it was working correctly the whole time, but the first time there was just no data to export because it executed first.
    You must use data flow (wires, essentially) to ensure that the data is written to the table first before the data is exported to Excel second.  A flat sequence structure or error wires (preferred) can help:
    Hope this helps,

Maybe you are looking for

  • Problem with sound capture on a Packard Bell

    Hello, recently I have acquired a Packard Bell EASYNOTE MX61-B-054PT notebook to replace my dead Asus. Everything is working quite well except for sound capture from the microphone. There is a periodic noise that I can't get rid of (the noise I'm tal

  • How to setting WBS display options in CJ40 or CJ30

    Hi,     I hope default using description when I maintain cost plan in CJ40, WBS element display is description .     Thanks!

  • Date mapping 2 dates to 0calquarter

    Hello BI experts, BI 7.0, I mapped  Date1 & Date 2 to 0calquarter based on a condition at field level. Code: IF DATE1< 01jan2010       RESULT = DATE1.     ElSEIF  DATE2>= '20100101'.       RESULT = DATE2.     ENDIF. But when i give DATE1 = 13.03.2010

  • HR TEM - Prebooking with notes

    Hi Experts, When we prebook an attendee with note for a business event type and if we cancel its prebooking and prebook that same attendee for the same business event type again we get the text from the previous prebooking in the note. Even if the se

  • Any input methods to get strings or integers?

    I'm looking for an imput method to get a string or an integer from the command line. If anyone would help me and give me a command to do this, it would be much appreciated. Also, to include source would be nice too.