Bug in Apex's PDF printing?

Hi All,
I have been using BI Publisher as my print server for some time now. I have always generated PDF files and this was more or less OK.
However, I have tried to change the generated output from PDF to any other type (Word or HTML) but the application stills is generating reports in PDF!
Steps to reproduce:
- In my Report Query I have simply changed the Format to Word.
- Clicking on the Test Report link on the right produces the desired output in Word format.
- Clicked on the Apply Changes button.
- Clicked on the button in my application to generate a report - this causes the report to be generated but still in PDF!
NOTE: I have tried to create a new queary from scratch but that didn't help.
Is there a bug or am I missing something here?
Regards,
Pawel.

Jan,
I expect that we will address this with our next release of Application Express, don't have a date for that yet though,
Marc

Similar Messages

  • Apex+Cocoon PDF Printing issue  on printing Large Reports

    Hello All,
    I m in a real hard situation with PDF printing in apex.. The application manages to push the report into PDF with lesser record reports but for Large reports, it says File corrupted when i open the downloaded PDF file..
    I use Apex+Coocoon and fop printing. I found from some forums as this issue was with Java Heap size being lesser and asked me to increase the size.. so i increased the size from 128MB to 1024MB and my server settings allows me to set 1550MB at the maximum..
    If i cross this limit the TOMCAT server stops from running...
    But all of the above was not much fruitful, since it throws again the same errors if report rows crosses 6000+ rows, can any one help me out, do i need to check any other settings to make my large reports printable in PDF.
    My application needs to print around *20000+ rows each report may have at least 20 columns* to get printed...
    Much awaited for your assistance
    Edited by: mohansanjee on Sep 8, 2010 3:58 AM
    Edited by: mohansanjee on Sep 8, 2010 3:59 AM
    Edited by: mohansanjee on Sep 8, 2010 4:00 AM

    Matt,
    On this note, it probably also makes sense to mention that with APEX 3.1 we introduce a PL/SQL API that gives you much broader control over what is generated how and the method it's made available to the client. You'll get the ability to retrieve the PDF in a BLOB directly on the server, store in your own tables for later download or send via email attachment. You'll also get the ability to write your own download process using after-submit page processes. And you can have combinations of your own XML with your own stylesheets, or combine report queries with customer stylesheets at runtime, or just simply retrieve the results of pre-defined report queries / report layouts in BLOBs.
    I'll talk about this much more on my Blog once 3.1 is out, and will provide whitepapers, how-to's etc
    Regards,
    Marc

  • Apex 4.1 Print IR Report to PDF

    I wanted to see if I have it correct on Apex and getting data out in either printed form or to Excel.
    Unlike previous dev tools like Discoverer which would make printing things out to PDF and paper almost an exact duplicate of what was done on the screen report,
    Apex chose another route and making it harder to get things out.
    Now if you have $150,000 laying around you can purchase BI-Publisher and get "Nicer" output that of which I have only seen in a demo.
    What about those of us that don't have 150K to spend?
    I have my FOP server up and running but this give the most basic output available.
    So Far I see no way to get Break Groups, total amounts or anything even remotely approaching charts out using FOP.
    Do I have this correct. I just want to make sure.
    I wanted to use one tool to do my development from the Data Warehouse, and was led to believe that Apex was it.
    What are the "Real" solutions in getting better formatted output to a printed page. Is there anything that can take the rendering on the page and print it out, or down load it for Excel and/or other output.
    I am going to have to now go back to my supervisor and say I am going to have to code in discoverer as well as Apex to get viable printed output on our project thereby increasing my time and footprint and tools the user must use.
    I am not getting a warm fuzzy feeling about this.
    I know that I am going to have to open an SR to get a response on this from anyone even remotely connected to oracle, but I wanted to get some other thoughts out there, and see if I am missing something easy in the way of getting output and leveraging my work in apex to the printed page in anything that resembles what you see on the screen in apex.
    Any help or advise is appreciated.
    greG

    Sorry mate, Apex doesn't score well when it comes to generating reports out of the box - however it does integrate with other options.
    BI Publisher - I thought the figure was more like $50k, but I guess it depends on your currency.
    Configuration details direct from Oracle
    http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html
    Setting up reports
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31rpt.htm
    You can set up Cocoon using Carl's viewlet
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    If you want to use Cocoon or Apache FOP and you don't have a skilled XSL developer, you can spend a small amount cash for this WYSIWYG editor
    http://www.java4less.com/fopdesigner/fodesigner.php
    There are some PL/SQL alternatives
    http://ora-00001.blogspot.com/2011/02/working-with-office-2007-ooxml-files.html
    http://monkeyonoracle.blogspot.com/2009/07/dynamic-rtf-documents-revisited.html
    A popular option that I haven't explored is Jasper
    http://jasperforge.org/index.php?q=project/ireport
    Dietmar Aust loves it
    http://daust.blogspot.com.au/2009/06/odtug2009-pdf-printing.html
    It is also possible to link into Oracle Reports - quite easily actually - but I don't have that link with me.
    Scott

  • Problem with pdf printing in Apex 3.2

    Hi All,
    I have apex 3.2 in Oracle 11.1, and the OS is OEL4. I ran the post installation script for granting connect privileges for APEX_030200 also.I have installed BI Publisher in another machine, and configured the URL in apex.
    But the Pdf printing part is still failing.
    when i open the pdf ,the Error is "Adobe Reader could not open 'Applications[1].pdf' because it is either not a supported file type or because the file has been damaged(for exmple, it was sent as an email attachment and wasn't correctly decoded)."
    I tried to open the file using text edtor, the text inside is "ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified"
    My apex machine is 64 bit and BI Publisher machine is 32 bit.
    I ran the following query to verify that the grants were given:
    SELECT * FROM DBA_NETWORK_ACL_PRIVILEGES;
    The result of this query is the following:
    ACL     ACLID     PRINCIPAL     PRIVILEGE     IS_GRANT     INVERT     START_DATE     END_DATE
    /sys/acls/power_users.xml     (RAW)     FLOWS_030000     connect     true     false     (null)     (null)
    /sys/acls/power_users.xml     (RAW)     FLOWS_030100     connect     true     false     (null)     (null)
    /sys/acls/power_users.xml     (RAW)     APEX_030200     connect     true     false     (null)     (null)
    /sys/acls/local-access-users.xml     (RAW)     FLOWS_030100     connect     true     false     (null)     (null)
    /sys/acls/local-access-users.xml     (RAW)     APEX_030200     connect     true     false     (null)     (null)
    Please suggest a solution for this.
    Thanks,
    Sunil

    Sunil
    Verify that the BI server is accessible from the 11g database by executing the SQL below in the 11g database
    select utl_http.request('http://<bi_server_host>:<bi_server_port>/xmlpserver/convert') from dual;
    The response returned should be something similar to
    <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>

  • Problem regarding PDF printing in apex 3.1 and 11g database using cocoon

    Hi,
    i am configuring pdf printing on apex 3.1 (database 11g on windows XP OS) with cocoon/apache tomcat/fop using steps given in Carl Backstrom blog
    http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    I am using cocoon 2.2.10 / tomcat 6.0.20 and JDK 1.6
    I did everything as was mentioned in Carl's blog and everything configured without any hassle. I even enabled network services for FLOWS_030100 user on database. Even after doing all the steps I'm getting the error
    ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
    I'm confused and don't know what to do next.

    Hi,
    By default, the ability to interact with network services is disabled in Oracle Database 11g release 1 (11.1). Therefore, if running Oracle Application Express with Oracle Database 11g release 1 (11.1), use the new DBMS_NETWORK_ACL_ADMIN package to grant connect privileges to any host for the FLOWS_030100 database user. Failing to grant these privileges results in issues with PDF/report printing, specifically, you will get the following error message:
    ORA-20001: The printing engine could not be reached because either
    the URL specified is incorrect or a proxy URL needs to be specified.
    Follow the steps mentioned in the Oracle Application Express Installation Guide, [Enabling Network Services in Oracle Database11g|http://download.oracle.com/docs/cd/E10513_01/doc/install.310/e10496/post_inst.htm#BGEJJIHE]. Also refer to the [troubleshooting section|http://download.oracle.com/docs/cd/E10513_01/doc/install.310/e10496/post_inst.htm#BHAGIHIB] in case you receive an ORA-44416: Invalid ACL error after running the previous script.
    /Kenny

  • APEX 3.1.2 / HTTP-Server 10g PDF-Printing included

    Hello together
    I have APEX running on the Oracle HTTP-Server 10.1.3. Apex is working. Now i want to integrate PDF-printing. I found a lot of HowTos to realize that with a separate OC4J-Installation in an new $ORACLE_HOME.
    Has anybody an Installation running with OC4J intergrated into the HTTP-Server (startable,stopable wirh opmnctl) ? Or an idea how to get that running ? Or a better Idea to print PDFs from APEX ?
    Regards from Switzerland

    Hello,
    Carl Backstrom blogged about using Cocoon and Tomcat to integrate PDF-printing: http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    Cocoon should be installable on an OC4J instance.
    Another alternative is using PL/PDF: http://www.plpdf.com/
    Hope this helps,
    Dirk

  • PDF Printing Troubleshooting in ApEx 3.0

    Hi, I'm trying to implement the PDF Printing functionality that was introduced in ApEx 3.0
    I have an ApEx page that produces reports and I want to offer two options: exporting to excel and printing to PDF.
    The exporting to excel seems to work fine by Enabling CSV Output under Report Attributes. However, when I try to print PDFs by enabling report printing and choosing the output format as PDF, I get an error. It seems to create a PDF file and when I choose to open it with Adobe 7.0, it says that the file is damaged and could not be repaired. When I enable report printing and choose the output format as HTML, however, it works beautifully.
    What could be the problem? Thanks

    I had to take all the double quotes out for the pdf to stop giving that error message. Then I had to manually set the column widths for the report to show properly. I didn't play with this much so it may not be the best solution. try select 'a','b','c' from dual and see if that works.

  • 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  APEX 3.2.1  (APACHE FOP) which OC4J version  for Oracle 11g?

    I am using APEX 3.2.1 on Oracle 11.g (under windows XP)
    I want to test PDF printing (in advanced turorial) with standard config ( APACHE FOP no Oracle BI publisher).
    When I look oracle doc : http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html)
    prerequisites for installing WAR file (Installing and Configuring Apache FOP) imply downlad for Oracle Containers for J2EE (10.1.3.2) ,
    once there : http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html)
    the accessed page seems restricted to Oracle Application Server 10g Software Downloads.
    My question : is the last Version (10.1.3.5.0 : Oracle Containers for J2EE 10g (OC4J) (build #090727, 91 MB) - J2EE 1.4 compatible with EJB 3.0 / JPA 1.0 support ) also VALID for Oracle 11g ?

    I just installed a similar setup with the following software combination and it works.
    win32_11gR1_database.zip
    oc4j_extended_101350.zip
    jdk-1_5_0_22-windows-i586-p.exe

  • PDF Printing  APEX 3.2.1  (APACHE FOP) which OC4J version ?

    I am using APEX 3.2.1 on Oracle 11.g (under windows XP)
    I want to test PDF printing (in advanced turorial) with standard config ( APACHE FOP no Oracle BI publisher).
    When I look oracle doc : http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html)
    prerequisites for installing WAR file (Installing and Configuring Apache FOP) imply downlad for Oracle Containers for J2EE (10.1.3.2) ,
    once there : http://www.oracle.com/technology/software/products/ias/htdocs/utilsoft.html)
    the accessed page seems restricted to Oracle Application Server 10g Software Downloads.
    My question : is the last Version (10.1.3.5.0 : Oracle Containers for J2EE 10g (OC4J) (build #090727, 91 MB) - J2EE 1.4 compatible with EJB 3.0 / JPA 1.0 support ) also VALID for Oracle 11g ?
    Edited by: user10370192 on 10 nov. 2009 05:29

    marked for cancel (wrong forum)

  • 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

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

  • 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

  • PDF printing using APEX Listener

    Hi -
    I have one report region a an apex page which displays a classic report based on a simple query. I also have a some header information above the report which are the application item information passed from the previous page. I am trying to generate a PDF report(using APEX listener), the report comes fine but it doesn't show the header information that is displayed above the report. Is there a way to do that? I tried putting some values in "Print Attributes" --> "Page Header" section but it just shows it as static text. Please provide your expertise.
    APEX version: 4.2.2
    Oracle:11gR2
    Printing Engine: Apex Listener
    Thanks,
    -Seenu

    You will need to build an Xsl document and load it into APEX..  Here is the link showing how to do advanced printing with APEX..:
    Marc Sewtz: PDF Printing with Oracle Application Express 4.2.2
    Thank you,
    Tony Miller
    LuvMuffin Software
    Ruckersville, VA

  • APEX on Oracle XE PDF printing produces: Format error: not a PDF or corrupted.

    Dear fellow Apexers and Oracle Gurus,
    I have the following configuration:
    Oracle XE 11gR2
    APEX 4.2.3.00.08
    Listener 2.0.5
    On this setup I can create workspaces and applications as I please.
    Now I want to print a PDF report.
    I have set up PDF printing to "Oracle Listener" in the "manage Instance" settings in the instance administration.
    I have created a classical report on the EMPLOYEES table (Select * from EMPLOYEES)
    and enabled PDF printing in the "Printing" area of the "Print Attributes" of the page.
    When I run the page I do get the "print" link on the bottom of the page.
    Clicking the link does produce a .PDF but showing this file triggers an error in my PDF reader: Format error: not a PDF or corrupted.
    Opening the .PDF file in a text editor reveals the corrupt content.
    %PDF-1.4
    %ª«¬
    Unknown function: gatherContextInfo
    The same setup works fine and produces the expected PDF file with the report on the following configuration:
    Oracle Vbox with Developer days image;
    DB 11gR2
    Upgraded to apex 4.2.3.00.08
    Listener 2.0.5
    Since the PDF shows "unknown function" I suspected the XE configuration to lack some of the necessary rights, maybe I forgot to configure the ACLs correctly.
    So I compared the ACL info on both configurations. Alas,.. on both machines they return the same result..
    SQL> SELECT * FROM DBA_NETWORK_ACLS
    HOST         LOWER_PORT    UPPER_PORT    ACL
    localhost    null          null           /sys/acls/local-access-users.xml
    *            null          null           /sys/acls/power_users.xml    
    SQL> select * from dba_network_acl_privileges
    ACL                                  PRINCIPAL      PRIVILEGE   IS_GRANT    INVERT
    /sys/acls/local-access-users.xml     APEX_040200    connect     true        false
    /sys/acls/power_users.xml            APEX_040200    connect     true        false 
    Anyone any idea why this works fine on the Vbox and not on the local XE configuration?
    Any hint or answer as to where the problem might be is appreciated
    TIA
    Wouter

    I'm having the same issue. I'm using Oracle XE 11gR2 as well. I've tried with APEX 4.2.2 and APEX 4.2.4. I have set up the Oracle Listener in instance settings and set the report to print and I have the same result as you. Have you had any progress yet?
    Thanks
    Jason

Maybe you are looking for

  • How to add existing jsp file to a project?

    I am trying out 10g developer preview. Looks like a lot of bugs are there in the tool. I would like to know how to add existing jsp file into a project. I tried the Import functionality, but it shows the option to create a project and include only Ja

  • Displaying resultset one record at a time

    This is a rather long question, but I have never done any projects like this before with Java. I have an application in which users can view each record within a range of values one at a time. I have created a recordset that is sorted by one column i

  • Migration from PPC 10.4.11 to iMac 10.6.2 OS 9 files

    I am about to use migration assistant to move my old PPC files and apps to a new 27" iMac running 10.6.2. I'd like to do everything, files and apps and settings and I plan on using a firewire cable and target mode. The old computer is 10 years old...

  • Can't get SSL plug to work

    Can anyone tell me why I can't get this freebie to work? http://www.solid-state-logic.com/resources/lmc1plugin.html I'm trying to use the AU version on an Intel iMac, it doesn't say anything about universal binary. My Logic Express AU manager is not

  • BAPI returns always 0 record

    Hello, We created in SAP(SE37) two functions to provide records from table BAPIORDERS Table. Both functions are RFC enabled. The functions are called with .net connector 2.0 and visual studio 2003 Ver.7.1.3088. Also we use the patch available in OSS