Creating PDF report in the servlet
We have a requirement of creating PDF report in servlet.
Over all idea of the requirements -
- Servlet request receives input arguments,
- JDO fetches data information,
- need to create form [row and column]
- send response as outputsream with content type as application/pdf
Can any one give suggestions on best way to create a form where row and column consist of static text and values fetched from the db?
There are third party libraries available for creating text table that can be used to design a form in the form of table cells. We do not want to use third party libraries and have dependencies.
Please let me know, if you need additional info.
TIA.
Don't want to use third-party libraries? Then you'll have to write your own code that outputs data according to the PDF specifications. You can download them from Adobe:
http://partners.adobe.com/public/developer/pdf/index_reference.html
Personally I would recommend the third-party libraries as this is a very large wheel to reinvent.
Similar Messages
-
Creating PDF Reports with Mapviewer
Hi,
I want to create PDF reports displaying an image of the current report (Dynamic Themebased FOI layer or Parametric Theme) and the attributes associated with the map in a table. I am using javascript & oracle maps.
What are the ways of exporting the current map image from mapviewer.
Please help.
Regards
NehaHave you ever tried using getMapAsXML or getMapImageURL methods of MVMapView object?
-
Error message an error occurred while signing in " when I worked with Create PDF and at the signed
Error message "an error occurred while signing in " when I worked with Create PDF and at the signed in status. Please help so that I can continu my work.
Hi Stacy,
Thank you for your attention.
I have been working with Create PFD under normal procedures including
sign-in and several documents had been finished. However, when continued
creating another document the computer took a long time to pprocess and
finally a mesage appeared: "An error occurred while signing in" and stopped
there. I clicked the OK button and start creating again and the same
message appeared once more. I tried to log off and log in again in no
avail. So I went to the help site and called for help.
Later, I decided to reboot the computer and tried once more. This time it
worked and I continued creating. Thanks.
laozhao39 -
Hi All
I'm buliding a web application using JDeveloper and want to create some pdf reports to end users. Any one knows how to create pdf reports using JDeveloper
Thank You
Padma KumaraHere you are:
Developeing Reports in ADF
NA
http://nickaiva.blogspot.com -
After installing two updates, I cannon create .pdf documents as the window says "Missing PDF Maker Files." I've uninstalled Acrobat and re-installed twice, same problem. How do I correct problem?
Thank you. I googled my problem and got good answers involving making changes to my Office settings - which worked.
Sent via the Samsung GALAXY S® 5, an AT&T 4G LTE smartphone -
While creating pdf from html, the alignment is not proper
Hi,
In my application, I am creating a pdf report from html using (using Generate pdf 1.1 - HTML URL To PDF activity) which contains certain images and descriptions.
But, while generating pdf the alignment is not proper. In the HTML there is no paging, but in the output pdf the image div is getting broken when new pages are generated.
Some blank areas are coming the report.
Actually I need an exact replica of the HTML as a pdf, with paging.
Thank you in advance.What is the LiveCycle version?
Is it possible for you to share an example(somewhere on public file sharing sites)? -
Creating pdf report from xml publisher report
Hi,
I'm newbie to xmlpublisher env.
We've a report in Oracle 11i developed in unix shell script and run as concurrent program generating check details which will be printed on checks.
I was asked to migrate this report into R12 in pdf format.They provided rtf template and xml data.I installed xml publisher desktop.I would like to know how I can create pdf template,if necessary changing the position of fields on the template.
Thanks,
KiranHi Kiran,
Sorry to say, but no you can not use the desktop or standalone edition for integration with EBS.
In your case there are 2 alternatives for you:
1) Update the Unix shell script so it's ok for R12 (it did a good job for a long time on 11i)
2) Leave the unix script and redesign for BI Publisher (ebs edition)
Both are taking the same effort in my opinion, only since you moved to R12 it's a good learning moment to get to know the strength of BIP.
Since you task is to modify the standard Oracle solution, which i guess is an rtf template provided download the MS Word plugin and adjust the template
If any detail help needed please contact me directly -
Multi language not supporting while create pdf report
When we click on print button its creating xml file successfully in multi language for the template and its generating report in html and rtf formats.. when we try for pdf its not showing correct format...also its creating pdf when we try with bi publisher desktop...
anyone please give an answer
-
Create pdf attachment to the mail
Hi folks,
My requirement is to attach pdf document to the mail step in workflow programatically and document is on presentation server.
i have tried with SOFM object type, but it is asking for document number , but i could not provide it because it is not in SAP system.
how to acheive this.
Thanks,
janakiram.try this copy and paste is and make changes as required
Enjoy.............
To create pdf from internal table.
Two steps
1. get spool no.
2. create pdf.
1. get spool no.
SELECT *
FROM zwftrack
INTO TABLE it_zwftrack
WHERE wf_id = p_wf_id
AND action = 'FYA'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING destination = 'LP01' " 'LT50'
copies = 1
list_name = g_rq2name
list_text = 'COMM-PDF NEW-PAGE PRINT ON'
immediately = ' '
release = ' '
new_list_id = 'X'
expiration = g_days
line_size = g_ln_size " 255 ZTG12
line_count = g_ln_count " 65 ZTG12
layout = g_layout " 'X_PAPER'ZTG12
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
SAP_OBJECT = 'RS'
AR_OBJECT = 'TEST'
ARCHIVE_ID = 'XX'
ARCHIVE_INFO = 'III'
ARCHIVE_TEXT = 'Description'
no_dialog = 'X'
IMPORTING out_parameters = g_params
out_archive_parameters = g_arparams
valid = g_valid.
"end of get
NEW-PAGE PRINT ON
NEW-SECTION
NO-TITLE
PARAMETERS g_params
ARCHIVE PARAMETERS g_arparams
NO DIALOG.
***add at top of comments list
WRITE:/ 'Contract Analysis Worksheet', 150 'Current Data ( ', l_date, ' ', l_time, ' )'.
WRITE:/150 'Run # :', wa_zzbedsheet-bdshnum.
WRITE:/ 'Project ID :',g_object_no.
WRITE:/ 'Project :',g_psr_desc.
WRITE:/ 'Profit Center :',g_prctr.
WRITE:/ 'Project Manager :',g_final_abb_contact.
WRITE:/ 'RA key :',g_abgsl.
WRITE:/ 'Customer :',l_cust.
WRITE:/ 'Project Start :',l_proj_start.
SKIP 3.
SORT it_zwftrack BY approver_level.
LOOP AT it_zwftrack INTO wa_zwftrack.
AT FIRST.
WRITE:/ 'Approvers Comments:'.
SKIP 1.
WRITE:/1 'Role', 35 'Approved By', 50 'Signature', 75 'Comments'.
ULINE.
ENDAT.
IF wa_zwftrack IS INITIAL.
SKIP.
ELSE.
PERFORM f_get_name USING wa_zwftrack-approved_by
CHANGING g_final_abb_contact.
WRITE :/ wa_zwftrack-role UNDER 'Role',
g_final_abb_contact UNDER 'Approved By',
wa_zwftrack-signature UNDER 'Signature',
wa_zwftrack-comments UNDER 'Comments'.
ENDIF.
CLEAR: g_final_abb_contact.
insert page break
IF sy-tabix = w_lines .
NEW-PAGE .
w_lines = 2 * w_lines.
ENDIF.
ENDLOOP.
NEW-PAGE PRINT OFF .
CLEAR w_tsp01.
SELECT SINGLE *
FROM tsp01
INTO w_tsp01
WHERE rqowner = sy-uname
AND rq2name = g_rq2name. "'COMM-PDF' .
g_spool_comm = w_tsp01-rqident.
2. create pdf
CLEAR g_lines .
REFRESH it_tab1 .
****get comments page from spool
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = g_spool_comm "spool1
TABLES
buffer = it_tab1
EXCEPTIONS
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
OTHERS = 8.
IF sy-subrc = 0.
ENDIF.
to record line no for page break .
DESCRIBE TABLE it_tab1 LINES g_lines.
MOVE g_lines TO wa_eof-line .
APPEND wa_eof TO it_eof .
CLEAR g_lines .
APPEND LINES OF it_tab1 TO it_tab.
REFRESH it_tab1 .
SELECT SINGLE spld INTO w_spld FROM usr01 WHERE bname = sy-uname.
SHIFT g_wf_id LEFT DELETING LEADING '0'.
CONCATENATE g_wf_id '-ONEPDF' INTO g_list_name.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING destination = w_spld " 'LT50'
copies = 1
list_name = g_list_name
list_text = 'PM-PDF NEW-PAGE PRINT ON'
immediately = ' '
release = ' '
new_list_id = 'X'
expiration = g_days
line_size = g_ln_size " 255 ZTG12
line_count = g_ln_count " 65 ZTG12
layout = g_layout " 'X_PAPER'ZTG12
SAP_COVER_PAGE = 'X'
RECEIVER = 'SAP*'
DEPARTMENT = 'System'
SAP_OBJECT = 'RS'
AR_OBJECT = 'TEST'
ARCHIVE_ID = 'XX'
ARCHIVE_INFO = 'III'
ARCHIVE_TEXT = 'Description'
no_dialog = 'X'
IMPORTING out_parameters = g_params
out_archive_parameters = g_arparams
valid = g_valid.
NEW-PAGE PRINT ON
NEW-SECTION
NO-TITLE
PARAMETERS g_params
ARCHIVE PARAMETERS g_arparams
NO DIALOG.
w_idx = 1 . " for reading EOF line no .
w_tabix = 0 .
READ TABLE it_eof INTO wa_eof INDEX w_idx .
MOVE wa_eof-line TO g_lines .
w_lines = w_tabix + g_lines .
DATA: w_linestr LIKE sy-tabix . "#EC NEEDED
LOOP AT it_tab INTO wa_tab.
IF wa_tab-line CP 'Current Budget' .
w_linestr = sy-tabix .
ENDIF .
IF wa_tab IS INITIAL OR wa_tab-line CA '?' . " ZTG15
SKIP . " ZTG15
ELSE . " ZTXX
WRITE / wa_tab .
ENDIF . " ZTG15
insert page break
IF sy-tabix = w_lines .
NEW-PAGE .
w_idx = w_idx + 1 .
w_tabix = sy-tabix + w_tabix .
READ TABLE it_eof INTO wa_eof INDEX w_idx .
MOVE wa_eof-line TO g_lines .
w_lines = w_tabix + g_lines .
CLEAR: w_tabix.
ENDIF .
ENDLOOP .
NEW-PAGE PRINT OFF .
CLEAR w_tsp01.
SELECT * INTO TABLE t_tsp01 FROM tsp01
WHERE rqowner = sy-uname
AND rq2name = g_list_name .
IF sy-subrc = 0 .
SORT t_tsp01 BY rqcretime DESCENDING . "RBE24 rqident DESCENDING .
ENDIF .
READ TABLE t_tsp01 INTO W_TSP01 INDEX 1 .
CLEAR w_tsp01.
SELECT SINGLE *
FROM tsp01
INTO w_tsp01
WHERE rqowner = sy-uname
AND rq2name = g_list_name. "'COMM-PDF' .
WHILE g_numbytes = 0 .
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w_tsp01-rqident "spoolno
no_dialog = ' '
DST_DEVICE =
PDF_DESTINATION =
IMPORTING
pdf_bytecount = g_numbytes
pdf_spoolid = g_pdfspoolid
LIST_PAGECOUNT =
btc_jobname = g_jobname
btc_jobcount = g_jobcount
TABLES
pdf = it_pdf
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11.
ENDWHILE.
**DATA : DATA_TAB TYPE TABLE.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = g_numbytes
filename = g_lv_file
filetype = 'BIN'
IMPORTING
filelength = g_numbytes
TABLES
data_tab = it_pdf
FIELDNAMES =
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
report ZTEST12345678.
tables:
tsp01.
*STRUCTURES
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 255, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i,
mi_rqident like tsp01-rqident.
*INTERNAL TABLES
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename TYPE string.
*----Data for Mail
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
DATA: V_MAILID(241) TYPE C .
DATA: BEGIN OF DATA_TAB OCCURS 20,
LINE(255),
END OF DATA_TAB.
start-of-selection.
concatenate 'c:\abap\'
p_repid
'.pdf'
into mc_filename.
*Setup the Print Parmaters
call function 'GET_PRINT_PARAMETERS'
exporting
authority = space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
*in_archive_parameters = space
*in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog = 'X'
user = sy-uname
importing
out_parameters = mstr_print_parms
valid = mc_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
*Make sure that a printer destination has been set up
*If this is not done the PDF function module ABENDS
if mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LP01'.
endif.
*Explicitly set line width, and output format so that
*the PDF conversion comes out OK
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
submit (p_repid) to sap-spool without spool dynpro
spool parameters mstr_print_parms
via selection-screen
and return.
CALL FUNCTION 'ENQUE_SLEEP'
EXPORTING
seconds = 2.
*Find out what the spool number is that was just created
P_REPID = SY-REPID.
perform get_spool_number using p_repid sy-uname
changing mi_rqident.
*Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = mi_rqident
no_dialog = space
dst_device = mstr_print_parms-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
perform create_mail_data.
PERFORM SEND_MAIL.
*FORM get_spool_number
*Get the most recent spool created by user/report *
*--> F_REPID *
*--> F_UNAME *
*--> F_RQIDENT *
form get_spool_number using f_repid
f_uname changing f_rqident.
data: lc_rq2name like tsp01-rq2name.
concatenate f_repid+0(8)
f_uname+0(3)
into lc_rq2name separated by '_'.
concatenate f_repid+0(9)
f_uname+0(3)
into lc_rq2name.
select * from tsp01 where rq2name = lc_rq2name
order by rqcretime descending.
f_rqident = tsp01-rqident.
exit.
endselect.
if sy-subrc ne 0.
clear f_rqident.
endif.
endform." get_spool_number
**& Form create_mail_data
form create_mail_data.
*Creation of the document to be sent
DOC_CHNG-OBJ_NAME = 'TEST MAIL ATTACHMENTS'.
DOC_CHNG-OBJ_DESCR = 'Test for PDF'.
OBJTXT = 'Contents of mail'.
APPEND OBJTXT.
OBJTXT = 'PDF'.
APPEND OBJTXT.
OBJTXT = 'PDF'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
*Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
*-DOWNLOADING AND AGAIN UPLOADINGIN BIN FORMAT TO TRANSFER TO OBJBIN
*MC_FILENAME = 'c:\test.doc' .
*--pdf--
*MC_FILENAME = 'c:\test.pdf'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = MI_BYTECOUNT
filename = MC_FILENAME
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
tables
data_tab = MTAB_PDF[]
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*CALL FUNCTION 'GUI_DOWNLOAD'
*EXPORTING
*BIN_FILESIZE = MI_BYTECOUNT
*FILENAME = MC_FILENAME
*FILETYPE = 'BIN'
*TABLES
*DATA_TAB = MTAB_PDF
*EXCEPTIONS
*FILE_OPEN_ERROR = 1
*FILE_WRITE_ERROR = 2
*INVALID_FILESIZE = 3
*INVALID_TYPE = 4
*NO_BATCH = 5
*UNKNOWN_ERROR = 6
*INVALID_TABLE_WIDTH = 7
*GUI_REFUSE_FILETRANSFER = 8
*CUSTOMER_ERROR = 9
*OTHERS = 10.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = MC_FILENAME
FILETYPE = 'BIN'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = OBJBIN
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*CALL FUNCTION 'GUI_UPLOAD'
*EXPORTING
*FILENAME = MC_FILENAME
*FILETYPE = 'BIN'
*TABLES
*DATA_TAB = OBJBIN.
*--uncommnet this for pdf--
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'TEST.pdf'. APPEND OBJHEAD.
*Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'PDF'.
OBJPACK-OBJ_NAME = 'Testing PDF Attachment'.
OBJPACK-OBJ_DESCR = 'Customes Ageing report PDF Output Attachment'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
CLEAR V_MAILID.
V_MAILID = <mail id>.
RECLIST-RECEIVER = V_MAILID.
RECLIST-REC_TYPE = 'U'. "B for SAP Inbox
APPEND RECLIST.
endform. " create_mail_data
**& Form SEND_MAIL
form SEND_MAIL.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
commit_work = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
*EXCEPTION HANDLING
CASE SY-SUBRC.
WHEN 0.
WRITE: / 'Mail sent with attachment'.
WHEN 1.
WRITE: / 'No authorization for sending to the specified number',
'of recipients'.
WHEN 2.
WRITE: / 'Document could not be sent to any recipient'.
WHEN 4.
WRITE: / 'No send authorization'.
WHEN OTHERS.
WRITE: / 'Error occurred while sending'.
ENDCASE.
endform. " SEND_MAIL -
Facing problem while creating a report on the value of a UDM in oem gc
Hi,
I have created a report in OEM grid control. I have selected a host for this. And I have selected an UDM from the metric list. The report works fine shows the correct graph in the report.
The problem is that along with the value from the respective udm , I am also getting the values from other metrics.
Between, I also noticed that the metric I selected is not highlighted when visited next time to the report edit page. I guess this could be the cause but dont know how to fix it. May be I am wrong, If any other issues or suggestions to my problem , Please Advise.
Thanks in advance.It is 10.2.0.5. I guess it is a bug but where to check for confirmation.
Thanks.
Edited by: Kuldip on Jul 22, 2010 11:15 PM -
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. -
Problem creating PDF file using the Adobe PDF printer
Apologies if I have hit the wrong forum for this issue.
I am using Adode Acrbat 9 PRO version 9.4.6 on a Windows 7 SP1 machine.
I am running an application that presents information on web pages that I need to capture as pdf files. I am using an automation tool so it is limiting my posibilities of accomplishing this task.
I am attempting to use the Adobe PDF printer as the vehicle to create these PDF files but have encountered the following issues
The page is truncated on the right hand side
Only 1 page is created when I was expecting 7
I have specified a file path for the ADOBE PDF Output Folder ... C:\Windows\Temp and
checked the box "Add document information" but I am not given the opportuniy to enter a file name. It is using the file name from the URL
To verify my PDF content I used a different method to create the PDF from the same web page
Right click within the web page and select Convert to Adobe PDF. The pdf file has the full content with no truncation and is 7 pages in total.
Unfortunately I am unable to use this method with my automation tool
Any pointers will be gratefully receivedSome progess
I changed the page orientation to landscape and that removed the truncation. I am not sure why it is not using the "shrink to fit" but for the purposes of this exercise I can live with this solution.
If I click Print Preview I can view all pages and then if I select the Print Icon I get a PDF file containing all pages. This is so bizarre.
So to recap
File > Print > Adobe PDF Printer only creates 1 page
File > Print Preview > Print Document (Alt +P) > Print >Adobe PDF Printer creates 7 pages
I guess this would be a good time to call support to see what they have to say on this topic. -
Unable to create PDF report from custom created roles in 12.1
Hi All,
This is something very new to me. I have created all my development under the super admin role,
I have created three roles in the UME and i have assigned the pages to the Roles,
When i execute a transaction which writes the output of a transaction to a PDF from the super admin role everything is working fine.
When i tried to do the same with the user assigned to thet newely created roles, the out of the transaction is not been written.
I am storing the PDF in the WEB tab of xMII and call it when ever used clicks a button.
Can anyone plz help me in this issue.
Regards,
ShyamHello Michael,
I am using MII 12.1.4 build 36. For the roles which i have created i have assigned actions like
XMII_User
XMII_OutputStorageServlet
XMII_QualityPortal
XMII_PDFService
XMII_LocalizationService
XMII_PersonalizationService
XMII_AuditService.
When i have the action XMII_FULL_Access is assigned everything is working perfectly,
I have assigned the roles i have created in the security tab of the Query, Display templetes and in the transaction.
The real problem i can figure is that, when we are logging in as super admin the transaction is able to write the output of the transaction to a location in the WEB tab. but when i am logging in as the user assigned to the Cutome role, it is not able to write the output in the scecified location. i am still seeing the last output which i have executed under the super admin role.
Regards,
Shyam -
How can I access PDF-Reports outside the appliance?
If I know the URL
https://1.2.3.4/monitor/reports/system_statusto the HTML-Information, is it possible to get the same informations as a PDF "directly" without pressing the "Printable PDF"-Link to the commandjavascript:PrintReport()
Or do you know another way to schedule such PDF-reports and mail it to my account?You can have scheduled reports that will send you the report in pdf.
The http access you are talking about is the xml reports, these are very restricted in what you can see.
However we do have a Reporting API that your local SE should be able to provide which means you can customise reports and get the information in .csv format. -
Can CF8 create pdf's on the fly?
For example I want to create pdf's that render different information based on the user.
I have a 2 page set pdf that all users will see, but I want the info that populates the right column on first page to be dynamic based on the user.
Only the right column on the first page is dynamic and is based on the user , everything else would be the same.
Its kind of like using a cfinclude on a regular cf page.
Does this same kind of logic apply to creating PDF's?Yes, CF 8 has several functions that allow for the dynamic creation of PDF documents. The documentation had all the details.
Manipulating PDF Forms in ColdFusion
http://livedocs.adobe.com/coldfusion/8/htmldocs/formsPDF_01.html#130281
Assembling PDF Documents
http://livedocs.adobe.com/coldfusion/8/htmldocs/cfpdf_01.html#160527
Also here is a nice Blog series that discuess some of the features:
ColdFusion 8: Working with PDFs (Part 1) (July 9, 2007)
ColdFusion 8: Working with PDFs (Part 2) (July 10, 2007)
ColdFusion 8: Working with PDFs - A Problem (July 12, 2007)
ColdFusion 8: Working with PDFs (Part 3) (July 13, 2007)
ColdFusion 8: Working with PDFs (Part 4) (July 13, 2007)
ColdFusion 8: Working with PDFs (Part 5) (July 17, 2007)
ColdFusion 8: Working with PDFs (Part 6) (July 21, 2007)
ColdFusion 8: Working with PDFs (Part 7) (July 24, 2007)
ColdFusion 8: Working with PDFs (Part 8) (July 30, 2007)
Maybe you are looking for
-
One day after having received my ipod , it doesn't work properly.
I've spend my entire day fixing an ipod i received yesterday As I'm writing, I've received my video ipod of 30gb yesterday. Back then, I followed the instructions carefully , and I installed I-tunes and Ipod updater as instructed. I transfered some o
-
HT1257 Exporting photos with titles
Exporting photos for use on Windows through the Finder (not through Share) does not allow the titles I have attachged to the photos to be expored along with them. Does anyone know a way that will allow this?
-
How to map single context value attribute to multiple value attributes?
Hello, is there any way to map a single value attribute from view's context into several value attributes in controller's context? The business context of what I want to achieve is the following: I have a view which can be called in two modes: read o
-
Sql server replication server SLOW
My team has been troubleshooting this for months now. Sql Server 2008 r2 Our Main DB & server is on "server A" and is a physical machine with a single virtual instance on it, it does not share with anyone, it has its own physical hard drives and has
-
Word 2008 "not responding" in Lion
Since upgrading to OS X Lion (10.7.5), I am unable to open any documents in Word 2008. If I open Word directly, I get the blue Word 2008 logo-launch-thing, then nothing. If I double click a file that defaults to Word, the file opens but as soon as