Generating Print Preview of report in PDF
Hi all,
I need to generate a print preivew of a report output in PDF. When the report is executed, it displays the output. On the status bar, there is a button. When the user clicks on this button, instead of downloading the report in PDF, the report should be displayed in PDF format. Can anyone explain how this can be achieved?
regards,
Hamza
Hi see this tutorial.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
It is about displaying smartform output as pdf in web dynpro.
in the code given there is a method display pdf, try writing ur report code inside it and see if it gets displayed as pdf.
Not sure if it would work but can give it a try.
кu03B1ятu03B9к
Similar Messages
-
Hi,
I have a report which consists of 9 subreports in 2 tables..
When the run report I do see data.
when i export to a pdf and print preview the report in Bids.. i see data for the first 22 pages and then the remaining pages are blank with just the header showing up...
when i go to the pdf and select page 25 it is blank but when i go the report and not in print preview mode.. and i type in 25 in the page number data shows up on that page...
the report is set to a portrait and the margins are set to 0.
How can I solve this problems and why is it happening... the size of the sub report are the same..
Any help will be appreciated.
Thanks
KarenI should add that when I e-mail this document to myself and print it directky from the iMac, it prints fine.
-
Hi,
I would like to generate print preview of all the fields in the form dynamically when the user clicks a button. How do I make a pop up PDF form when the user clicks a button.
The reason for not going for Adobe's print functionality is that I have some fields in the form that can have more than 100 lines so when tried to print using adobe's print function, it does not print all the lines instead it prints only the visible lines in the form.
Any help is greatly appreciated.
Thanks,
KalyanHi ,
Just a work around -
In Click event of the button call print method like this -
<b>Examples
JavaScript
xfa.host.print(1, "0", "0", 0, 1, 0, 0, 0);</b>
Print Method -
Prints a specific number of pages from a document. It is available only for client applications.
Syntax
EMPTY print( BOOLEAN param1, STRING param2, STRING param3, BOOLEAN param4,BOOLEAN param5, BOOLEAN param6, BOOLEAN param7, BOOLEAN param8 )
Parameters
param1
● True (default)
Displays a print dialog box and prompts the user for printing setup information and
confirmation of the action.
● False
Does not display a print dialog box. Printing proceeds without prompting the user for information or confirmation.
param2
A valid string representing the page number of the beginning of the range to print. Page values are 0-based, so you represent page 1 with a value of 0.
The start page is included in the printing.
param3
A valid string representing the page number of the end of the range to print. Page values are 0-based, so you represent page 1 with a value of 0.
The end page is included in the printing.
param4
● True (default)
Does not display a cancel dialog box during the printing process.
● False
Displays a cancel dialog box to stop the printing process.
param5
● True (default)
Shrinks the page (if necessary) to fit within the imageable area of the printed page.
● False
Does not shrink the page to fit within the imageable area of the printed page.
param6
● True (default)
Prints each page as an image.
● False
Prints each page as a page of text.
param7
● True (default)
Prints the pages in reverse order.
● False
Prints the pages in order.
param8
● True (default)
Prints all annotations.
● False
Does not print annotations.
Try to call print in java script.
Nanda -
How to find the query that generates print preview?
Hello,
How can I find the query that gets executed to generate print preview? On SAP Business One client if I open a Sales Quotation and click on print preview a report is generated. What queries are run in the background to generate this report?
Thanks for your help.
Regards,
SheetalHi Sheetal,
In such cases i am using a Profiler which is connected to my company's database. If you are using SQL-Server, the start the "Profiler", connect it to your database server and start the trace. When the trace is running, execute the SBO action. After you executed this action you will see in the profiler the excuted SQL-Statements.
Regards,
Christian -
Print List Processing Report to PDF
hi all,
i've read many forums about convert info into PDF. but i'm very new to understand those forums.
In case I want to print list processing report as PDF (not hard copy thru printer). First, user types the data on the screen then click on 'Execute' button, then the system shows the result on screen. After that user asks system for print the screen on menu bar by List=>Print.
So please advise me how to get the spool id, then export as pdf. As my opinion, i may use CONVERT_ABAPSPOOLJOB_2_PDF and GUI_DOWNLOAD. But where is the place I should put the methods on?
Thanks in advance.
PeerasitHi,
Go through The simple Anallise this program.
report zabap_2_pdf.
*-- Enhancements: only allow to be run with variant. Then called
*-- program will be transparent to users
*-- TABLES
tables:
tsp01.
*-- STRUCTURES
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 like rlgrap-filename.
*-- SELECTION SCREEN
parameters:
p_repid like sy-repid, " Report to execute
p_linsz like sy-linsz default 132, " Line size
p_paart like sy-paart default 'X_65_132'. " Paper Format
start-of-selection.
concatenate 'c:\'
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 = 'LOCL'.
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.
*-- Find out what the spool number is that was just created
perform get_spool_number using sy-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.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = mtab_pdf.
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 '_'.
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
Regards
swamy -
Printing out a report in PDF format
Hi,
A colleague and myself have been converting an existing system for our customer from the traditional client/server architecture to a web-deployed system on 10g application server. I have been converting the reports from report 3.5 to reports 10g. The reports work fine but the problem we have is more to do with the printer than the reports itself.
We have a requirement to print a barcode label (and some other text) to a DataMax printer. This printer seems to be quite fussy about the fonts that are used and essentially if you don't use the DataMax fonts the label comes out blank. I have managed however to produce reports as PDF and if I click the Printer button in the adobe control the report will print out as a bitmap image on the printer.
Is there any way that I can produce the report as a PDF file and get it to print automatically ?Prohan,
I have never been able to get PDF generation working from APEX. I have asked for some help on this forum, but go no responses. And I just won't spend the outrageous license fees for Oracle BI Publisher. But I have been successful in doing what need with some simple methods.
1. If the email has some simple tables or formatted information from the database, use a PL/SQL procedure to generate an HTML formatted message and the utl_mail package to send the html formatted email. I use this for many customer and internal emails from both APEX and Oracle Forms applications.
2 There is a stand-alone product PL/PDF (http://www.plpdf.com/) that allows you to generate PDF files directly from PL/SQL (again not APEX specific). I have demoed this product and it works pretty well, but I am not using it at this time because of the licensing that requires a fee for each database instance. It's not really that expensive, but it's more than I want to spend for the number of databases I have.
3. If you have Acrobat Professional, you can export XML file from the database and create "mail merge" type PDF documents. But you can also do this with Word and a simple CSV or Excel output. Both of these are pretty easy from APEX. I have used both. I found the Work mail merge to be a little easier for end users to use, so this is my primary choice. But Acrobat Pro method also works well.
If you are interested in any examples of these methods, let me know and I can send you something.
Bill
Bill -
Recieved Error While trying to print the OBIEE report in PDF format
Hi ,
I recieved the following error while printing the OBIEE dashboard page in PDF format . Also I recieve the same error when i try to download the report in Powerpoint format .
Assertion failure: rElement.countChildElements() <= vColumns.size() at line 457 of ./project/websubsystems/xslfopostprocessor.cpp
Error Details
Error Codes: OQ78YWIW
I am not able to figure out reason behind this ..
Please help !!!
jyotiI am also recieving the same error message while trying to download my report in PDF format.Can anyone pls help to resolve this??
Payel -
Logo Visible in Print Preview, but not in pdf and hard copy
Hi,
We have uploaded a logo to be shown in the footer. We are able to see the logo in the print preview, but when we print the invoice (SAP Script), it is not seen in the hard copy. We tried by saving it as a pdf, even in the pdf, it is not displayed.
We are on SAP 4.7
Please help.
Thanks in advance.
Mickhi,
Am not sure what the exact issue could be, but i am expecting there may not be sufficient space to fit the logo. I suggest you to check the output by placing the logo in header whether its coming or not in hardcopy, that may help you.
regards
harris -
Print MS Access report to PDF with digital signatures.
I know it is possible to print a Microsoft Access report to a PDF file. However, we need to be able to add digital signatures to the resulting PDF. Is it possible to predefine the PDF signature fields in the Access database so that when the report is printed to PDF it is ready from employees to sign off on the PDF?
This is doable with the ability to do a security.importfromfile which provides the ability to import a certificate.
This is critical.
Just create the PDF and then open it up in Access. Be sure to have a reference to the Acrobat Type library. -
Generate a MS Word report from PDF Form
Is there a way to generate a MS Word file output from the contents of a PDF form?
Background:
Back in the days when Acrobat Pro was packaged with LiveCycle Design for PDF form development, I created a very extensive document that walked the reader through a series of questions and then gathered the answers into a printable form.
Unfortunately, the new version of Acrobat no longer is integrated with LiveCycle and I need to make updates to the document. LiveCycle only works on Windows machines and since I am on a Mac, it seems that I am left with few options.
What would be the best possible solution is if after the reader entered all of the data in the PDF form, they could click a button and the document would generate a MS Word file with all of the variables and input fields arranged in a meaningful format.
Is there any way to accomplish this in the new Acrobat Pro?Apparently you had LiveCycle Designer in the past.
Unfortunately, the format of the form field names used by LiveCycle are different than the format used by Acrobat.
You could try exporting the Forms Central form to the PDF format and you might be able to use the form to import the data. -
Error when print/previewing joutnal report
I am gettign the following error when trying to view a journal report PLEASE HELP!
Can't open the log file
Show Details:
Error Reference Number: {CAC41EC9-7F12-46FA-A900-EB5E57E802D8}
Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMActions.cpp;Line: 72;Ver: 11.1.2.1.000.3082;
Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMCESAction.cpp;Line: 28;Ver: 11.1.2.1.000.3082;
Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: Actions.cpp;Line: 385;Ver: 11.1.2.1.000.3082;Hi,
How the issue was fixed, it would be great if you can provide the resolution steps.
It seems i'm too getting the same issue, when i'm trying to open a HFM report in workspace the report prompts to select a member but when i'm clicking the prompt button then it is throwing the error.Error is as below
Respond to prompts
*[1033] Native:- 2147219967 error reference number {FF339D8B-E1CC-4E57-9D4A-C4EF051D76B6}*
NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: CHsvADMDriverACM2.cpp;Line:2500;Ver:11.1.1.3.500.3124*
NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1491;Ver:11.1.1.3.500.3124*
NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124*
NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1245;Ver:11.1.1.3.500.3124*
HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124
NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1203;Ver:11.1.1.3.500.3124* -
Never had this issues in previous versions. This IS a black/white gradient opacity mask over a black and white photo, but still don't think that is the problem.
You may try the forum LiveCycle Designer.
-
PL45 Print preview and PDF file with SN
Hi, we upgraded to PL45 and everything is working well other than one issue. The issue is with print preview and converting to pdf files when item list with SN is involved in a form (e.g. Delivery and Invoice). SBO will crash with file dump.
Is there anyone having similar issue? If so, how was the issue was resolved?
If anyone is at PL45 could you let me know the names of the documents when printing "Delivery" form with items tracked by serial numbers? I suspect it is this document that's giving us problem.
Thanks.
YiYi,
I would follow the procedures layed out in note 1009615 and submit a ticket witht the log files attached. Please seen note below.
Good luck,
Karl
In case SAP Business One application is shutting down unexpectedly, you should follow these instructions:
Go to SAP Business One application folder:
Right click on the shortcut for SAP Business One which is located on your desktop.
Press 'Properties' button.
Press the 'Find Target' button on the bottom left of the window, SAP Business One application folder will open.
Open the Log folder, which now should contain 2 files that hold the data about the cause for the shutdown. The first file name is: SAP Business One YYYY MM DD HH MM SS.DMP. The second file name is: SAP Business One YYYY MM DD HH MM SS_dyagnostic.TXT.
Open a message to your support center and attach the 2 files and to the message. You need to pack the file *.dmp using a tool like Winrar, because you will not be able to attach *.dmp files directly. In the message content describe the actions that were taken. (please refer to the StepTemplate.xsl in the attachments). -
Questions about "PDF print previewer" in PO
Dear all,
I am looking for "PDF print previewer" to improve the 'visual identity' of PO in preview. Can I ask how to activate the "PDF print previewer" in PO function or any configuration is needed?
Is it after apply "PDF print previewer" in SAP, a pdf viewer will be emabdded in the PO preview function?
Many thanks for your help
Sunnyhi sunny,
For control print preview of purchase order you have to contact ABAP , they will select according to your requirement
Regards -
About mismatch in print layout in direct print and print preview and pdf!
Hi ,
I have created one smartforms,when I run the standard trasaction VF03 and select any output type and then when I click on print preview button,and then when I put PDF! in address bar ,the print preview will convert in PDF format,it will show output without bold and comes only in normal fonts.
Also, when I run transaction VF03 and direct click Print button, then it shows print as per requirement , but it overwrites some part on the end of page where company address is priprinted on stationary,so how can i show print format same in both condition without overwriting?
Thanks.HI friend,
The one which is coming in the print (hard copy) is the correct one.
Print preview may be different.
So if the print is coming in overlapping format means check whether the windows are aligned properly. Because if you have given any data in main window and when it grows it over laps on another window.
If that's is correct check the printer settings for it. Only these would cause the print to be distorted.
Check this and revert back if you have any issues we will help you.
Thanks,
Sri Hari
Maybe you are looking for
-
I am not sure what else to do at this point. I have printed many PDF documents before and all of a sudden the ability to print them stopped. And when I go to print a PDF it asks me to save the document - and won't save it as a PDF? Also - I am try
-
BPM reporting not displaying data for newly added field
Hello All, I have a BPM process up and running fine. I have added reporting for monitoring no. of context field. I have also created a VC model for displaying the BPM report data. However, VC application is displaying only the context field that I ha
-
Odd problem. When I type a word with an apostrophe or inverted commas in the reply to an email received or when forwarding an email, the apostrophe and inverted commas key acts as the line return. As an example, it looks like this: can' don' t
-
New tab browsing in Safari 6.0
Safari 6.0 let's you show all of the open tabs within the browser window. You can use a two finger pinch or the Show All Tab button (tab tool bar/right hand side). Here is a Youtube video I just made showing the new tab browsing in Safari.
-
my iPad mini is stuck on the Apple symbol. I have tried a reset and it shut down. When I turned it back on, the problem persists. Thanks for any help.