Modify existing .rpt file permanently

Hello,
I need to modify an existing rpt template not at runtime but permanently in order to create a  new template.
Could you tell me how to do that?
Thanks.

Hello
I am using RAS SDK and my rpt files have been created with Crystal Report 9.
I have similar problem than in the folowing post: why the properties cannot be set and saved?
I can see my modifications at runtime, but the saveAs() method does not save modifications in my new template.
What should I do to save my modification permanently?
Thanks

Similar Messages

  • Modifying existing jar file, how?

    Hi there,
    I have a problem trying to modify an existing jar file. When I want to create a jar file, I use something like:
    REM build the application on windows, assuming the java/bin
    REM directory is in the path environment variable
    REM application is just the directory I am using
    SET cp = c:\application\TestApp
    javac -classpath %cp% TestApp.java
    REM ****************************************
    REM do packaging and adding manifest
    REM ****************************************
    jar cvfm App.jar manifest.mf TestApp*.class
    REM ****************************************
    REM run the jar file
    REM ****************************************
    javaw -jar App.jar
    But now, I have an existing jar file (swingall.jar) and I want to modify a class within that file. So, I modified the .java file, and compiled it to get my new class file.
    And the question is, how do I modify the existing file, so that I keep everything the same, except the modified class?
    Thanks
    Fernando

    I have just found out that I can't use "u". It seemsthat's only
    possible with older versions of jar.Huh? I'm using the 1.4.2-b28 jdk, it's still there,
    and I don't see how it could ever possibly be
    removed.
    Type:
    jar
    with no arguments to see all the options to jar.I already did, to double check it, and this is what I got:
    C:\Documents and Settings\Fernando Sanz>jar
    Usage: jar {ctx}[vfm0M] [jar-file] [manifest-file] files ...
    Options:
    -c create new archive
    -t list table of contents for archive
    -x extract named (or all) files from archive
    -v generate verbose output on standard error
    -f specify archive file name
    -m include manifest information from specified manifest file
    -0 store only; use no ZIP compression
    -M Do not create a manifest file for the entries
    If any file is a directory then it is processed recursively.
    The manifest file name and the archive file name needs to be specified
    in the same order the 'm' and 'f' flags are specified.
    Example: to archive two class files into an archive called classes.jar:
    jar cvf classes.jar Foo.class Bar.class
    Note: use the '0' option to create a jar file that can be put in your CLASSPATH
    Thanks for trying with jdk 1.4, I don't have it installed in my computer right now, so I'll try tomorrow with another computer at Uni.
    Thanks!

  • Modify existing excel file (POI API)

    Hi All,
    Can anybody give me a reference to an example to update/modify an exsiting excel file in java.
    For creation of excel file I am using POI API. But not getting how to update an existing excel file
    using POI API.
    I'll be thankful for your help.
    Regards
    Naz

    Tabbasum wrote:
    Hi All,
    Can anybody give me a reference to an example to update/modify an exsiting excel file in java.
    For creation of excel file I am using POI API. But not getting how to update an existing excel file
    using POI API.
    I'll be thankful for your help.
    Regards
    NazYou do know that the poi.apache.org site has some nice examples, don't you?
    http://poi.apache.org/spreadsheet/examples.html
    Many other examples exist on the Internet; Google is your friend.
    Hope that helps, Naz.
    Regards,
    Jay-Z

  • Modifying old RPT files

    Hello, I have an old RPT file (ver.8.0) I have to modify.
    BTW I have to do just a few changes - take away a column, put some restyling on some other columns.
    I have CR on VS2013, I can open the RPT file, easily modify it, but when I save it it gets moved to the new format (14.0) and the old application that embeds the report cannot use it anymore.
    I do not have any chance to modify the app. Is there any way to save the modified file in the old original 8.0? Thank you in advance for any help. Flavio R.

    That is the tricky part of all of this. I don't think SAP sells these anymore - after all CR 8.5 has been out of support for over 10 years...
    But you can check with SAP sales. Ph: 866-681-3435 or 1-800-677-7271
    Worldwide Office Locations | SAP
    On occasion you will see someone selling CR 8.5 on Amazon etc., so googling for it may not hurt. But that is is for CR 8.5 options.
    One other option would be to see if SAP Sales or someone else can sell you CR XI R2 (v. 11.5.x). Then update the app to use the CR XI R2 runtime, modify the reports in the CR XI R2 designer and voila... reason I mention CR XI R2 is because that is the last version of CR to ship the Report Designer SDK - if that is the SDK your app is using. It may be using older SDKs like Print Engine APIs or OCX in which case you're stuck with CR 8.5.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow me on Twitter

  • Modify existing XML file

    Ok I really need some help...What is the JAVA code that i need to add something to an existing XML file. Basically, I want to add a new tag at the end of another one. So I need to search the XML file for the end of one tag, and then add a new tag after that one. Please help.

    Sounds like you think it's simple. There is a set of XML tutorials here:
    http://java.sun.com/webservices/docs/1.0/tutorial/index.html
    You probably need the one titled "Document Object Model" but it may help to read some of the others too.

  • HOW DO I MODIFY EXISTING PDF FILES USING JAVA

    I HAVE CHECKED SOME OF THE THIRD PARTY SOFTWARE, HAS ANYONE DONE THIS BEFORE, IF SO PLEASE HELP

    ...which ones?

  • Take an existing text file and modify values

    I’m looking to take an existing text file and modify certain values inside of it. Then save it to a new file, with all the same formatting as the original. The file format is not uniform and can change.
    Basically the file is:
    Random numbers and letters of unknown length for an unknown number of lines.
    Label="Test_#"
    Description
    String
    X=123
    Y=456
    Z=-789
    20 lines of strings with numbers in them
    Label="Test_#2"
    Description
    String
    X=-1232
    Y=4562
    Z=7892
    Then it repeats a set number of times.
    I want to modify the X Y and Z = values for each Test_#.
    I’ve managed to import the important values into a numeric array and I have a different array with values that will replace the existing ones. I’m having troubles replacing the existing ones. There are no zeros before or after the existing numbers so they are all different lengths.
    If anyone has any sample code that does anything similar please post it. I’m sure someone has done something like this in the past. 
    Solved!
    Go to Solution.

    I just thought I would throw this out there.  Can you make the .txt file tokenized?  This would make searching for specific parameters much easier.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • Modify Query in an Existing RDL file

    How do I modify sql statement in an existing rdl file?
    I have opened up the rdl file in VS 2013 and able to modify the report but do not know how to modify the query; the Datasource property doesn't seem to give me an option.

    Hello,
    Of course you can modify the query, but not in "Datasource", you find the queries in the (may serveral) "Dataset" definition.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Proper way to modify existing files?

    Hi! I'm writing a small package for my own purposes to install some keyboard options I want to add to X. I am adding some files to /usr/share/X11/xkb/, but I also need to modify /usr/share/X11/xkb/rules/evdev, /usr/share/X11/xkb/rules/evdev.lst, and possibly /usr/share/X11/xkb/rules/evdev.xml. The modifications are small -- two or three lines generally, but I'm not sure what the best way to make these modifications are.
    Based on what I can find on the wiki, I can proceed one of two ways:
    * I can create a patch for the files, apply the patch during build() to the source files, and then put them into the package to replace the existing files.
    * I can add a .install file, which either applies the patches after install, or uses echo ... >> to add the appropriate lines to the files.
    I'm not sure if I'm missing something, or what the best way to apply these changes is? Which of these options is the cleanest to back out of? And how does pacman handle possible interactions with other packages that might want to modify the same files?
    I'm tempted towards the second option because if I use the various hooks it might be easier to back out of the changes?
    Thanks,
    Ricky

    Neither of these are sane ideas. If you want to modify files which are owned by a package (any package) and not part of the backup array, you have a few options:
    1) rebuild the package owning the files with your changes. you'll have to do this for every release.
    2) rebuild the package with those files in the backup array. now you're free to change them and they won't be clobbered on upgrade. But, you'll still need to do this every release.
    3) change the files anyways, and add them to NoUpgrade in /etc/pacman.conf
    package install scriptlets are not meant to be used to arbitrarily modify files.

  • HT1391 How does one delete apps or files from iCloud Permanently so I may re-download without retrieving existing cloud file?for example the U2 Marketing fast , an Album I have no interest in...is now in my Cloud.. How can I remove this File from iPhone &

    How does one delete apps or files from iCloud Permanently so I may re-download without retrieving existing cloud file?for example the U2 Marketing fast , an Album I have no interest in...is now in my Cloud.. How can I remove this File from iPhone & cloud

    Hey there Matt.dvs1,
    Although there is not a way to remove past purchases from your iTunes account completely, you can hide them so that you don't have to see them if you don't want to. This article will help you do that:
    iTunes Store: Hiding and unhiding purchases - Apple Support
    Hide your purchases
    Open iTunes on your Mac or PC.
    From the Store menu, choose Store > Sign In, and then enter your Apple ID and password.
    Go to the iTunes Store.
    Click Purchased from the Quick Links section on the right side of the iTunes Store.
    Choose a content type by clicking Music, Movies, TV Shows, Apps, or Books from the top of the window.
    A list of your purchased items for the content type you are viewing will appear. Mouse over the item you want to hide until an X appears its top-left corner.
    A confirmation dialog will appear once you click the X.
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Modifying an existing illustrator file

    Hello,
    I am new to illustrator and i am trying to modify specific illustrator files. In the files i am trying to modify there is grapfics and some text written on the designs. I can select the text separately but unable to modify those. Can you help?
    The only option which i have is to delete them and write a new text there, but that process takes a lot of time, i was wondering if you know of any easier way.
    Thanks,

    Considering you are new to the application, and the file(s) in question did not originate with you, we can only guess why you're having trouble.
    So first, we'll have to determine whether you've got live text, or text that's been converted to outlines...
    When you select a piece of text, does it look like this?
    (That's live text.)
    Or like this?
    (Text that has been converted to outlines...not editable as text.)

  • How can I tell infoview to pick-up my modified rpt file from a path

    I've installed BO XI which uses mysql. I need to make changes in a rpt file and deploy it to see the effect. Can anyone please help me in how to configure "infoview" to pickup a rpt from a folder rather than database?

    Hello Chris,
    as you mentioned Infoview I recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Over 12 minutes required to merely OPEN a .rpt file in Crystal Reports version 8.5

    Post Author: Rob Kramar
    CA Forum: General
    Background: Our division has 3 networked, but geographically dispersed, plants; each plant runs MS SQL Server and Crystal Reports on local servers.  A rather complex (version 8.5) Crystal Reports .rpt file (main report plus 12 subreports) exists and executes in one of our distant plants against a MS SQL Server database located there.  I copied that .rpt file to my local server (CTXB) which has Crystal Reports 8.5 installed and which I can access via Citrix from my PC.  I "repointed" that report to our local MS SQL Server database (located on a different server [CTXA] on my local network) [which uses the same database schema as the database in the other plant] by setting up a new ODBC  driver, using the Convert Database Driver function, and using the Set Location function.  I applied these changes to the main report and each of the subreports individually.  I dropped all the links in Visual Linking in the main report and in each of the subreports and recreated each link.  I did a Verify Database on the modified report (which appeared to check the main and each of the 12 subreports).  I ran the report within Crystal Reports v8.5 and verified that the output is correct based on my local MS SQL Server data (on server CTXA).  I saved the .rpt file on server CTXB and exited Crystal Reports v8.5.  I did all the above work on server CTXB via Citrix from my local, networked PC.
    Problem: When I try to reopen the .rpt file in Crystal Reports v8.5 (via Citrix on Server CTXB) it consistently takes over 12 minutes to merely open the report.  Once opened, it executes with acceptable speed within Crystal Reports v8.5 and produces accurate results.
    Note: If I compile the report in v8.5 on server CTXB (via Citrix), and attempt to execute the compiled report on CTXB (via Citrix), the popup with the u201CPrintu201D, u201CDoneu201D, and u201CAboutu201D buttons appears immediately, but an hourglass also appears that prevents me from clicking the u201CPrintu201D button for over 6 minutes.  Once the hourglass disappears, that popup works normally and the report executes with acceptable speed (about 4 seconds) after I click the u201CPrintu201D button for a single execution.  If I then close the output display window and try to immediately rerun the report (from the u201CPrintu201D, u201CDoneu201D, u201CAboutu201D popup which is still visible) by clicking the u201CPrintu201D button, the hourglass returns again for another 6+ minutes.  A third such iteration results in an u201Chourglass lockoutu201D of over 6 minutes.
    Note also: I can open that same .rpt file (stored on server CTXB) in Crystal v7.0 on my local PC, and it opens in less than 5 seconds.

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • Import/translate .rpt file

    Post Author: f'lar
    CA Forum: Crystal Reports
    I work for a medical billing company.  We take reports from our
    clients, import them into our system, and then bill insurance or
    patient as appropriate.  I'm a programmer who is responsible for
    writing routines to parse the various formatted files from our
    clients.  I have never used crystal reports.  We have two
    clients that send us .rpt files. Of those two sets of .rpt files, one
    set is human-readable if I open it in a text editor, so it's no big
    deal.  The other I have no idea.  We have a windows 2000 machine that
    we leave running all the time that was set up by a previous programmer
    that converts the .rpt files to a usable format (I'll accept .txt,
    .csv, .xls, .rtf, or .pdf, among others).  I'm not real happy with this
    solution because if that machine dies we're up a creek, but this is the
    way it's always been.  We can't get the program that runs on that
    machine to work on any of our other machines (windows xp or server
    2003).
    I've tried several things to open the .rpt files myself,
    including several variety Visual Studio projects and (free or trial)
    3rd party viewers.  The result is always that whatever application
    tries to open the file hangs, and I have to kill the process.  I was
    finally able to get a file to display something reasonable in Visual
    Studio by creating a new report using one of my existing files as a
    template.  But it's just the layout and formulas for the file rather
    than any actual data.
    Eventually I had a breakthrough, where I got a dialog box asking
    me for connection information for a sql server on the clients network.
    I shouldn't need to use this connection, since all the data I care
    about is in included in the files from the client.  I was able to avoid
    the crashes by supplying real (but incorrect)  sql server connection
    info.  At least then I could look at the design view in Visual Studio.Based
    on that I on this I have a small program that attempts to load a file
    with the template I made and export it to rtf.  Unfortunately, it's not
    working.  First of all, it takes over a minute to load the file,  I
    figure that is mostly waiting for a timeout from my incorrect database
    (which I don't need).  In fact, each individual property access takes
    that long.  When it's finally loaded when I try to export it will give me an error about parameters. I can
    see the parameters in the design view, but I can't remove them because
    of dependencies I don't know how to find. I worked up some code so that it will prompt me, but If I go ahead and enter
    parameters manually (I will need this to be automated) it will eventually
    just hang completely (I left it overnight with no progress) on
    the ExportToDisk statement.Like I said earlier, I have not used Crystal Reports before.  I don't even know which version is used to create the .rpt files.  I would really appreciate any tips on how to convert these files into a usable format.  I get the feeling I'm going about this the hard way, and there must be something simple I can do to just tell the CR engine to use the file as the datasource.Some additional InformationI sometimes see this error message:Error in formula  <CompletedDate>. 'stringVar sDTTM := CStr({vusrPatientExamInfo.CompletedDTTM}, 'MM/dd/yyyy h:mm tt');'The remaining text does not appear to be part of the formula.I considered the possibility that the windows 2000 machine was set up to know how to connect to the client's database mentioned above, but I looked into that and this isn't the case.  We've been getting these reports from the client for a long time, and it's more likely I'm seeing an old version of crystal reports the the new system doesn't know how to use but the older version on windows 2000 works just fine.  Again, I know nothing so feel free to contradict that if you have a fresh insight. Thanks in advance, and wish me luck posting a question to any discussion board on a Friday evening  

    Post Author: f'lar
    CA Forum: Crystal Reports
    I've been checking around google, trying some things, and I think I've made some progress.  I did some investigating on the win2000 machine's file system.  I'm pretty sure now these are version 8.5 files. Also, I was able to grab some .dlls from the machine (notably crxadrt.dll) and register them locally.  Adding a reference to that dll in a visual studio project and I was able to build this code:Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load        Dim a As New CRAXDRT.Application        Dim r As CRAXDRT.Report = a.OpenReport("C:\a.rpt")'        r.MorePrintEngineErrorMessages = False        r.EnableParameterPrompting = False'        r.ExportOptions.FormatType = CRAXDRT.CRExportFormatType.crEFTText '8        'r.ExportOptions.FormatType = CRAXDRT.CRExportFormatType.crEFTPortableDocFormat '31'        r.ExportOptions.DestinationType = CRAXDRT.CRExportDestinationType.crEDTDiskFile ' 1        r.ExportOptions.DiskFileName = "C:\a.txt"        'r.FormulaSyntax = CRAXDRT.CRFormulaSyntax.crBasicSyntaxFormula        r.FormulaSyntax = CRAXDRT.CRFormulaSyntax.crCrystalSyntaxFormula'        r.Export(False)End SubIn that code, "a.rpt" is an actual file I've copied locally and renamed to avoid having to type the long name so much.  You can also see that I've been playing with some of the options to see if anything helps.  It runs all the way up the last line ( r.Export(False) ) at which point I get a "COMException was unhandled" exception with this error message:"The remaining text does not appear to be part of the formula."The good news is that it runs nice and quick with no requests to access a database and without my bastardized template from the earlier scenario.  Also, it's consistent with the last piece of advice I got (a function referring to a missing dll).  So my question still stands- how do I find this mystery dll?  I've been looking around the windows 2000 machine and I can't find anything obvious.

  • Unable to connect the server, while open the rpt file in server from java.

    Hi,
    I have written one java class, that class deployed in solaris server. The BO server is avilable in another solaris server. i want to convert the rpt file to pdf format. for that i try to give the file path to the server for opening the rpt file, that time i got the follwoing error:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    Unable to connect to the server: uinbrdcsap02. --- Connection refused
    (errno:239)---- Error code:-2147217387 Error code name:connectServer
            at
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwR
    eportSDKServerException(Unknown Source)
            at
    com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.connect
    (Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.z.a(Unknown Source)
            at
    com.crystaldecisions.sdk.occa.report.application.ReportAppSession.int(Un
    known Source)
            at
    com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initia
    lize(Unknown Source)
    *My java code is the following ..*
    package com.ramco.report;
    //Crystal Java Reporting Component (JRC) imports.     
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.ByteArrayInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ByteArrayOutputStream;
    import java.sql.Connection;
    import java.sql.CallableStatement;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.text.SimpleDateFormat;
    import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
    import com.crystaldecisions.sdk.occa.report.exportoptions.ExportOptions;
    import java.util.Calendar;
    import java.util.Properties;
    import org.apache.log4j.Logger;
    import org.apache.log4j.SimpleLayout;
    import org.apache.log4j.FileAppender;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    // Class file starting.
    public class StandardReconReport
         private Connection objConnection = null;
         private DBConnection dbconnection = null;
         private ByteArrayInputStream byteArrayInputStream =null;
         private FileOutputStream fileOutputStream = null;     
         private ByteArrayOutputStream byteArrayOutputStream = null;
         private CallableStatement callablestatement = null;
         private CallableStatement callablestatement1 = null;     
         private ResultSet resultset1 = null;
         private ResultSet resultset = null;
         private String Deal_No = null;
         private String Job_Date = null;     
         private String Reportservername = null;
         private SimpleLayout layout   = null;
         private FileAppender appender = null;
         private Logger logger            = null;
         private String     DateTimeFormat = null;
         private String Report_File_path =null;
         private String Pdf_File_Name = null;     
         private Properties properties = null;
         private String LogFilePath = null;
         private String FileName = null;
         private String FullLogFilePath = null;
         private Statement statement = null;
         private String Report_upload_path = null;
         private String StanReconDir = null;
         private String winandsol = null;
         private com.crystaldecisions.sdk.occa.report.application.ReportClientDocument  reportClientDoc = null;
         private int count_tmp=0;
         private String DATE_FORMAT = null;
         private String dateformat = null;
         private Calendar cal = null;
        private SimpleDateFormat sdf = null;
        private String reconfilename = null;    
         // Method for Generating Report.....
         private void stanReportGeneration()
              try
                   properties = new Properties();
                   properties.clear();
                 properties.load(new FileInputStream("GeneralInfo.properties"));
                 Reportservername = properties.getProperty("reportservername");
                 reconfilename = properties.getProperty("reconfilename");
                 layout = new SimpleLayout();
                   LogFilePath = properties.getProperty("logfilepath");               
                   dateformat = dateTime1(properties.getProperty("dateformat1"));
                   StanReconDir = properties.getProperty("stanrecondir");
                  winandsol = properties.getProperty("windowsandsolaris");        
                  if (new File(LogFilePath).exists())
                       LogFilePath = LogFilePathdateformatwinandsol;
                       if (new File(LogFilePath).exists())
                       else
                            new File(LogFilePath).mkdirs();
                  FileName = "STANRECONLOGFILE-";             
                  FileName = FileNamedateformat".txt";             
                  FullLogFilePath = LogFilePath+FileName;
                  appender = new FileAppender(layout,FullLogFilePath,false);
                 logger = Logger.getLogger("MyLogger");
                 logger.addAppender(appender);
                 DateTimeFormat = properties.getProperty("datetimeformat");       
                 logger.info("The Start Recon Report Start Time: " +dateTime(DateTimeFormat));             
                 logger.info("");            
                 try
                      InetAddress address[] = InetAddress.getAllByName(Reportservername);                 
                     for (int i=0; i<address.length;i++)
                          logger.info("Report Server Name: " + address<i>.getHostName());
                          logger.info("Report Server Address: " + address<i>.getHostAddress());
                          logger.info("Report Server Canonical: " + address<i>.getCanonicalHostName());
                 catch (UnknownHostException e)
                      logger.error("The host "Reportservername"is not avilable");
                 Report_File_path = properties.getProperty("StandardReconReportpath");          
                  logger.info("The Report File Name is : "+Report_File_path " - "dateTime(DateTimeFormat));
                  //Report_File_path="rassdk://"+Report_File_path;
                  try
                       //Getting the Database connection....
                       dbconnection = new DBConnection();
                      objConnection = dbconnection.getConnections();
                      statement = objConnection.createStatement();
                      String sqlQuery = "SELECT TRIM(PARAM_VALUE) FROM SYS_USER_PARAM WHERE COMPONENT = 'REPORT' AND LINE_NO = 1 AND PARAM_NAME = 'REPORT_DOWNLOADPATH' AND STATUS = 'A'";
                      resultset = statement.executeQuery(sqlQuery);
                      while(resultset.next())
                           Report_upload_path = resultset.getString(1);
                           logger.info("Report_upload_path from the DB: "+Report_upload_path);
                  catch (SQLException ex)
                       ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  catch(Exception ex)
                       ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  finally
                       if(statement!=null)
                            statement.close();
                       if(resultset!=null)
                            resultset.close();
                  if (new File(Report_upload_path).exists())
                       Report_upload_path = Report_upload_path+StanReconDir;
                       if (new File(Report_upload_path).exists())
                            System.out.println("Directory is avilable"+Report_upload_path);
                       else
                            new File(Report_upload_path).mkdirs();
                  Report_upload_path = Report_upload_pathwinandsoldateformat+winandsol;              
                  if (new File(Report_upload_path).exists())
                  else
                       new File(Report_upload_path).mkdirs();
                  logger.info("Report_upload_path : "Report_upload_path" : "+dateTime(DateTimeFormat));
                  try
                       logger.info("Calling the REPORT_STAN_RECON_CON SP : "+dateTime(DateTimeFormat));
                      callablestatement = objConnection.prepareCall("{call REPORT_STAN_RECON_CON(?)}");
                      callablestatement.registerOutParameter(1, oracle.jdbc.driver.OracleTypes.CURSOR);
                        callablestatement.execute();
                        resultset=(ResultSet)callablestatement.getObject(1);
                        if(resultset!=null)
                             while(resultset.next())
                                  count_tmp = count_tmp+1;
                                  logger.info("");                              
                                 Deal_No   = resultset.getString(1);
                                  Job_Date = resultset.getString(2);
                                  DATE_FORMAT = resultset.getString(3);
                                  Job_Date = Job_Date.substring(0,10);
                                  logger.info("*********** PDF Convertion Starting for a Deal No: " +Deal_No " :: "dateTime(DateTimeFormat));
                                  Pdf_File_Name = Report_upload_pathreconfilenameDeal_No"-"DATE_FORMAT+".pdf";                              
                                  Job_Date = Job_Date.replace('-', '/');
                                  logger.info("The Deal_No is : "+Deal_No " - "dateTime(DateTimeFormat));
                                  logger.info("The Job_Date is : "+Job_Date " - "dateTime(DateTimeFormat));
                                  try
                                     reportClientDoc = new com.crystaldecisions.sdk.occa.report.application.ReportClientDocument();
                                       reportClientDoc.setReportAppServer(Reportservername);                                   
                                       logger.info("Report App server Name := "+ reportClientDoc.getReportAppServer());
                                       logger.info("Report_File_path  := "+ Report_File_path);                             
                                       reportClientDoc.preCreateServerAgent(true);                            
                                       reportClientDoc.open(Report_File_path,0);                         
                                       logger.info("After opening the RTF file for : "+Deal_No " Deal_No - "dateTime(DateTimeFormat));
                                                 callablestatement1 = objConnection.prepareCall("{call REPORT_STANDARD_RECON(?,?,?,?)}");
                                       callablestatement1.setString(1, Job_Date);
                                       callablestatement1.setString(2, Deal_No);
                                       callablestatement1.setString(3,"");
                                       callablestatement1.registerOutParameter(4, oracle.jdbc.driver.OracleTypes.CURSOR);
                                       callablestatement1.execute();
                                       resultset1=(ResultSet)callablestatement1.getObject(4);
                                       String tableAlias = reportClientDoc.getDatabaseController().getDatabase().getTables().getTable(0).getAlias();
                                       reportClientDoc.refreshReportDocument();
                                       reportClientDoc.getDatabaseController().setDataSource(resultset1, tableAlias , "Result Set");
                                       reportClientDoc.refreshReportDocument();                         
                                       ExportOptions oExportOptions = new ExportOptions();
                                       oExportOptions.setExportFormatType(ReportExportFormat.RTF);
                                       byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
                                       logger.info("After exporting the report file to PDF file for the : "+Deal_No " Deal_No - "dateTime(DateTimeFormat));
                                       //Use the Java I/O libraries to write the exported content to the file system.
                                       byte byteArray[] = new byte[byteArrayInputStream.available()];     
                                       //Create a new file that will contain the exported result.
                                       logger.info("Successfully exported report to " + Report_File_path" - "dateTime(DateTimeFormat));
                                       logger.info("*********** PDF Convertion Ending for a Deal : "Deal_No" "+dateTime(DateTimeFormat));
                                       logger.info("");
                                       Deal_No   = null;
                                       Job_Date  = null;
                                  catch (SQLException ex)
                                      ex.printStackTrace();
                                      System.out.println(ex);
                                      logger.error(ex);
                                  catch (IOException ex)
                                      ex.printStackTrace();
                                      System.out.println(ex);
                                      logger.error(ex);
                                  catch (Exception ex)
                                       ex.printStackTrace();
                                      System.out.println(ex);
                                      logger.error(ex);
                                  finally
                                       if(byteArrayInputStream!=null)
                                            byteArrayInputStream.close();
                                       if(byteArrayOutputStream!=null)
                                            byteArrayOutputStream.close();
                                       if(fileOutputStream!=null)
                                            fileOutputStream.close();
                                       if(callablestatement1!=null)
                                            callablestatement1.close();
                                       if(resultset1!=null)
                                            resultset1.close();
                                       if(reportClientDoc!=null)
                                            reportClientDoc.close();
                        if(count_tmp==0)
                             logger.info("");
                             logger.info(" $$$$$$$$ There is NO DATA for generating the Report $$$$$$$: " +dateTime(DateTimeFormat));
                  catch (SQLException ex)
                       ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  catch (Exception ex)
                        ex.printStackTrace();
                       System.out.println(ex);
                       logger.error(ex);
                  finally
                       if(callablestatement!=null)
                            callablestatement.close();
                       if(resultset!=null)
                            resultset.close();
                       if(objConnection!=null)
                            objConnection.close();
                       if(callablestatement1!=null)
                            callablestatement1.close();
                       if(resultset1!=null)
                            resultset1.close();
              catch (IOException ex)
                  ex.printStackTrace();
                  System.out.println(ex);
                  logger.error(ex);
              catch (Exception ex)
                   ex.printStackTrace();
                  System.out.println(ex);
                  logger.error(ex);
              finally
                  properties.clear();              
              logger.info("");
              logger.info("*******Standard Recon Report End Time*******: "+dateTime(DateTimeFormat));
         // Getting the current date and time..
         public String dateTime(String dateFormat)
              cal = Calendar.getInstance();
             sdf = new SimpleDateFormat(dateFormat);
             return sdf.format(cal.getTime());
         //Getting the Yesterday Date and time...
         public String dateTime1(String dateFormat)
              cal = Calendar.getInstance();
              cal.add(Calendar.DATE, -1);            
             sdf = new SimpleDateFormat(dateFormat);
             return sdf.format(cal.getTime());
         public static void main(String[] args) {
              StandardReconReport  SR = new StandardReconReport();
              SR.stanReportGeneration();
    For the above code  i given the report parameter from  the property file.
    reportservername=servername
    datagenreportpath=rassdk\://C\:
    MyEclipseWorkPlace
    IDSREPORTGENERATION
    REPORTFILES
    STANDARD_RECON_REPORT.rpt
    The code is working fin, while i try to connect the BO which is avilble in Windows server, but this is not working if the BO is avilble in solaris server.
    Any bodies please help
    Edited by: velmurugan.spn on Sep 12, 2009 6:38 AM

    Hi,
    Not able to find Report - Standard templates or Report - Custom templates view in Administration - BIP reports in Siebel 8.1.1.3?
    We have applied 8.1.1.3 patch on 8.1.1.0
    below are the steps followed
    Reports are not generated after 8.1.1.3 patch installtion.
    we have also followed to below steps mentioned for this issue in oracle support.
    "In order to resolve this behavior it is necessary to ensure that the 8.1.1.3 FixPack has been applied to the Siebel Tools installation. This will provide an additional .zip file in the REPPATCH folder of the Siebel Tools installation. Once this has been done please then follow the configuration steps as documented :
    change sysprefix to X_ before sif import and chage back to SBL_ after sif import.
    1) Import the sif files from Siebel\8.1\Tools_1\REPPATCH\12-1VMBCSV.zip
    2) Import the 4 SIF files in the following order:
    S_XMLP_REP_TMPL_02112010.sif
    SBL_XMLP_REPORT_SELECTION_FLG.sif
    Report Template BC.sif
    Report Template Registration Applet.sif
    3)Apply the DDL for table S_XMLP_REP_TMPL and compile repository
    Once the above steps have been completed the Selected Record flag will appear in the Report Template Registration views."
    we still not able to generated able to generate reports even after following above steps.
    Thanks
    Sean

Maybe you are looking for