ApEx and PDF
Does ApEx version 2.2 have capability to create reports in PDF format?
Hi,
depends what you mean with out of the box.
I use apex with oracle xe (the bundled version).
- I' ve tested PL/PDF: it works great, is inside apex, however you've to rethink your report in a procedural language very similar to pl/sql.
-I've tested as well xml Publisher: works great, just upload and map your
office model, just add filters directly in xml publisher: however for the moment still don't know the pricing using xe (sure we can't achieve the 40 000 $ forfait licence pricing (we don't have 1000 user / we have only 4 user that need xml or maybe only 1 user concurrently ) / i would pay for a single user pricing).
Still don't know how to call it from Xe / apex.
Another cool alternative seems IReport: as xml publisher but open source with a cool GUI. Not tested for the moment. As i remember Java container based.
Hope it helps
Similar Messages
-
h3. Hi !
I am new and I have a trouble with APEX:
I have a lot of pdf file in a folder saved on server, this pdf files has a predefined structure ( for example: 9523-kj-251.pdf),
all diferents and I need to open one of this files through the Apex by opening on another browser tab. I don't have idea how to do this.
If any knows a way how to do it, please help me.
thanks a lot.
h1. CzARDo you have an Oracle directory linked with the OS directory holding you documents? Unless you have this or your documents in a table, APEX can't really see the documents..
Thank you,
Tony Miller
Webster, TX -
Create PDF report with APEX and Oracle 11g doesn't work
Hi everyone,
I have a problem with the downloading of PDF reports from APEX with Oracle 11g.
When I try to download a PDF, Acrobat Reader says it can not open the file.
I have done the same test in an environment with APEX and Oracle 10g and it works perfectly.
Does anyone know if there is a known bug for version 11g.
Thank you very much.Hi Munky,
I open the generated file the Notepad++ I can read the next message:
*<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1>OracleJSP:*
An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param <code>debug_mode</code> to "true" to see the complete exception message.</BODY></HTML>
I have not idea can I solve the problem.
Have you got any solution for this problem??
Thank you so much.
Victor Muñoz. -
Storing MS-Word and PDF documents in database uploaded through APEX
I want to allow users to upload MS-Word and PDF documents they have created / edited outside of the APEX app for storage in the database along with the other app data.
I know that I should use a file browse item in a region for this purpose.
I have a some questions:
1. What database datatype is best for storing MS-Word and PDF docs? CLOB?
2. How can the user see that the file has been uploaded? In other words, how can they see that the filename has been uploaded? I want to show this on the page for later viewing. I have uploaded a document, but later, I have no way to see that the document has in fact been uploaded. From the APEX page, the file browse item does not indicate whether or not a file has previously been uploaded.
3. How can the user download the previously uploaded document?
4. Is there a way to give users the capability to edit a document in an APEX app where they can do MS-Word-like editing (font size, font type, bold, italics, etc.)?
I know I've asked a lot here and I appreciate your input.
-ReidIn my case, I am uploading screenshots of my application and then displaying them. You can feel free to use it if you want, the code was mostly taken from examples of file uploads posted by others. Here is some code to get you started:
File Table description
CREATE TABLE FILE_UPLOAD
(name VARCHAR2(4000) PRIMARY KEY,
subject VARCHAR2(4000),
id NUMBER,
blob_content BLOB,
mime_type VARCHAR2(4000),
PAGE_ID NUMBER);File Upload Procedure
IF ( :P20_FILE_NAME is not null ) THEN
INSERT INTO FILE_UPLOAD (id, NAME, SUBJECT, BLOB_CONTENT, MIME_TYPE, PAGE_ID)
SELECT ID,:P20_FILE_NAME,:P20_SUBJECT, blob_content, mime_type, :P20_PAGE_ID
FROM APEX_APPLICATION_FILES
WHERE name = :P20_FILE_NAME;
DELETE from APEX_APPLICATION_FILES WHERE name = :P20_FILE_NAME;
END IF;Download Image Procedure Definition
CREATE OR REPLACE PROCEDURE download_my_file(p_file in number) AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(2000);
Lob_loc BLOB;
BEGIN
SELECT MIME_TYPE, BLOB_CONTENT, name,DBMS_LOB.GETLENGTH(blob_content)
INTO v_mime,lob_loc,v_file_name,v_length
FROM FILE_UPLOAD
WHERE id = p_file;
-- set up HTTP header
-- use an NVL around the mime type and
-- if it is a null set it to application/octect
-- application/octect may launch a download window from windows
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(v_file_name,instr(v_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
-- close the headers
owa_util.http_header_close;
-- download the BLOB
wpg_docload.download_file( Lob_loc );
end download_my_file;
/make sure to grant the procedure rights for use by anyone
GRANT EXECUTE ON download_my_file TO PUBLICDisplay Image Procedure Definition
create or replace PROCEDURE "DISPLAY_IMAGE"
inID NUMBER
AS
vMIME VARCHAR2(48);
vLENGTH NUMBER;
vFILENAME VARCHAR2(2000);
vBLOB BLOB;
BEGIN
SELECT MIME_TYPE, BLOB_CONTENT, NAME, DBMS_LOB.GETLENGTH(BLOB_CONTENT)
INTO vMIME, vBLOB, vFILENAME, vLENGTH
FROM FILE_UPLOAD
WHERE ID = inID;
owa_util.mime_header(nvl(vMIME, 'application/octet'), FALSE);
htp.p('Content-length: ' || vLENGTH);
owa_util.http_header_close;
wpg_docload.download_file(vBLOB);
END;
/Again, make sure everyone has rights to execute the procedure.
GRANT EXECUTE ON DISPLAY_IMAGE TO PUBLICThis doesn't create an editor inside the browser, it just creates a simple upload/display process. For a WYSIWYG editor that handles PDF or Docs, you'll need something far more sophisticated, and I can't suggest anything there. -
APEX Report Data Download in Excel and PDF format
Hi,
Can someone please guide me how to download APEX report data in Excel and PDF format.I know this is possible through BI Publisher but that is extra Licence cost for client so i don't want to use that option.
Thanks in advance.
Regards
Prabhat Mishra1005844 wrote:
Hi ,
Thanks for Reply,
I am using APEX 4.2 but when i am trying to download the IR data then getting 3 options only(CSV,HTML and Email).
PrabhatWell, Excel should understand the .csv format for offloads. Perform web seraches to see what can be done for pdfs -
Apex long time waiting! APEX + COCOON = PDF Carl's blog
Hello!
Help me, please!
I need to print reports in PDF.
What I did:
1 I installed Apache Tomcat 6.0.14
2 I installed Cocoon 2.1.10
All works fine! http://localhost:8080/Cocoon opened OK
3 I copied fop_post to \apache-tomcat-6.0.14\webapps\cocoon\ , now I have apache-tomcat-6.0.14\webapps\cocoon\fop_post\sitemap.xmap
4 In apex I choose : Oracle BI Publiser - Standart Support
print server host address 192.168.1.112
print server port 8080
print server script \cocoon\fop_post\
Now I make simple report consists from 1 column from a simple table like emp table, and choose.
Output format - PDF
Report Layout - Default Report Layout
Apex is English.
I read that can be problem if I'll write use point in (example) 0.5 and everywhere I used 1.
When I run the programm and click print button I have error message : Acrobat could not open 'a[1].pdf' because is either not a supported file type or because
the file has been damage ......
I saved this file and opened with text editor but there was nothing and size of this file is 0 kb.
HEINZ, show me to slash/backslash and after I change to /cocoon/fop_post/ appear new problem: now APEX LONG TIME WAITING AND DO NOTHING.
PLEASE, explain me where is problem and how to solve it?
Thank you!!!Hello,
It's seems that the version of Apache coming with Oracle 9.2 is used instead of Apache-Tomcat is a normal behavior?Ok just so this is up front , what Oracle ships and my Cocoon setup are two different things and shouldn't effect each other.
The only place the Cocoon server and APEX should touch is the print server URL set in the Instance Administration . The link in the page should look like it goes to your APEX instance, the first one, because what it does is tell the APEX instance to post the XML to the print server
When we manually change the port number to So your doing this by hand and trying to use in a browser locations bar , this will not work it's not supposed to work that. Or did you actually change your print server URL in Instance Administration
What do your Tomcat logs say? If they don't say anything then the XML post isn't even touching Tomcat / Cocoon.
I'll try and help out as much as I can but I've done multiple installations of Cocoon and APEX and each has worked everytime as advertised, well one didn't work and that was when I messed up the URL in Instance Administration and most people that's the problem they have, either wrong/extra slash's or misspelling or just forgetting to do it.
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
What are variables or parameters in Apex and how to use them?
Hi
What are variables or parameters in apex and how to use them to connect and run BI Publisher Report
From Apex URLHello Kanaiya,
You should go here: http://www.oracle.com/technology/products/database/application_express/index.html
Look at "What is Oracle APEX?" then download the documentation and review the various PDF files that are available.
If you have a version of APEX installed and available, go through the 2-Day Application Express Developer's Guide followed by the Advanced Developer's Guide.
Good luck,
Don. -
APEX and BI Publisher - chart not displayed in html
Hi All,
I have created a report using BI Publisher and created a report query and uploaded the RTF template into APEX. The report contains a chart then a table.
When I run the report in HTML format the chart is not rendered, but the table is. The browser seems to show the page as loading for a very long time, but nothing seems to happen.
If I run the report in PDF the report is rendered correctly. Also in the BI Publisher Word plugin I can preview the report in HTML ok.
I'm using APEX 3.1.2, BI Publisher 10.1.3.4
Any ideas?
Thanks,
MattHello,
Remember that Apex and BI Publisher are different products (they just "play" very nicely together).
Apex has the possibility to create SVG and Flash charts, SVG charts were great because they were very flexible, however Adobe has announced their discontinued support for the SVG plugin that some browsers need to display the SVG charts.
So moving forward, use Flash Charts instead, as most browsers already have Flash player plugins installed.
I'm guessing the reason your SVG chart isn't displaying in the browser is because you haven't installed the SVG plugin in your browser.
If you have a lot of SVG charts already in your applications, fear not! There is a simple SVG->Flash migration wizard you can use (look on the right hand side of the page when you edit your Chart region, and also in the Shared Components section if you want to migrate a lot of them). If you use these wizards Apex will automagically convert your SVG chart regions to Flash chart regions.
Hope this helps,
John.
http://jes.blogs.shellprompt.net
http://www.apex-evangelists.com -
Timesheet Application And PDF Printing
Hi,
I demo'd the time sheet application from the apex server and the management team here really liked it so I moved to our machine here and when i try the pdf printing i get the following error
Not Found
The requested URL /dev/apex/f was not found on this server.
Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at 10.144.55.241 Port 80
I dont have access to the back end and wouldn't know what to do anyway so before i get the DBA here to investigate the setup is there some variable that I have to change in the app or do I have to get the DBA to follow sets 4 and 5 on the PDF Printing in Application Express 3.0 page
http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
Thanks AndyHello,
Yes you have to do steps 4 or 5, those set up the servers that do the actual PDF rendering.
It's not as hard as it looks, at least if you are just setting it up for demo purposes.
There have been several links on setting up BI Publisher , there is a screencast of setup up FOP on OC4J
http://www.oracle.com/technology/products/database/application_express/html/fop_war_viewlet_swf.html
and I have this screencast that shows setting up Cocoon to do the PDF rendering.
http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
Is there any way to create custom reports in APEX and send them to file as PDF or word docuement?
Javier,
Is this for end users outside of your organization?
If it's for internal, does everybody using your app have the full Adobe Acrobat (not just the reader)? If they do, tell them to just do a file, print and select the Acrobat Distiller as the printer (this generates .PFS's).
There's ahow-to ar something off the main ApEx page that shows a semi-complicated way of doing it with some java classes and other 'stuff'. (Sorry, it's been a while since I looked at it last).
Bill Ferguson -
Web Clipping portlet and pdf files
Hi,
I have created a web clipping portlet which just includes a set of links to HTML and pdf files. When I try to open a link to a pdf file the web clipping portlet fails, but links to the html content work fine
Is it possible using web clipping to open the links to the pdf files and display them in the web clipping portlet ?
Thanks,Hi,
I have created a web clipping portlet which just includes a set of links to HTML and pdf files. When I try to open a link to a pdf file the web clipping portlet fails, but links to the html content work fine
Is it possible using web clipping to open the links to the pdf files and display them in the web clipping portlet ?
Thanks, -
How to add Images and PDFs in MDM iView
Hello!
We use SAP Portal as interfase to access SAP MDM repository tables.We use MDM Record Set and MDM Item Detail iViews to display and operate with main table content.
There is a field in the qualified table, which is the lookup to the Images table. And the other field is the lookup to the PDFs table. Both fields are qualifiers.
In the main table there is a field, which is the lookup to the qualified table. When we try to add values to this field using Item Detail iView, we get a window, where we can fill all values of the qualified table, except Image field and PDF field - they are disabled. So, can we add Images and PDFs to the table using Item Datail iView? Or what is the other way to add them?
Thanks,
Vika
Message was edited by:
Viktoria DeminaOoohh... you mean, like the one mentioned in http://indesignsecrets.com/adding-zoom-and-print-to-indesign-swf-files.php?
But they want to get paid for their hard work, the bastards! -
SUMMARY
Hyperlinks to XLS, DOC, and PDF files that are included in a
.chm file (and the Baggage Files) only work intermittently. The
only solution appears to be deleting the Temporary Internet Files.
PROBLEM
1. I place the XLS, DOC, or PDF file in the Windows
sub-directory that corresponds to the RoboHelp project sub-folder
where the topic in which I’ll place the hyperlink exists.
2. I open the help project in RoboHelp HTML.
3. I right-click on the project’s Baggage Files
sub-folder that corresponds to the Windows sub-directory in which I
placed the XLS, DOC, or PDF file (in step 1).
4. I import the XLS, DOC, or PDF file.
5. I open the topic in which I’m going to place the
hyperlink in the WYSIWYG editor.
6. I “drag and drop” the Baggage File into the
topic (in the WYSIWYG editor) to create a link to it.
7. I save the changes and then generate HTML (.chm) help.
8. I open the .chm file and click the hyperlink. The XLS,
DOC, or PDF file may or may not open.
9. When the hyperlink works correctly, for DOC and XLS files,
a “File Download – Security Warning” dialog box
appears asking, “Do you want to open or save this
file?”. The buttons that are available are
“Open”, “Save”, and “Cancel”.
These buttons work then as one would expect. (When the hyperlink
works correctly for a PDF file, it simply opens the PDF file in a
new window; there’s no prompt to save, open, or cancel.)
10. When a hyperlink does NOT work, for DOC, XLS, and PDF
files, no dialog box or other visual message is displayed. Instead,
the sound that is associated with the “Exclamation”
program event is played (the “Windows XP
Exclamation.wav” file is the WinXP default).
Other Notes:
- The hyperlinks ALWAYS work when I view a topic using the
“View Selected Item” function (Ctrl+W) in the RoboHelp
HTML project.
- Once a hyperlink stops working, it will not start working
again until I delete all the Temporary Internet Files.
- A hyperlink will stop working even if Internet Explorer
(iexplore.exe) is closed the entire time.
WORKAROUND
Through trial and error, I have discovered that if a
hyperlink stops working, I can get it to work again using the
following steps:
1. Leave the .chm file open.
2. Open Internet Explorer.
3. Click Tools>Internet Options….
4. From the “Internet Options” dialog box, select
the “General” tab.
5. Under the “Temporary Internet Files” section,
click the “Delete Files…” button.
6. From the “Delete Files” dialog box, select
“Delete all offline content” and then click
“OK”. The files are deleted and the “Delete
Files” dialog box closes.
7. Click “OK” to close the “Internet
Options” dialog box.
8. Without closing Internet Explorer and without re-starting
the .chm file, all the hyperlinks that didn’t work before
will now work.
GENERAL SYSTEM INFORMATION
- Windows XP Pro, SP2
- Internet Explorer 6.0.2900.2180
- RoboHelp X5, 5.0.2 Build 801
- HTML (.chm) help project files exist on my local machine
- HTML (.chm) help file is run from my local machine
- Project is under RoboSource version control
TEMPORARY INTERNET SETTINGS
- “Check for newer versions of stored pages” is
set to “Automatically”
- “Current location” for the Temporary Internet
files folder is set to “C:\Documents and Settings\My
Username\Local Settings\Temporary Internet Files\”
- “Amount of disk space to use” is set to
“594” MB
“View Files…”
- An XLS or DOC file will be listed here if I click its
hyperlink and then click either “Open” or
“Save” from the “File Download – Security
Warning” dialog box.
- A file will appear here even if I click “Save”
and then click “Cancel” from the subsequent “Save
As” dialog box.
- If I click “Cancel” from the “File
Download – Security Warning” dialog box, the file does
not appear in the Temporary Internet Files folder.
- When a file does appear in the Temporary Internet Files
folder, its Internet Address is displayed similar to the following:
“ms-its:C:\PrimaryProjectFolder\ProjectName.chm::/SubFolderName/FileName.xls”
“View Objects…”
Here’s a list of all the program files that appear:
- “Microsoft Office Template and Media Control”
(Last Accessed 12/13/06) (Version 12,0,6024,0)
- “Shockwave ActiveX Control” (Last Accessed
12/14/06) (Version 10,1,4,20)
- “Shockwave Flash Object” (Last Accessed
12/18/06) (Version 9,0,28,0)
- “Windows Genuine Advantage Validation Tool”
(Last Accessed 12/14/06) (Version 1,5,722,0)
- “WUWebControl Class” (Last Accessed 12/13/06)
(Version 5,8,0,2469)
Today is 12/18/06 so the only program file that is listed as
having been “Last Accessed” today is the
“Shockwave Flash Object”.
REQUEST FOR HELP
I really want to include certain PDF, DOC, and XLS files in
their native format in a .chm file. However, I need a better
solution to my problem than the one I discovered. What I really
want is to avoid the entire problem altogether.
Have anyone seen this before or have any suggestions?You wont be able to do that. The embedded objects would appear as images only.
-
I'm trying to get organized and I just added a bunch of books and pdfs to my itunes library. They were all added immediately to my ipad and iphone even though I did not want this. I added them to itunes using add to library and I have both devices set to sync only selected books.
How do I do this in the future so this doesnt happen? Its a lot of work to now manually erase them from each device and it sent my phone over capacity.
thanksI dont see the difference in the posts. I dont think theres anything inaccurate or misleading about what I wrote. The items were immediately added to my ipad and my iphone, even though I have them both set to sync only select items. As soon as I added new titles to my itunes library, they were immediately added to the devices. Not on the next sync. Immediately. Both devices were plugged into the computer at the time. Sorry if I failed to mention they were plugged in but I dont see the signifigance youre making out of it. The problem persists anyway.
Now that I did a test without the devices plugged in, the new items were still added as soon as I plugged my devices into the computer ( I do not have them set to sync over wifi).
Since I have both devices set to manually select items to sync, of course I want to manually select new items to sync. For instance, I am not going to read any of these magazines or books on my phone, ever, and I dont want to waste valuable space with them.
So I'm trying your advice:
I just tried deselecting sync books. It erased all content from ibooks on my device. I then dragged
one title onto the device, and it just goes back to syncing select books, with the one title selected.
It appears that wont work to solve my issue. The next time I add something to itunes it will be put on my phone. Is this really something most people want? To select to manualy control what content is synced, but then have things automatically added. It seems inconsistent to me. -
Tall report in both HTML and PDF
Hi,
I have a report in 10.1.2.0.2 with three logical parts; a header (logo, column titles), a body (actual data) and footer (column sums, some texts). At the moment I'm just using the main section (not header/trailer) but I'm willing to change.
Depending on the parameters the report will give 1-20 pages (if I was to print them) of output.
I would like to offer both HTML and PDF output but I'm having some issues.
If I set the height of the main section to 25 centimeters/10 inches and run the reports with parameters that produce 2 pages of output, I will get two pages i the PDF perfectly. The HTML will then get a seam (empty row) after 25cm/10In and then continue. The problem is that the second part of data is in a separate html table, making the columns not aligned to the first part.
So, PDF OK, HTML ugly.
If I set the height of the main section to 250 centimeters/100 inches and run the report again the HTML is fine. One long table and therefore consistent columns.
Now the PDF consists of only one page. It looks fine but after the last row I can scroll down much more as the PDF "page" is really tall now.
So, PDF ugly, HTML OK.
Any suggestions for acheiving a nice result in both PDF and HTML?
Kind regards
Tomas Albinsson
Stockholm, SwedenMany thanks Denis, worked perfectly!
Now the customer has decided that they want the header on each page...
So now I don't need to use your solution but it's good to know how to solve it.
Fortunately (?) I've got a new problem now.
If the output spans two pages I now get one head, the first part of data, head again, rest of data and foot. Fine.
The problem is that the columns of head and data on page two are not aligned with the ones on page one.
So head and data always align, but only withing the page. Page two might be much wider than page one.
This is is HTML output and the frames are set to horizontally fixed.
Seems to be the footer. Didn't help putting it in a horizontally fixed frame of it's own.
Suggestions?
Kind regards
Tomas
Maybe you are looking for
-
Problems with special characters with XML/PDF printing
Hi, Our setup: Apex Listener 2.0.5 Oracle DB 11G Weblogic Apex 4.2.2 Various recent major browsers We used this blog post so we could do some PDF printing with APEX Listener: http://marcsewtz.blogspot.be/2013/04/pdf-printing-with-oracle-application.h
-
Why is safari slower than chrome ?
i prefer safari over chrome but then chrome is way faster and it also uses compressed pages to save data. Is there any way to speed up safari or compress pages ? I just dont wanna use chrom , plz help me.
-
Dispatcher status showing stopped for disaster recovery server.
HI, today to test the data in our disaster recovery server for which we have log shipping every 30minutes we started the server in sap level during the process we can see that work +disp status is showing stopped.when i checked the log files in work
-
Why can't I email my photos?
My iPhoto doesn't recognize my identification ... I do have terrible problems with passwords ... they don't sync and I have to put new ones in over and over! I end up taking my MacBook Pro (new) back to Best Buy where it takes 10 days for them to fi
-
Replication Z-Tables from ECC to CRM
We have a client with some Z-Tables in ECC and we need to replicate this tables in CRM, anybody have any information about this. Thanks in advanced Sebas