Display Content of a RPT file

I am trying to create a link from a report to show the contents of a text file.
I have created a "File System Data" data source and have specific filter rules in place to limit the files that are listed.
What i need to do is show the content of the files on click. Is there a way to do this without opening the file through a hyperlink?
Many thanks for your help.
Regards

There are a few steps missing from the "How To"
After you have created the first reoprt and you have added the subreport,
Main Report
1. The sub report link needs to be placed in the details section of the main report.
2. Right click on the sub report link and open "Format subreport", this will bring up the properties page, you need to make the Link
    A. On the subreport tab, ensure on demand subreport is clicked and also re-import when opening.
    B. On the Common TAB, ensure Can grow is checked.
3. Ensure you have added onto the main report details - "File Name"
4. Right Click on the subreport and open Subreport Links. Ensure the subreport Links are set to use "File Name" to link to the   parameter of the subreport filename.
Subreport.
Add the following field to the details section of the subreport. "Field_1"
Notes:
I got my subreport working before connecting to the main report to ensure permissions and display were working correctly.

Similar Messages

  • Displaying contents of a text file in a text box

    As the topic describes, I need to display the contents of a
    text file in a text box. How would one go about doing this? Thanks
    in advance.

    // setting up the text format options
    var FileFormat:TextFormat = new TextFormat ();
    FileFormat.font = "Verdana";
    FileFormat.size = 12;
    FileFormat.align = "left";
    FileFormat.color = 0xFFFFFF;
    /// load in text from folder load_in , filename is text.txt
    var my_lv:LoadVars = new LoadVars();
    my_lv.onLoad = function (success:Boolean):Void{
    if (success){
    textfield.text = this.txtVarLoaded;
    textfield.setTextFormat ( FileFormat );
    } else {
    trace ("error");
    my_lv.load ("load_in/text.txt"); // load in text.txt
    peace ;o)

  • SSO ticket wont work for displaying contents of internally stored files

    Thx to the help I got here the application here is all in all running well with SSO as authentification method.
    But the application has a part where it tries to open & display files stored in the backend (e.g. Excel-Sheets, TIFs etc).
    This part was running fine with the old basic authentification, but now it opens the application and then seems to try to authenticate again (at least that's how it looks in excel as there is shown the login-dialog again).
    Any way I can work around that - at the moment it makes an important part of the application useless :\.
    Method used to display:
    gets the data, transfers it to a xstring and then sends it to the browser via:
        lf_value = lf_mimetype.
        response->set_header_field( name = 'Content-Type'
                                    value = lf_value ).
        response->delete_header_field( 'Cache-Control' ).
        response->delete_header_field( 'Expires' ).
        response->delete_header_field( 'Pragma' ).
        lf_value = lf_filename.
        CONCATENATE 'inline; filename="' lf_filename INTO lf_value.
        response->set_header_field( name = 'Content-Disposition'
                                    value = lf_value ).
        response->set_data( lf_content ).
        navigation->response_complete( ).

    Hello!
    Well first thing is, now after fooling around a bit and changing some code it works - though first method I used too was as described in I think a weblog from you for showing documents inline.
    In my case there are files of different types stored via cfolders...and my application (after login in via a copy of the system/login application) amongst other things enables a web-based search & display of these files.
    For this I fetch the contents of the file from the backend and then deliver the contents to http.
    As I said, worked with basic authentification but had troubles after switching to the login-application.
    Just my guess that it was the ticket gettin lost as i had the effect described above with excel.
    Problem is that this project after gettin display to work again was completed and so now into a new project at a different company-location & system so cant make the trace.
    Thx for helpin and sorry I had let this open - just was curious if this problem could be solved some better way then mine.

  • Easy way to add content from a last file like a word document?

    Is there somebody who can tell me how i can display content from a word file.
    I have files with content inside on my network for example a word document.
    Inside this document i've got hyperlinks to content on other pages from the same document. Is the a way or a method how i can display the content in the portal.
    Do i need to cut and paste the word content of should i save the content as a XML or a HTML document and then add the document to portal
    Regards
    Andre

    Yeah, I have an idea... Have you tried the pdf export yet? If it is already formated then that maybe the way to go. But you may need acrobat to save it in another format. If I recall InDesign renders the pdf, which would make editing the pdf in Indesign useless.
    OK, did a quick test with PDF. Load the PDF into Acrobat and save as a word file. Place the word file into InDesign and you will have the styles paragraphs.    You just have to alter the style taste, may be fix a few paragraphs if needed.

  • Unable to display the Content of a data file from within another data file in Oracle webcenter portal.

    We have a Content Presenter taskflow. This task flow is added to a jspx page. The taskflow fetches the content from the contributor data file. The contributor data file is having a WYSIWYG editor. The content of the WYSIWYG editor is being displayed correctly through the task flow.
    We have some links in the WYSIWYG editor. These links again point to some data files. When we click on these links from within the portal, then we are getting a blank page(the url of this blank page is: http://localhost:7101/eWSIBPortal/faces/oracle/webcenter/sitestructure/render.jspx?datasource=UCM%23dDocName%3AWSIB_ARTICLE) and not displaying the content of the data file that we are pointing to from the WYSIWYG editor.
    We want to display the content of these data files(which we have pointed from WYSIWYG editor) in-line within the portal.
    Please help us to resolve this issue and let us know if any information is required from our end.

    Thanks for reply. However, can I use XSQL to dump the formated text to a file? or just can display to client through web browsers?

  • Can we Read/Display the content of Word/PDF file  in Flex 3/4 ?

    Hello All,
    Can we  read/display the content of Word/PDF file in Flex 3 or Flex 4?.  I have one word file containing  Arabic  and English content with some settings like  Bold, Color, Align etc. I want to display the content of this word file as it is in the flex web application.
    Awaiting for prompt reply.
    Thanks and Regards

    thank you for your immediate reply, but,
    sorry, this does not work.
    With this code:
    <cfpdf action = "read" source = "dok_1.pdf" name =
    "mypdf">
    <cfdump var="#mypdf#"/>
    I get this result:
    Everything, but no text of the document.
    PDFDocument
    Application name of application
    Author bimbam Verlag GmbH
    CenterWindowOnScreen [empty string]
    ChangingDocument Allowed
    Commenting Allowed
    ContentExtraction Allowed
    CopyContent Allowed
    Created D:20080710
    DocumentAssembly Allowed
    Encryption No Security
    FilePath [empty string]
    FillingForm Allowed
    FitToWindow [empty string]
    HideMenubar [empty string]
    HideToolbar [empty string]
    HideWindowUI [empty string]
    Keywords [empty string]
    Language [empty string]
    Modified [empty string]
    PageLayout SinglePage
    Printing Allowed
    Producer [empty string]
    Properties [empty string]
    Secure Allowed
    ShowDocumentsOption [empty string]
    ShowWindowsOption [empty string]
    Signing Allowed
    Subject [empty string]
    Title Rheinische Angler-Zeitschrift
    TotalPages 1
    Trapped [empty string]
    Version 1.3
    Maybe i do not understand the cfpdf tag the right way.
    What i want is a kind of pdf-to-text conversion.
    Do I have to use the processddx action? I do not think so.
    But there is a property DocumentText .. ?

  • File type .cbv displays contents rather than gives download options

    I've just changed website hosting supplier; both old and new suppliers run Linux services.
    My site is scottishcca.co.uk - a correspondence chess site - and I'm using Win7 and Firefox 26.0.
    There's a page (members/downloads) where members can download e-magazines and files of chess games - the page is password protected using htaccess/htpasswd which works ok.
    Each e-magazine has 4 download links: pdf, zip and pgn all work correctly, but cbv does not - it just displays file contents in the browser page. What should happen is that the browser should bring up a dialogue box asking if the file should be opened with ChessBase 11 Database Software (which is associated with the .cbv file type on my computer - I checked my Default Program settings). The .pgn file type is also associated with ChessBase 11 Database Software and works correctly - the dialogue box allows me to open or save.
    All the links work correctly when I use Google Chrome.
    I'm puzzled - advice please!
    Iain

    Firefox generally assesses what to do with web content not by the file extension but by the content type header sent by the server. To see what the server is sending, try using Firefox's Web Console.
    After opening the page with the link, open the Web Console (Ctrl+Shift+k), then click the link. The URL should appear in the console. If you click it, Firefox will display the Request and Response headers. Check the Response Headers for the content-type. My suspicion is that Apache doesn't know what a CBV file is, so it is sending "text/plain" or "text/html" which Firefox is dutifully obeying.
    To send the correct content type for this media, you can use AddType in your .htaccess file. (You can search for advice on this from sites that help webmasters or on Apache's site.)
    ''Note: If the link to the CBV has a target attribute to open in a new tab, you need to drag the link to the address bar and drop it there, or copy the link and paste it there and press Enter, to get the URL to appear in the Web Console for the current tab.''

  • Want to display the contents of a text file in a jsp

    hi
    i am new to jsp, i want to display the contents of a text file in a jsp file ,whenever jsp file is loaded from browser.
    -thanx

    i had come up with the code
    <!-- form.jsp -->
    <%@ page import="java.io.*, java.lang.*" %>
    <%@ page language="java" %>
    <html>
    <head>
    <title>Display</title>
    </head>
    <body>
    <%
    String sample[100];
    String line;
    %>
    <%! int i=0; %>
    <%!File f1 = new File("c:\\file.txt"); %>
    <% try { %>
    <%!FileReader fi = new FileReader(f1); %>
    <% } catch(FileNotFoundException io) { } %>
    <%!BufferedReader in = new BufferedReader(fi); %>
    <%
    while((line=in.readLine())!= null)
    sample= line;
    i++;
    in.close();
    %>
    i will display sample here
    </body>
    </html>
    but i am getting error
    display_jsp.java:16: unreported exception java.io.FileNotFoundException;
    must be caught or declared to be thrown
    FileReader fi = new FileReader(f1);
    ^
    plz help
    -thanx

  • Where is the path of default.css the .rpt file

    I'm trying to use CSS in my report file, I in research on the internet see much talk of "set css class" I know I can assign this way the NAME of the css class, but I want to change the file CSS in itself, where it is? which the 'path' of him
    and where I find this way in the file?
    I'm using MVC C # to load the file and export in stream that converts PDF to display in the browser.
    To create the file I use Crystal Reports for VS2013 and within the own VS I create the rpt file
    Looking into this rpt the way for the much-talked 'default.css' you see in the internet research.
    wanted to change the path or know where it is to include classes on it.
    thank you

    Hi Ludvig,
    Thank you for posting in MSDN forum.
    Since this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. About you said the
    path of default.css for the .rpt file issue, I suggest you can ask your issue directly on SAP Crystal Reports:
    http://scn.sap.com/community/crystal-reports/content?filterID=content~objecttype~objecttype[thread] for
    better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Crystal Reports exception: "failed to load database information" error in file guid.rpt file

    Please also see attachment (same info as below).
    Background
    This code works in windows XP (32 bit), using/complied VS2005 with no problems.
    Please contact:
    Hamid Deljoo at work 416-867-8977 (8am to 4pm EST)
    Problem is:
    We are migrating this code from XP to windows 7 (using win7 64bit for development to be deployed on win7 PCs 64bit).
    When trying to display a crystal report (.rpt) an exception is raised.
    Exception info is:
    CrystalDecisions.CrystalReports.Engine.DataSourceException was unhandled by user code
      Message=Failed to load database information.
    Error in File wbstats {CC56070D-0873-4815-BAD5-0DA0FBAEDCB6}.rpt:
    Failed to load database information.
    Source=CrystalDecisions.ReportAppServer.DataSetConversion
      StackTrace:
          at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
          at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
          at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
          at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
          at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)
          at net.bmogc.cas.ui.ReportViewer.LoadStatsReport(String warmBodyCode) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\ReportViewer.cs:line 739
          at net.bmogc.cas.ui.WarmBodyManage.Stats() in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\WarmBodyManage.cs:line 873
          at net.bmogc.cas.ui.WarmBodyManage.CASAuthgation_ToolStripItem_Click(Object sender, EventArgs e) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\WarmBodyManage.cs:line 593
          at net.bmogc.cas.ui.CASAuthgation.<>c__DisplayClass15.<CreateToolStripItem>b__14(Object sender, EventArgs e) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\Common\CASAuthgation.cs:line 1242
          at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
          at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
          at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
          at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
          at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
          at System.Windows.Forms.Control.WndProc(Message& m)
          at System.Windows.Forms.ToolStrip.WndProc(Message& m)
          at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
          at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
      InnerException: System.Runtime.InteropServices.COMException
          Message=Failed to load database information.
    Error in File wbstats {CC56070D-0873-4815-BAD5-0DA0FBAEDCB6}.rpt:
    Failed to load database information.
          Source=""
          ErrorCode=-2147482931
          StackTrace:
                at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
                at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
          InnerException:
    Background info is:
    Vs2013 (update 3, latest version) is used.
    Installed:  Crystal Reports, Support Pack 10 (v. 13.0.10.1385), using 64 bit
    VS2013 build settings.

    What database are you using?
    What database client?
    How are you connecting to the database (ODBC, OLE DB, etc.)?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Using JTables to display data from a text file

    How do I display data from a .txt file into a column inside a JTable?

    dont quite get the "vectors" part..
    by the way, my program is as follows
    * Damn Java ..
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    public class ScoreBoard extends JPanel {
    private boolean DEBUG = false;
    public ScoreBoard() {
    super(new GridLayout(1,0));
    String[] columnNames = {"Player's Name",
    "Time Completed",
    "$ Amount Earned $"};
    /* Object[][] data = {
    {"1",
    new Integer(5), new Integer(500)},
    {"2",
    new Integer(5), new Integer(3200)},
    {"3",
    new Integer(5), new Integer(1000)},
    {"4",
    new Integer(5), new Integer(100)},
    {"5",
    new Integer(5), new Integer(200)},
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(600, 90));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this panel.
    add(scrollPane);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("ScoreBoard");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    ScoreBoard newContentPane = new ScoreBoard();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    and i want to display the player name from a textfile.txt to the player column instead of hardcoding it like above. Thanks!

  • 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.

  • To Read the contents of the properties file which is located in webserver

    Hi,
    I have one requirement where I have to read the contents of a property file which is located in some path in server. Say for example, when you click on link abcd then contents of abcd.properties file should be displayed in one text view in webdynpro . I am trying to implement this in webdynpro for java. The main thing is like I am not able to retrieve the server path of the file and hence not getting the file contents. I tried using methods like  getApplicationPath() or getRealPath() but its not working. So can you guys please help me on to how to read the server file contents.
    Thanks and regards,
    Sai

    Hi Romano,
    Thanks a lot for your reply. However, I forgot to mention one thing in my question. Its like the path will be different everytime. Say, we have systems like development, acceptance, production. So when the user clicks on the link abcd, it should take the path of development system and similarly when the user clicks on the link in acceptance or production, the path will be different. say for example, in development the path will be
    usr/cluster/dev/abcd.properties but it acceptance it will be usr/cluster/acc/abcd.properties. So just want to know whether this will work? Anyway, I will give this a try.
    Thanks once again,
    Sai

  • Changing content type of xml file to pdf

    Hello,
    I have an xml file (extension is *.xdp) which can locally be opened with Adobe Reader and displays as a regular pdf file. Adobe has a technology that allows xml to be merged with a pdf shell, and thus populating the pdf file with the values retrieved from the xml file.
    My issue is that I want this to be done on an application server level (jboss in particular). In a servlet, I stream the xml file for the contents to be printed out within a browser (IE). I specify the content type to be application/pdf, however, the data is not being displayed within Adobe Reader, but rather as a regular xml file.
    Any help is greatly appreciated. Here is the code below:
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "max-age=30");
    response.setContentType("application/pdf");
    ServletOutputStream out = response.getOutputStream();
    byte[] fileBytes = readFile();
    out.write(fileBytes);

    Yes, the xml does contain a reference to the shell pdf. This works fine if I do so manually (open the xml file using Adobe Reader). However, through a browser, it seems that the forced content type is completely ignored:
    <?xml version="1.0"?>
    <?xfa generator="XFA2_0" APIVersion="1.4.4127.0"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
    <xfa:datasets xmlns="" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    <xfa:data>
    <DocRoot>
    <Cldemographics<Cldatecreated>7/21/05</Cldatecreated...
    </DocRoot>
    </xfa:data>
    </xfa:datasets>
    <pdf href="/opt/jboss-tomcat-server-build-4.0.0-2/.../pdfShell/Shell.pdf"
    xmlns="http://ns.adobe.com/xdp/pdf/"/>
    </xdp:xdp>

  • 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

  • Flickering black boxes on CS6 with Macbook Pro Intel Iris

    I'm experiencing a flickering black box whenever using large brush sizes on Photoshop CS6 using a Macbook Pro (16GB RAM, 2.8 GHz i7, Intel Iris, Late 2013 13") similar to what is shown on: black flickering boxes on Vimeo.  The issue stops if you: Pre

  • Word 2008 for Mac: Hyperlinks

    I am using Word 2008 for the MAC.  I would prefer to use pages but pages cannot save active hyperlinks as a pdf file.  at least I do not know how to do that. I am creating a large document for a genealogical history of many people.  Each person has t

  • UsingOffice pro in sony xperia arc

    How to use office pro in sony xperia arc & further how to open word documents & excel, acrobat pdf files in this office pro. We have downloaded the software but how to use it.. please reply

  • I get an error message when I double click on Firefox... It says an application is already running and I need to restart my computer

    I get an error message when I try to re-launch Firefox. I believe I have closed it out. When I try to launch the application it gives me an error message saying it is already running. it tells me I need to restart the computer

  • Using Classes within Vector

    ok, I writing a bank program where a user types in a string which is then broken into tokens. The tokens are separated using .nextToken( ) and the first token is used to determine what command the user wants to perform. My problem is that I am trying