APEX PDF Printing with DEfault OC4J in 11g

Hi,
is it possible to use the default oc4j installation that comes with 11g for PDF printing ?
I tried http://127.0.0.1:8888/ that worked
but http://127.0.0.1:8888/em failed
The examples (available from the start-page) /examples/jsp doesn´t work also.
Thanks
Marco

Hello,
What do you mean by -
but http://127.0.0.1:8888/em failed
failed how exactly?
John.
http://jes.blogs.shellprompt.net
http://www.apex-evangelists.com

Similar Messages

  • Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex  FOP.WAR

    Apex with XE10g/Tomcat 6.0.13 PDF Print with Apex fop.war/apex_fop.jsp
    Hello,
    Excuse me bad english.
    I have a problem with Oracle XE and Printing from Reports over Tomcat 6.0.13.
    I have update Oracle XE with Apex 3.1 and it works fine.
    Now i have tried to Print a report to PDF. So i have deployed the FOP.WAR from Apex Utilities under Tomcat.
    I see in Tomcat Manager http://localhost:8888/manager/html/list that the FOO
    has been deployed and is running.
    If i try to print then i get this Message down to this page.
    Can anybody give me a hint to solve this problem???
    Hint
    To resolve the problem i have installed Oracle OC4J with same Port and deployed
    the same foo.war file.
    Then works and all printing from Oracle Apex work fine and okay.
    So i thing the Apex and Oracle work correct.
    But we have a small Application so i would prefer to work with Tomcat a application Server.
    Becaus of previous Errors have copied some *.jar files to C:\tomcat6.0.13\lib
    but i thing this is not the Problem.
    18.03.2007 18:12 546.765 xml.jar
    18.03.2007 18:07 634.772 xmlmesg.jar
    18.03.2007 18:14 1.238.899 xmlparserv2.jar
    10.06.2007 22:59 674.005 xquery.jar
    18.03.2007 18:11 3.059 xsqlserializers.jar
    18.03.2007 18:14 194.691 xsu12.jar
    10.11.2005 13:13 7.043.169 tools.jar
    .... and preinstalled files
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:429)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    org.apache.catalina.connector.Response.getWriter(Response.java:604)
    org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
    org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
    org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:186)
    org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
    org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
    org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:120)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    ------------------------------------------------------------------------

    at the end of the apex_fop.jsp put the follow code just before the driver.run(); line:
    out.clear();
    out = pageContext.pushBody();
    and explanation of why this works is here:
    http://forums.sun.com/thread.jspa?threadID=5307942

  • Apex 4.2.2 PDF Printing with Apex 2.0 Listener

    We recently installed Apex 4.2 with the Apex 2.0 Listener and can successfully print interactive reports and classic reports to PDF.  I viewed Mark Sewtz PDF Printing with Apex 4.2.2 and saw how he is using third party tools to format reports.  We have also looked into the Jasper Report Integration Toolkit, but have only got it working on the Tomcat environment, not WebLogic.
    I'm trying to download a classic report in PDF format with our logo displayed at the header.  In the print attributes section, there is a section for header.  I've tried adding the following in the header section:
    <img src = "http://hr.unm.edu/common/images/unm_dept_logo.gif">
    No Logo Prints
    #APP_IMAGES#unm_dept_logo.gif
    Prints in header:
    wwv_flow_file_mgr.get_file?
    p_security_group_id=3930016164431413%26p_flow_id=106%26p_fname=unm_dept_logo.gif
    #WORKSPACE_IMAGES#unm_dept_logo.gif
    Prints in header: /i/unm_dept_logo.gif
    I've also added the logo in the report region, prior to the columns printing, but no logo downloads to PDF.
    Does the Apex Listener only render text?  Is there any way to get the logo to print in the header without using a third party tool?  Any suggestions are greatly appreciated.  Thanks!

    Hi,
    There are different options to include images in your PDF exports. What's important to understand though is that with the PDF export functionality we separate the formatting from the actual data. So the formatting is defined in your RTF or XSL-FO templates and the data is stored in the XML that APEX generates based on your report data. We have several formatting options exposed on the print attributes pages, i.e. you can define page formatting, dimensions, fonts, colors, etc - all of these are applied to what we call generic XSL-FO templates. Those templates are generic in that they can be used with different reports, having variable numbers of columns and variable column names. Those formatting attributes can not be used however with named column templates, such as those that you generate with BI Publisher or those third-party tools I talked about in my Blog.
    So if you want to use these formatting options, you need a generic report layout - which you get out of the box using the built-in layout. But you also have the option to create your own generic report layout (see Shared Components -> Report Layouts). When creating a custom generic report layout, you'll get a copy of the built-in layout as a starting point. Once created, you can manually modify this layout to meet your needs. As you edit this template, you'll find a number of #....# substitution strings. This is what APEX uses at runtime to fill in your formatting values as well as to assemble your generic layout based on your result set.
    Now one way to include your own image would be to add an image reference to this generic report layout. You can't use the page header or footer attributes on the print attributes page for that because the FOP rendering engine does not understand or translate HTML. It renders XSL-FO. So to add your own image reference, you need to use XSL-FO mark-up. If you want to add an image to your page header, look for the #PAGE_HEADER# substitution string in the "Page Template" attribute of your generic report layout. You should be able to find the following:
    <fo:inline xsl:use-attribute-sets="page-header">
        #PAGE_HEADER#
    </fo:inline>
    Now assuming you have a file stored in your local images directory on localhost, you could add the following external graphic reference:
    <fo:inline xsl:use-attribute-sets="page-header">
        <fo:external-graphic src="http://localhost:8080/i/cloud.gif" content-height="scale-to-fit" height="30px"  content-width="150px" scaling="non-uniform"/>
        #PAGE_HEADER#
    </fo:inline>
    Once you're done with your chanages, save the report layout and edit your report. Go to the print attributes and select your generic report layout and then run your report page and export the PDF. Provided the APEX Listener is able to find this external image reference, it will now be included above your report in your PDF document.
    Regards,
    Marc

  • Tomcat/Cocoon/APEX PDF printing. Another issue

    Hi All,
    I am trying to implement my own custom report layout for the following simple Report query
    select e.DEPTNO, d.DNAME, d.LOC, e.ENAME, e.JOB
    from emp e, dept d
    where e.deptno = d.deptno
    The steps are the following
    1. Create Report Query
    2. Download XML file
    3. Use Stylus Studio to create XSL-FO (XSLT 2.0) based on XML data downloaded in
    previous step.
    4. Go back to Report query and upload XSL-FO file to APEX (layout name 'MyLayout' is also specified).
    Finish Report Query creation
    5. Enter Report Query again, select report layout 'MyLayout' and select Test Report
    The result is a failure with some java cocoon exception:
    org.apache.cocoon.ProcessingException: Unknown request object encountered named template : null
    Cocoon stacktrace[hide]
    Exception in StreamGenerator.generate() context://fop_post/sitemap.xmap - 17:32 <map:serialize type="xml">
    context://fop_post/sitemap.xmap - 13:33 <map:generate type="stream">
    Unable to get transformer handler for cocoon://fop_post/xsl context://fop_post/sitemap.xmap - 38:37 <map:serialize type="fo2pdf">
    context://fop_post/sitemap.xmap - 31:39 <map:transform>
    context://fop_post/sitemap.xmap - 30:38 <map:generate>
    context://sitemap.xmap - 1034:92 <map:mount>
    It seems to me that XSL-FO that I created for this layout is rejected somehow by APEX and not passed to Coccon at all.
    Guys, what am I doing wrong ? I will appreciate any help.
    Regards,
    Vadim

    Hi Mike,
    My standard printing is working nicely. That's the custom reporting that I experience problems with.
    After 8 hours of googling and 4 cups of coffee I figured out where the problem was. When you define XSL-FO file you need to 'escape' every occurence of % sign. For example you cannot define width= "100%" because APEX will pass this unchanged to Tomcat and Tomcat in turn will reject this but still passing NULL template pointer to Cocoon. Taking into consideration very poor logging capabilities one can spend hours trying to fugure out what is hapenning. APEX should be smart enough to escape characters or at least there should be a doco somewhere listing the rules you need to follow whem creating FO stylesheets.
    I must admit that the whole APEX PDF printing using Tomcat/Cocoon (and probably Fop because that's what used by Cocoon behind the scene anyway) is unfortunately a hack. Reporting does not have to be that complex.
    I would be extremely grateful if somebody can tell me what sort of XML tool is best suited to generate XSL-FO files that can be easily understood by APEX/Tomcat/Cocoon.
    Regards,
    Vadim

  • Pdf printing with linux client

    hi,
    i'm working with a SuSE 9.3 Client and I want to use PDF-Printing with the Acrobat Reader. With Windows Xp it works fine, but if i choose the PDF-Printer with the Linux-Client nothing happens. The PDF-Job exist in the cue. What do i have to do that it works?
    P.S. I`am from germany ;-)

    Thanks! But on which machine do i have to put the lp command?
    Application-Server?
    Tarantella Server?
    Client?
    I have put it on my Client! But nothinng happens.
    My PATH --> /home/me/bin:/usr/local/sgdee:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/qt3/bin
    my script -->
    me@my-notebook:~> cat /usr/local/sgdee/lp
    #!/bin/bash
    LPINFILE=/tmp/.nclp.$$
    PATH="/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin"
    export PATH
    [ -f $1 ] && mv $1 $LPINFILE
    [ -f $2 ] && mv $2 $LPINFILE
    echo "Print: $* -> $LPINFILE" >> /tmp/nclog.`logname`
    echo "/usr/bin/xpdf -display $DISPLAY $LPINFILE; rm -f $LPINFILE" | at now
    exit 0
    me@my-notebook:~>

  • PDFs print with magenta when printing in greyscale

    PDFs print with magenta when printing in greyscale

    BTW... Asking the SAME thing THREE TIMES WON'T change the answer.

  • Apex PDF printing in 11g

    Dear,
    I have Oracle 11g and APEX in Win XP machine. EM also configured.
    To get PDF printing in APEX, I should install Apache FOP.
    As per the document for PDF printing configuration, I am not getting the EM console for OC4J. (for reports and forms, OC4J is available in the same machine)
    So I should install Standalone OC4J (in the same machine). My doubts are
    Is OC4J 10g Standalone enough for Oracle 11g? (I could not find a OC4J 11g download)
    From documnets I found that this OC4J installation will install one HTTP server also. Is this conflict with any of the settings for EM or APEX?
    Is the EM which will be installed with OC4J standalone conflict with already installed EM for database? Or any method is there to use the Database EM for OC4J also?
    How to find out JAVA_HOME and J2EE_HOME?
    All these installation I made using the OTN downloads.
    with regards
    -mathews

    Hi Mathews
    This looks much easier than the manual configuration that I had to do.
    To get to the OC4J config.......
    Login to your App Server EM
    Depending on what tier it is you will have various system components such as HTTP_Server, Web_Cache, home etc...
    Click on home, to display OC4J page
    Click on Applications
    Click on Deploy WAR file
    You should then be able to follow the rest of the instructions in the document.
    cheers,
    Ron

  • Problems with FOP/Apache - Apex PDF printing

    Hello,
    I have configured
    Apex 3.0.1
    iAS 10.1.3.x (http + modplsql)
    OC4J 10.1.3.3 (stand alone)
    FOP for PDF printing
    RDBMS 9.2.0.8 64bits (Solaris)
    following the OTN recipee and this setup does not seem to work for all cases.
    For instance, using the Apex admin interface, I go to the monitoring page :
    Home -> Monitor Page -> Login Attempts
    And click on the Print link (left bottom corner of the page) , it works o.k, the PDF is generated correctly.
    However, if I go to
    Home -> utilities -> Object Reports -> Table Storage Sizes
    and click on the Print link, it does not work. A pdf file is generated with the following text
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD>
    <BODY><H1>500 Internal Server Error</H1>
    <PRE>Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.</PRE>
    </BODY>
    </HTML>
    If I check in the application log I see the following error
    07/08/08 11:52:21.584 fop: Servlet error
    oracle.xml.xpath.XPathException: Error in expression: './/BYTES/1024/1024'.
    at oracle.xml.xslt.XSLBuilder.startElement(XSLBuilder.java:468)
    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:320)
    at oracle.xml.xslt.XSLProcessor.newXSLStylesheet(XSLProcessor.java:712)
    at oracle.xml.xslt.XSLStylesheet.<init>(XSLStylesheet.java:321)
    at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:114)
    at apex_fop._jspService(_apex__fop.java:71)
    at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    at java.lang.Thread.run(Thread.java:595)
    I do not think it is related to a config/installation issue. It seems a parsing issue with the SQL stmt being executed, but it works for some SQL code and not for other.
    Some users did notice this problem this morning when testing the new PDF printing.
    Any ideas ?
    Nilo Segura
    CERN.

    ups.. sorry for the ugly formatting exercise...

  • PDF printing with oc4j apache fop not working

    I am configuring PDF printing in Apex 3.1.1. I have set up a shared component report query with a simple query. I have implemented the oc4j standalone and implemented the fop.war as specified in the "pdf printing in Apex" documentation. When I use the test button to verify the output of the report, I am redirected to a 404-page not found and the oc4j instance logs the following:
    08/09/09 12:02:36 [ERROR] Logger not set
    08/09/09 12:02:36 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
    08/09/09 12:02:36 [INFO] building formatting object tree
    08/09/09 12:02:36 [INFO] setting up fonts
    08/09/09 12:02:36 [INFO] [1]
    08/09/09 12:02:36 [WARNING] table-layout=auto is not supported, using fixed!
    08/09/09 12:02:36 [WARNING] Sum of fixed column widths 662000 greater than maximum specified IPD 658800
    08/09/09 12:02:36 [INFO] Parsing of document complete, stopping renderer
    Any ideas why this is happening?
    Database is oracle 9.2.0.7
    OC4J standalone 10.1.3

    Hello,
    Just did some more search on this, and apparently it's a more common problem:
    Re: PDF problem FOP mod_plsql: /pls/apex/wwv_flow.accept ORA-22293
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • PDF printing with APEX version 3.2.1 and OAS 10.1.2.3

    Hello,
    Is it possible to print PDF's with APEX version 3.2.1 and OAS 10.1.2.3? (Not using freeware- that'll never fly with my company).
    Thanks!

    JasperReports will do this and there is an integration toolkit out there for it and APEX.
    BI Publisher is available, and costly
    Oracle Reports can do this and is still available..
    One question, why would your company shy away from open source software like Cocoon/FOP? It comes with APEX 3.2 as an installable WAR and if you use the APEX listener, it comes with that for FREE!!
    Thank you,
    Tony Miller
    Webster, TX

  • PDF Printing with FOP/Apache Tomcat/J4LFOPServer in windows

    Hi everyone,
    I have been learning to create pdf report with Apex 4.2 and BI Publisher 10 which I have been successful with. Now I like to learn how to create pdf reports using FOP thinking of the customers who will not spend money on BI Publisher. I have gone through the documents and procedures described in Java 4 Less. http://www.java4less.com/apache/fop.php and http://www.java4less.com/fopdesigner/fodesigner.php?info=apex. Configured Apex instance setting accordingly.
    For default layout a tabular pdf report is created.
    I have created an xsl-fo file named Formatted_report.fo on same query and xml file from report query with BI Desktop. But when I try to print a formatted output with Formatted_report.fo report layout it does not work(J4LFOPServer ). but same layout with .rtf template works fine (BI Publisher Print Server).
    Please help
    Hasan Al Mamun
    Programmer/Assistant Systems Analyst
    Bangladesh Bank
    Dhaka, Bangladesh
    Edited by: 913230 on Dec 15, 2012 9:37 AM

    hi,
    if you use the J4lFOPServer as you write, you can set it in debug mode as described here:
    http://www.java4less.com/apache/fop.php?info=faq#debug
    you will then see the XML data and the FO data in the server window. Maybe you can see there if there is an error and that can help you fixing it.
    Jon

  • PDF Printing with images

    Hello all-
    I was wondering if it is possible to create a PDF document with images from a report that has images, through the FOP. I have tried this on APEX 3.2.1 and APEX 4.0.1, but with no success. I installed FOP in a standalone OC4J that I have installed on my PC and this works fine. I am using the Demonstration Application to test creating the PDF with images by trying to print page 23 - it is a report with images. I get a PDF report, but the image column is blank - no image, no errors. Has anyone been able to accomplish this?
    Thanks in advance,
    Greg

    Hi,
    yes you can, this tool allows you to create FOP templates with images (look at the examples)
    http://www.java4less.com/fopdesigner/fodesigner.php?info=guide
    You can of course create your own FOP templates without this tool, there is a XSL-FO tag to do that, you must make sure the images are available to the print server, either by referencing images on the file system or deploying the images in the print server.
    Jon

  • PDF Printing with XSL-FO and Apache FOP

    Can anyone show me in the right direction for this? I've been hitting a wall for the past 2 weeks or so and it's really starting to infuriate me. How am I supposed to work this out? Where do I start? Let's say I create a layout file with a WYSIWYG XSL editor, in what format do I export it? XSL, XSLT or XSL-FO? I figured it was XSL-FO, but who knows. I tried them all anyways, but nothing seems to work. I seem to be missing a step or something, 'cause something's definitely not right.
    I created a report query (which actually contains two queries):
    select distinct
    V_Usager.NUMEROPERSONNE NoPersonne,
    V_Usager.NOMUSUEL || ', ' || V_Usager.PRENOM Usager,
    V_Usager.DATENAISSANCE DateNaissance,
    V_Usager.DESCRIPTION Sexe,
    ID_Demande,
    NomNature || nvl2(PrecisionNature,', Précision: ' || PrecisionNature,'') Nature,
    NomCadre,
    decode(IND_Securitaire, 1, 'Oui', '0', 'Non') Securitaire,
    NomRessource,
    DT_Demande,
    Note,
    ltrim(decode(IND_DEMANDEIVAC,1,'Dossier IVAC','') || decode(IND_DEMANDEFLORES,1,', Dossier Florès','') || decode(IND_RISQUECRISE,1,', Risque de crise','') || decode(IND_MENOTTES,1,', Menottes nécessaires','') || decode(IND_ADRESSECONFIDENTIELLE,1,', Adresse confidentielle','') || decode(IND_TELEPHONECONFIDENTIEL,1,', Téléphone confidentiel','') || decode(IND_RISQUEFUGUE,1,', Risque de fugue','') || decode(IND_RISQUEVIOLENCE,1,', Risque de violence','') || decode(IND_MALDESTRANSPORTS,1,', Mal des transports','') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_SIEGE,1,'',2,', Siège fourni',3,', Siège d''enfant requis',4,', Siège de nouveau-né requis',5,', Siège d''appoint requis') || decode(IND_HANDICAP,1,'',2,', Handicap mental',3,', Handicap physique') || decode(IND_MEDICAMENT,1,', Médicament à remettre','') || decode(IND_JUMELER,1,'',2,', Ne pas jumeler',3,', Ne pas jumeler avec une fille',4,', Ne pas jumeler avec un garçon') || decode(IND_TRANSPORTEUR,1,'',2,', Transporteur féminin',3,', Transporteur masculin') || nvl2(REMARQUEPRECISIONS,', ' || REMARQUEPRECISIONS,''),',') Precisions,
    Disp1.PRENOM || ' ' || Disp1.NOM SaisiePar,
    Disp2.PRENOM || ' ' || Disp2.NOM || nvl2(Elem2.Description, ', ' || Elem2.Description,'') Requerant,
    ltrim(nvl(NOMPERSONNEAVISER,'') || nvl2(TELEPHONEPERSONNEAVISER_1,' ' || substr(TELEPHONEPERSONNEAVISER_1,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_1,7,4),'') || nvl2(TELEPHONEPERSONNEAVISER_2,' ' || substr(TELEPHONEPERSONNEAVISER_2,1,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,4,3) || '-' || substr(TELEPHONEPERSONNEAVISER_2,7,4),''),',') PersonneAAviser
    from
    TBL_Demande_1,
    TBL_Demande_TRSP_1,
    V_Dispensateur Disp1,
    V_Dispensateur Disp2,
    V_ElemStruct Elem2,
    V_Usager,
    TBL_CadresLegaux,
    TBL_Natures,
    TBL_Ressources
    where
    DemandeID = :P7_IDDEMANDE
    and ID_Demande = DemandeID
    and ID_Usager = UsagerID
    and ID_CLegal = IDCadre
    and ID_Nature = IDNature
    and IND_Ressource = IDRessource
    and ID_Intervenant LIKE Disp1.NumeroDispensateur
    and ID_SaisiePar LIKE Disp2.NumeroDispensateur
    and Elem2.ElemStructID = ID_ElemStructSaisiePar
    select
    to_char(DT_TRANSPORT, 'dd/mm/yyyy') || ' à ' || HR_TRANSPORT || nvl2(DUREE,' durée: ' || DUREE,'') DateTRSP,
    decode(IND_TYPETRANSPORT,1,'Aller',2,'Retour',3,'Aller/Retour') TypeTransport,
    case IND_TYPETRANSPORT
    when 1 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    when 2 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    when 3 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    end AdresseDEP,
    case IND_TYPETRANSPORT
    when 1 then
    DEP_PRECISION
    when 2 then
    DEST_PRECISION
    when 3 then
    DEP_PRECISION
    end ContactDEP,
    case IND_TYPETRANSPORT
    when 1 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    when 2 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    when 3 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    end TelDEP,
    case IND_TYPETRANSPORT
    when 1 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    when 2 then
    DEP_NOM || ', ' || DEP_ADRESSE || ', ' || DEP_CPOSTAL
    when 3 then
    DEST_NOM || ', ' || DEST_ADRESSE || ', ' || DEST_CPOSTAL
    end AdresseDEST,
    case IND_TYPETRANSPORT
    when 1 then
    DEST_PRECISION
    when 2 then
    DEP_PRECISION
    when 3 then
    DEST_PRECISION
    end ContactDEST,
    case IND_TYPETRANSPORT
    when 1 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    when 2 then
    substr(DEP_TELEPHONE,1,3) || '-' || substr(DEP_TELEPHONE,4,3) || '-' || substr(DEP_TELEPHONE,7,4) || nvl2(DEP_POSTE,' poste ' || DEP_POSTE,'')
    when 3 then
    substr(DEST_TELEPHONE,1,3) || '-' || substr(DEST_TELEPHONE,4,3) || '-' || substr(DEST_TELEPHONE,7,4) || nvl2(DEST_POSTE,' poste ' || DEST_POSTE,'')
    end TelDEST,
    decode(RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL, ', , ', '', RET_NOM || ', ' || RET_ADRESSE || ', ' || RET_CPOSTAL) AdresseRET,
    RET_PRECISION ContactRET,
    substr(RET_TELEPHONE,1,3) || '-' || substr(RET_TELEPHONE,4,3) || '-' || substr(RET_TELEPHONE,7,4) || nvl2(RET_POSTE,' poste ' || RET_POSTE,'') TelRET
    from
    TBL_Demande_1,
    TBL_Demande_TRSP_1
    where
    DemandeID = :P7_IDDEMANDE
    and ID_Demande = DemandeIDI then created a report layout in XSL-FO with XSLfast, but it won't work at all. I always get the dreaded "corrupted file" when I test my PDF Report... any ideas why it doesn't work? Have I missed something obvious?
    Best regards,
    Mathieu

    Hello Mathieu
    i assume that the default PDF printing is working, but that you want to create some better looking reports and therefore use a different non-generic XSL-FO.
    You can do several things in Apex but you can use the Apache-Fop conversion also indepent from Apex.
    What you need is:
    1) An XML (Data) File. You can get it from your report query when you say export it to XML.
    2) The XSL-FO (Layout) file. THis is the processing instruction that says how convert the XML Data into an XML-FO. You can create it manually or with some tool.
    3) The next step is to render the XML-FO into any output format (pdf, rtf, html)
    The creation of the XML-FO and of the PDF are done by the apache fop converter (cocoon or Batik framework if I remember correctly) in a single process but you can influence it so that both steps are done separately. See also: http://xmlgraphics.apache.org/fop/0.95/running.html
    The advantage is that you usually get much better error messages from the single steps.
    My recommendation would be to do all the steps with a very basic report first.
    Then gradually improve the complexity of the report, the data and the layout.

  • PDF Printing with V3

    I have been reading http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html to configure for PDF printing.
    I already have OAS installed with some OC4J applications. It has a BI farm that includes Discoverer, HTTP_Server, Forms, Reports_Server, OC4J_BI_Forms, OC4J_Portal, OC4J_Wireless, Portal, Web_Cache and Management all running. Is the BI Publisher described in the document above different that the BI farm installed with OAS? Can/Should I install the BI Publisher on the same physical machine? Or does it need to be installed as an additional component in the existing OAS farm?
    I guess I am do not understand the connection. Perhaps the BI Publisher and the BI farm in OAS are completely seperate and only share a common name?
    Any help would be appreciated.
    Scott

    Scott,
    Based on the information I have from the BI Publisher team, the only product currently including the version of BI Publisher that's needed for APEX integration is this:
    Oracle Business Intelligence Enterprise Edition 10.1.3.2
    And can be downloaded here:
    http://www.oracle.com/technology/products/bi/enterprise-edition.html
    I'm not an expert on OAS, so I can't answer the question on where to best install this. I would recommend you post this question on the XML Publisher forum:
    BI Publisher
    Regards,
    Marc

  • PDF printing with proxy server

    Hello,
    I installed Apex 3.0.1 and configured it for pdf printing using OC4J and Apache FOP. The OC4J process is running on the same server as the database. I used localhost as hostname and 8888 as port.
    Everything works fine, however, when I specify a proxy server in the Application Definition, the pdf printing stops working ... I suppose this is because the print server is now located through the proxy server and this doesn't work ... But, I need to configure the proxy server because I want to use an external web service ...
    Anyone else that has this problem and knows of a possible workaround ?
    Thanks
    Matthias

    Well, in my case this is not an option, since I used a demo host and domain name which can't be resolved through the proxy server ... If only there was an option to skip the proxy server for localhost settings (like there is in Internet Explorer).
    Matthias

Maybe you are looking for

  • Java script no longer working

    On my BB8530 w/Virgin Mobile, I changed my BB ID today, I have latest updates etc.I received the email to confirm my changes, clicked on the address it sent me, went to the page and got an error message saying java sript was no longer available on my

  • Error while setting up the ContentDB as the source for OSES

    Hello Experts, I am tring to create the ContentDB as the source to Oracle SES. 1. while creating the Identity plug-in for Oracle Internet Directory, I am passing the following information: Host name: hostname of the OID Port: 389 (non SSL) Use SSL: f

  • Watching Netflix movies via cable to TV

    I bought an AV cable to watch movies on my TV which are streamed to my iPhone 4 using the Netflix App. I can watch movies just fine on the iphone, but not so on the TV. The audio gets to the TV, but not the video. What setting do I need to change or

  • Microphone for filming choir/band concerts

    We film a lot of middle and elementary school choir and band concerts, create DVDs for the parents. As of now, we just use the audio that we get from the 3 inexpensive mini dv cameras we shoot with. The results are actually pretty good, especially if

  • Combing Keynote, Motion and FCP. Best Strategy?

    Ok Im trying to do a project where Im using Keynote content, Motion content and FCP content. My final screen delivery will be on a flat screen plasma monitor with a native resolution of 852 x 480. I am going to be playing this back as a looping Quick