How to save report output in a PDF file and also show preview in one processing cycle
Hi every body,
We R re-developing an application from COBOL to Oracle.
Using Reports 6i 6.0.8.11.3.
The requirement is that whenever a user processes a report, it should be saved on disk say in PDF format. Then it should be shown in Reports Runtime Previewer.
So far I have explored that only one of theses can be done in one processing cycle.
That is if we set DESTYPE to FILe it will only be saved to disk. If we set DESTYPE to Preview, the report can be previewed and optionally printed but not saved.
I want that both saving to disk and preview should be possible.
I have explored .DST file option but there is only provision for FILE, PRINTER and MAIL.
Printing facility should be optional, otherwise we would have used FILE and PRINTER destinations in .DST file.
Once that file is saved on disk, it can later on be printer if user requires more copies.
I would prefer a solution other than User_exit as I don't have training in developing user_exits.
Any help please.
Tariq
I had a similar requirement and decided to run the report from forms. When a button is pressed, the report is run to create the pdf file, followed by separate command to invoke acrobat reader or internet explorer to display the file, rather than using reports previewer.
The file can be displayed from forms by a host command in client server, or by web.show_document on the web.
Similar Messages
-
Not able to save report output in a text file and RTF file
I am using Oracle Developer6.0 . I am facing problem with reports. I am invoking reports from form using run_product.
1. I could not able to save the report in text file . Whenever i try to save the report output in a text file.It gives dump and application get closed.
2. In RTF format , it execute the query which i have given at the design time while creating a report . But while running i am passing query either through lexical parameter or passing value of where criteria user parameters. It display the output for the specified value. But when i save this report output in rtf file . It execute design time query and save that in a rtf file.
If any body is having any idea about it . Please let me ASAP . It is very urgent for me.
Thanks in advanceTry the following:
Do not generate the report to .rep file, but rename/copy the .rdf file to .rep file and execute it. -
How can I extract part of a PDF file and copy it to a new PDF file?
How can I extract part of a PDF file and copy it to another PDF file?
You will need Adobe Acrobat for this.
-
How to make blank copies of a PDF file and put it into the printer tray.
Dear experts,
Before you try printing the data from the FM, How tomake several blank copies of the PDF file and put it in the printer tray so that you can print just the data from the function module on it??????
Please reply.Hi drredwood,
When you open your PDF file a yellow bar will appear on the top of the screen.
Click on 'Enable All Features'.
Then you will be able to copy the content from your pdf and to paste in any of the file.
Regards,
Florence -
How to save current output page as pdf or xls format?
hello expert,
i have make 2D line graph . now i am trying to save current output page as pdf or xls format.
how can i do this?
please reply soon
thanks in advanceI have a similar problem with Firefox on android. When saving a page as PDF, often the PDF page size isn't big enough and just shows part of the full web page. Is there any way to set the PDF page size and make it bigger,say A4 or some other size?
-
To save ALV output as a PDF file
Hi,
We have the requirement to save an ALV report output(FM used:REUSE_ALV_GRID_DISPLAY) to a PDF file. Standard ALV buttons doesnot have this functionality.
We have a custom button on the tool bar,Clicking this button should save the output as a PDF format file.Please guide How to achieve this ?any FM available?
Regards,
Khader.Hello All,
PDF conversion is working fine with the below approach. But physical print is happening since I called GET_PRINT_PARAMETERS.
Is there a way to control this anywhere? I mean I dont wnat that document to be printed on my printer.
1) Call GET_PRINT_PARAMETERS
2)*Store the current selection screen details
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-repid
TABLES
selection_table = t_rsparams.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
t_rsparams-selname = 'P_DUMMY'.
t_rsparams-low = 'X'.
APPEND t_rsparams.
*submit to get the spool number
SUBMIT ztr_hrg_report WITH SELECTION-TABLE t_rsparams
TO SAP-SPOOL
SPOOL PARAMETERS gs_print_parms
WITHOUT SPOOL DYNPRO
AND RETURN.
3)CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = w_spool_nr
no_dialog = space
dst_device = gs_print_parms-pdest
pdf_destination = 'X'
IMPORTING
pdf_bytecount = g_bytecount
TABLES
pdf = t_pdf
Please help. -
Converting java output to a pdf file and save in a file path
hi guys i am working on MSSql server using jdbc retrieving the data and and maintaining it in the out put my problem now is that i have to convert the out put of this application i.e on the console to a pdf file.
please do help me in solving my problem
please tell me the methods using printJob.
need help in creating a printjob to th adobe distiller
so please do help me to sought out my problem
with regards
thank youSay "apropos pdf" and then "man ps2pdf" on your well equipped Linux box,a nd wee wonders!
PS2PDF(1) Ghostscript Tools PS2PDF(1)
NAME
ps2pdf - Ghostscript PostScript to PDF translator
SYNOPSIS
ps2pdf [ options ] input.ps output.pdf
DESCRIPTION
ps2pdf uses gs(1) to convert the PostScript(tm) file
"input.ps" to the Adobe Portable Document Format (PDF) in
"output.pdf." -
How to save a bitmap to a pdf file format?
Hello,
We have a scanning application that can write out BMP files or TIFF files. My boss would like to have the files in PDF format. Is there a way to do this? I can write code if given the specs. Call an external routine if there is one available for free or low cost. I initially get the info from a handle to a DIB, convert it to a Bitmap object, then save it to a TIFF. I am using VB.NET and am looking for a solution that isn't too costly in cash or time since the benefit is small, but I do not know if there is one. Even if someone can point me in the right direction I would appreciate it.
ThanksOpen in a graphics package and print to the Adobe PDF printer. TIFF files can be opened directly in Acrobat and converted (you would then use Save As to get the PDF). BMP files are not in the list of files converted by Acrobat, but you could still try -- might get an error message, but maybe it will work also.
-
How to save selected pages of a PDF file in Adobe 11.0.07
I upgraded to Adobe XI version 11.0.07.
Example:
I have a 100 page PDF and I want to save a portion of the pages:
Pages 49-57 of the 100.
Is there a way to do that, I cannot seem to get it to do it, I think Adobe 9 it was possible
ThanksHi tanasiluv,
Please check the video: http://tv.adobe.com/watch/learn-acrobat-xi/extracting-pages/
to know how to extract pages from a pdf and create new pdf using Adobe Acrobat.
Regards,
Rave -
How to generate report output directly to a file
Here's the issue...
We have several instances of queries that will run for a long time ( because they process a lot of data)...which are then intended to be exported to .csv files
So far, we run these as reports...they'll run...and they export the data to csv files...which seems to result in the query rerunning all over again going to a csv file this time...
Any recommendations/suggestions to directly go to a flat file instead of screen first...file second
ThanksYour query is executing again b/c you haven't fetched all the rows to the grid(s). If you want to prevent the pain of the 2nd query execution for the export, then scroll to the bottom of the data grid before you do the Export. This will consume more memory, but it will save you the effort of running the query again.
You could also try using SPOOL and the /*csv*/ sql developer hint.
SPOOL c:/your_file.csv
select /*csv*/ * from ...
Execute via F5
The main limitation here will be the number of lines returned by your query as we default the max rows to print in a script to 5,000. That's a preference you can change though.
[http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/]
Edited by: JeffS on Aug 13, 2012 10:10 AM -
How to save the time to a .txt file and retrive it back as time?
I have to save the time [hour:minute:second] and the date [date:month:year] to a .txt file. I am using the Calendar API to set the time and date as below
FileOutputStream fileStream = new FileOutputStream ("what.txt");
PrintWriter pw=new PrintWriter(fileStream, true);
Calendar curDate = Calendar.getInstance();
System.out.print(curDate.get(Calendar.DATE)+":");
System.out.print(months[curDate.get(Calendar.MONTH)]+":");
System.out.print(curDate.get(Calendar.YEAR));
pw.println(curDate);
I'll have to retrive these data back to use it to set timer
timer = new Timer();
timer.schedule(new RemindTask(), time);
I try to retrive the data and use the Calendar API to that data by using the below program.
I get the error as :
C:\t\Retrivedate.java:41: int cannot be dereferenced
System.out.print(t.get(Calendar.DATE)+":");
How can I solve this so that I can use Calendar API on my retrived data?
import java.io.*;
import java.util.*;
import java.lang.*;
class Test {
public static void main(String args[]) {
try {
File inputFile = new File("what.txt");
FileReader in = new FileReader("what.txt");
int t;
char[] tmp = new char[100];
int cnt = in.read(tmp);
String tm="";
for (int j=0;j<cnt;j++)
{ tm+=tmp[j];
try {
t=Integer.parseInt(tm,10);
catch (NumberFormatException exception) {}
System.out.println("jika "+tm);
Calendar curDate = Calendar.getInstance();
String months[]={
"Jan","Feb","Mar","Apr",
"May","June","July","Aug",
"Sept","Oct","Nov","Dec"};
Date time1 = curDate.getTime();
System.out.print(" \n"+time1.getHours());
System.out.print(":"+time1.getMinutes());
System.out.println(":"+time1.getSeconds());
System.out.print(t.get(Calendar.DATE)+":");
System.out.print(months[t.get(Calendar.MONTH)]+":");
System.out.print(t.get(Calendar.YEAR));
in.close(); }
catch (IOException ex) {
System.out.println("IOException:"+ex.toString()); }These lines do not make sense:
System.out.print(t.get(Calendar.DATE)+":");
System.out.print(months[t.get(Calendar.MONTH)]+":");
System.out.print(t.get(Calendar.YEAR));
1. t is an integer, it does not have any methods.
2. It's a bad idea to use char[] to retrive the date. You should use readLine() method to retrieve the whole date string, say "10/23/2001" (certainly you can have hours, minutes, seconds, etc.). Then you need to use SimpleDateFormat class to parse this string. SimpleDateFormat gives you everything to parse a date string in any format you want.
PC -
How to save a 4D Array in a File and load it later on?
Hello,
I am trying to save a 4D Array (Array[4000] [3] [20] [5]) of UINT in a File. I can do it through "write in binary File". But then I can´t load it. I know I can transform my Array down to 1D Array of 1.200.000 Elements (4000*3*20*5) of UINT. When I load it, I have to transform it back (with a lot of "for-looping") back to 4D. But is there an easier way of doing that?
I was not able to find a solution in this forum - I am sorry if I made a new thread if there is already a solution in this forum.
Best regards
LabVIEW 2011
Solved!
Go to Solution.As Lynn said, there should be no extra code required.
When writing, make sure that "prepend size" is true (true is default) and when reading, wire an empty 4D array of the correct representation to the "data type" input.
(I also assume that your LabVIEW version is not extremely ancient)
LabVIEW Champion . Do more with less code and in less time . -
How do you delete part of a PDF file and keep the rest
If I want to keep page 2 but not pages 1 or 3...how do I do that?
Possible with Adobe Acrobat, not Adobe Reader.
-
How to use PO message type to output 'Form' as PDF file
Dear experts,
I am working for a topic of how to use PO message type to output 'Form' as 'PDF file', and save to external file system automatically.
Any one familiar to this topic, please kindly give me some guide, thank you!
Regards,
JoyceHi,
Go through the program RSTXPDFT4 (Converting SAPscript (OTF) or ABAP List Spool Job to PDF), you will get some idea. Using this program you can convert spool into PDF file.
-Alpesh -
Save report output automatically into html
Hi Gurus!
I have few reports that give a simple list output as result.
Now I want to put an option in the output , an option that will be
a save buttom which when clicked will automatically save the output
into an html file and archive it to a particular folder.
I would like to know how to automatically archive the report output
when this save buttom is clicked to a folder.
DO we do it after we have printed the report in the output
and how do we go abot doing this .
Regards
SumitHi,
After running a report, call this function module WWW_LIST_TO_HTML
to convert the list output to HTML.
Best Regards,
Krishna
Maybe you are looking for
-
Officejet Pro 8500 A909a cartrige error message
I just changed the color ink cartriges on my Officejet Pro 8500 A909a ( with new hp ink) and now the display says "the following ink cartrige appears to be missing or damaged. I have tried repeatedly to re-insert it with no change. It now also says
-
Adobe Reader 11 Issue there was an error
Hello, i have a problem with Adobe Reader 11. Sometimes when i open a document i downloaded with firefox or internet explorer i get the error: " there was an error opening this document access denied". This just happens when i doubleclick it to open.
-
How do I fix and Incorrect Structure error in a pdf document
I am recieving an error message when trying to extract pages from 162 page document to email and break up into several smaller emails. The message says "incorrect structure". How do I fix this so I can email the file
-
CursorBlock Exception while traversing a value cursor
The version of Oracle :9.2.0.1 I am using ORACLE Connection Pooling for obtaining the connection Oracle Connection Pooling // Create OracleConnectionPoolDataSource instance ocpds = new OracleConnectionPoolDataSourc
-
I have been filling out feedback for about 10 years now to increase the zoom percentage in Illustrator. Apparently I am the only one annoyed that I can only zoom in to 6400% to do detail vector illustrator work? Maybe it was my years of being spoiled