How to print current screen content to printer?
Hi,
After I run some report, some contents may be displayed on the screen, If I click the button 'PRINT', the contents can be printed to spool without dialogue screen.
My question is,
How to print the contents to spool with ABAP/4 program, just like the operator clicked the button 'PRINT'?
Thanks and best regards.
Hello,
Check thsi sample report.
REPORT ZV_CREATE_SPOOL .
DATA : X_NAME LIKE TSP03D-NAME,
X_DEST LIKE TSP03D-PADEST VALUE 'LOCL',
X_ROWS LIKE SXPCKLSTI1-BODY_NUM VALUE 0,
X_STARTROW LIKE SXPCKLSTI1-BODY_START VALUE 1,
X_PAGES LIKE RSPOTYPE-PAGES VALUE 1,
X_PAGES_1 TYPE P DECIMALS 2,
X_RQTITLE LIKE SXPCKLSTI1-OBJ_DESCR,
X_RQCOPIES TYPE I VALUE 1,
X_RQOWNER LIKE TRDYSE01CM-USERNAME,
X_IMMEDIATE LIKE PRI_PARAMS-PRIMM VALUE ' ',
X_RQID LIKE TSP01-RQIDENT,
I_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
X_PAGES = 1.
X_RQOWNER = SY-UNAME.
X_DEST = 'LOCL'.
X_STARTROW = 1.
X_RQCOPIES = 1.
X_IMMEDIATE = ' ' .
I_CONTENTS-LINE = 'I Got your Childhood PHOTO'.
APPEND I_CONTENTS.
CALL FUNCTION 'RSPO_SX_OUTPUT_TEXTDATA'
EXPORTING
* name = x_name
DEST = X_DEST
ROWS = X_ROWS
STARTROW = X_STARTROW
PAGES = X_PAGES
RQTITLE = X_RQTITLE
RQCOPIES = X_RQCOPIES
RQOWNER = X_RQOWNER
IMMEDIATELY = X_IMMEDIATE
IMPORTING
RQID = X_RQID
TABLES
TEXT_DATA = I_CONTENTS
EXCEPTIONS
NAME_MISSING = 1
NAME_TWICE = 2
NOT_FOUND = 3
ILLEGAL_LAYOUT = 4
INTERNAL_ERROR = 5
SIZE_MISMATCH = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
** WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.
ENDIF.
WRITE: 'I Got your Childhood PHOTO'.
WRITE: X_RQID
Regards,
Vasanth
Similar Messages
-
Print Current screen ( Dailog custom screen)
Hi Experts,
I have urgent requirement lilke ,I have dovelped one Custom screen using SE51 and Screen no : 9001,9002.
When user enters values in the current screen and then he will select the Print options from the standard tool bar which i activated and when i select that print options it should pring the current screen which i develoloped ,,very urgent experts and gr8 helpfull to me,,,,,
Pls see below code which i was written ,,it is not print the screen...
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
report = sy-repid
mode = 'CURRENT'
immediately = 'X'
user = sy-uname
IMPORTING
out_archive_parameters = arc_params
out_parameters = params
valid = l_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
Pls suggest me or how to print the current screen and send a code........
VenkatI don't know whether u can achieve it through programming or not but
If u want to print the screen in ur PC's window printer then press "Customizing of local Layout (Alt + F12)" button . Then press Hard Copy from the pop up window...if ur printer settings are correct then it will print ur screen in the Window's local printer.
Regards,
Joy. -
How do I get 3D content to print in the correct orientation?
I've set the default view in manage views but the content still does not print correctly. Thank you for your help!
Rich media in PDF isn't designed for print workflows so you cannot control what appears - you should just get a bitmap 'screenshot' of whatever the viewport was displaying at the time.
-
Print Current Date on iCal Printed Output
My wife likes to print out her weekly calendar from iCal (which she sync's with her iPhone). It would be very useful if iCal could place "the dated printed" on the output hard copy. This would prevent outdated versions of the calendar from getting confused with the latest version printed. I just have not been able to figure out how to get this accomplished with iCal. I'm probably just overlooking something obvious. Help, please!
Is there a way to set the dock icon to update in Panther.
Not without keeping iCal open all the time.
(35881) -
Action to: Print current document to PDF Printer "As Image" with Specified DPI
I FREQUENTLY do the following task on documents. I would LOVE to have an action that did it for me. Can someone help me create one or point me to someone who can?
Version: Adobe Acrobat X Pro. Windows 7 64-bit
With current PDF file open:
2) Print
3) Select PDF Printer
4) (Under advanced printer settings) choose "Print as Image", "150" DPI.
5) OK
6) Save file AS the original with _printed appended to the filename.
Image1: Printer dialogue box
Image 2: After selecting the PDF Printer and pressing "Advanced"The forum added some nice links and i found my answer here http://forums.adobe.com/message/1179199#1179199 - changed the registry key permissions and it's working like a charm. Thank you.
-
No printed current dates on copies printed with my HP C7180 / Windows XP Pro
No printed dates
Please read this post then provide some details. What exactly are you wanting to do? Are you printing from the computer or making copies from the glass or printing photo's from a photo card? If from the computer what program are you printing from?
Bob Headrick, HP Expert
I am not an employee of HP, I am a volunteer posting here on my own time.
If your problem is solved please click the "Accept as Solution" button ------------V
If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V -
Is this related to setting up a PPD?
We are using an HP Designjet T7100 plotter to print out large wall maps (108"x108") with incredible amounts of detail (about 30 layers, with varying transparency, and everything from mid-sized polygons and lines to thousands of points). It's an enormous job, I know, but certainly possible. The workflow involves creating EPS layers, and running them through Distiller to create PDFs which are obviously the map layers.
In the past, we have been successful in printing out high-resolution maps. We are now experiencing "Out of Memory" errors if we try to print from InDesign, and Illustrator takes well near an hour to process a map.
This morning, we printed a 42x60 map in low-res - the map printed successfully, albeit in about 20 mins. After printing, I went to the plotter, selected the job from the front panel, and re-printed it from there. It took 30 seconds to print.
Obviously, the job was already processed on the plotter and that made printing easier. My question is, is there a way to get the plotter to process jobs rather than Illustrator? How can I set spooling to be handled directly by the printer? Illustrator is using 2GB of memory just to process jobs - absolutely ridiculous.
I appreciate any feedback! Hopefully from Adobe
Thanks,
C
EDIT: I also wonder if this is a network issue?Hello there! Welcome to the forums @kmmo
I read your post about how you are trying to cancel a print job from the printer. I would like to know if you see an "X" on the printer display screen while the print job is in progress, and if so, try pressing the "X" and that should cancel the job.
Let me know your findings
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
Urgent help -- Printing HTML Content to printer from servlet
I am wanting know if there is a way to Print Reports from servlet.I have some idea about JPS API but it shows some errors on printer services. Pls help me, if any onme having sample code mail to me [email protected]
I want to print a html content to printer.Use the JavaScript window.print() function to print out the current window. However used the HTML LINK tag it can print out a report generated by a servlet without displaying the contents of the report in the browser window.
-
Printing Current View in Acrobat 11
Just "upgraded" to Acrobat 11 from 8. Can't seem to print "current view" form the print dialog box and yes I have clicked on the more options box and it's not there as well.
Can you post a screenshot?
-
Been using Macs since before classic. Using MBP, OS 10.7.5. Trying to figure out how to print/save folder contents including what's not visible on screen (Name, Date Modified, Size Kind) in entire folder?
Screen shots are getting old hat.
Tried select all, copy, paste into pages, but it didn't display date modified, size & kind, and also included images of selected files, which is too large.
Any apps/shortcuts/utilities that can do this? Thanks in advance.Hello Achates:
I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
http://docs.info.apple.com/article.html?artnum=107120
In that way, you will have a fresh copy of OS X and your current settings will be preserved.
Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
Barry -
Is it possible to print current popup screen or area like ABAP container?
Is it possible to print current popup screen or area like ABAP container?
Hi Zhiqiang,
The user can mark the content and select in the browser the option to only print the selected area. Printing, which is controlled from the background, should be done using the server-built-in technologies, such as Adobe integration, SmartForms, etc. That way forms can be printed in i.e. different languages.
Best regards,
Thomas -
How to avoid print configuration screen
Hi everybody,
I'm executing a program which has to print two smartforms, one followed by the other, but I don't want the printing configuration screen before printing each one, I want it only to appear in the first one and then inherit printing parameters in the next smartform and avoid the screen.
How can I do this? I think that is by using output_options parameter but I don't know exactly how.
Many thanks,
Cristina.hi,
I understand that you have your own program that triggers both Smartforms, one after the other, right?
Try this:
In your program trigger the first smartform (and have the print config screen popup)
WITHIN that smartform you trigger the second Smartform and suppress the the config screen.
Since the output options are know at this point you can pass them to the second smartform.
I hope it helps,
regards,
Joris Bots -
How to print current page in Preview
Printing in Preview, I don't see an option in the print dialog that enables "print current page", how is that done?
The reason is that have a 90 page PDF document and the page numbers don't match so I can't just choose to print for example "from page 51 to 51", the wrong page prints (page 39). Both the drawer and the separate pages says the same page number but not when printing.
Thanks.
Mac Mini 1,33 Mac OS X (10.4.4)Yeah, I thought so. I find the printing options very limited, across the board. To do things like "print current page" or "print selection" in Preview or Safari should be easy and obvious.
Thanks for the reply, I'll get Adobe Reader for now. -
How to print PDF file content from ABAP in background?
Hi,
Is it possible to print PDF file content from ABAP in background?
I have some PDF content which I need to print it, these PDF files are generated outside the SAP.
Please have you any suggestions?
Thank you
Tomas<b><u>Solution:</u></b><br>
<br>
The target output device must support PDF print, this is only one limitation.<br>
<br>
REPORT z_print_pdf.
TYPE-POOLS: abap, srmgs.
PARAMETERS: p_prnds LIKE tsp01-rqdest OBLIGATORY DEFAULT 'LOCL',
p_fname TYPE file_table-filename OBLIGATORY LOWER CASE,
p_ncopi TYPE rspocopies OBLIGATORY DEFAULT '1',
p_immed AS CHECKBOX.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
DATA: lv_rc TYPE i,
lv_filter TYPE string.
DATA: lt_files TYPE filetable.
FIELD-SYMBOLS: <fs_file> LIKE LINE OF lt_files.
CONCATENATE 'PDF (*.pdf)|*.pdf|' cl_gui_frontend_services=>filetype_all INTO lv_filter.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
file_filter = lv_filter
CHANGING
file_table = lt_files
rc = lv_rc
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0 AND lv_rc EQ 0.
MESSAGE 'Error' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
READ TABLE lt_files ASSIGNING <fs_file> INDEX 1.
IF sy-subrc EQ 0.
p_fname = <fs_file>-filename.
ENDIF.
AT SELECTION-SCREEN.
DATA: lv_name TYPE string,
lv_result TYPE boolean.
lv_name = p_fname.
CALL METHOD cl_gui_frontend_services=>file_exist
EXPORTING
file = lv_name
RECEIVING
result = lv_result
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
IF lv_result NE abap_true.
MESSAGE 'Bad file!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
START-OF-SELECTION.
END-OF-SELECTION.
PERFORM process.
FORM process.
DATA: lv_name TYPE string,
lv_size TYPE i,
lv_data TYPE xstring,
lv_retcode TYPE i.
DATA: lt_file TYPE srmgs_bin_content.
lv_name = p_fname.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = lv_name
filetype = 'BIN'
IMPORTING
filelength = lv_size
CHANGING
data_tab = lt_file
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
MESSAGE 'Read file error!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = lv_size
IMPORTING
buffer = lv_data
TABLES
binary_tab = lt_file
EXCEPTIONS
failed = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE 'Binary conversion error!' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
PERFORM print USING p_prnds lv_data CHANGING lv_retcode.
IF lv_retcode EQ 0.
WRITE: / 'Print OK' COLOR COL_POSITIVE.
ELSE.
WRITE: / 'Print ERROR' COLOR COL_NEGATIVE.
ENDIF.
ENDFORM. " PROCESS
FORM print USING iv_prndst TYPE rspopname
iv_content TYPE xstring
CHANGING ev_retcode TYPE i.
DATA: lv_handle TYPE sy-tabix,
lv_spoolid TYPE rspoid,
lv_partname TYPE adspart,
lv_globaldir TYPE text1024,
lv_dstfile TYPE text1024,
lv_filesize TYPE i,
lv_pages TYPE i.
CLEAR: ev_retcode.
CALL FUNCTION 'ADS_SR_OPEN'
EXPORTING
dest = iv_prndst
doctype = 'ADSP'
copies = p_ncopi
immediate_print = p_immed
auto_delete = 'X'
IMPORTING
handle = lv_handle
spoolid = lv_spoolid
partname = lv_partname
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ADS_GET_PATH'
IMPORTING
ads_path = lv_globaldir.
CONCATENATE lv_globaldir '/' lv_partname '.pdf' INTO lv_dstfile.
OPEN DATASET lv_dstfile FOR OUTPUT IN BINARY MODE.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
TRANSFER iv_content TO lv_dstfile.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CLOSE DATASET lv_dstfile.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ZBAP_RM_PDF_GET_PAGES'
EXPORTING
iv_content = iv_content
IMPORTING
ev_pages = lv_pages.
lv_filesize = XSTRLEN( iv_content ).
CALL FUNCTION 'ADS_SR_CONFIRM'
EXPORTING
handle = lv_handle
partname = lv_partname
size = lv_filesize
pages = lv_pages
no_pdf = ' '
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
CALL FUNCTION 'ADS_SR_CLOSE'
EXPORTING
handle = lv_handle
EXCEPTIONS
OTHERS = 1.
IF sy-subrc NE 0.
ev_retcode = 4.
RETURN.
ENDIF.
ENDFORM. " PRINT -
How do I perform a screen capture to print or save?
How do I perform a screen capture to print or save?
Press the Shift, Command, and 3 keys to capture the whole screen.
Press the Shift, Command, and 4 keys to capture a draggable part of the screen, or follow it with the spacebar to capture a window.
Open the PNG on the desktop. Alternatively, combine either of the above with the Control key to put the screenshot onto the clipboard instead of the desktop.
(116647)
Maybe you are looking for
-
For some time now and after firefox has automatically been updated a few times, I click on images or links which are supposed to open in a new window automatically. A new window opens but it is blank with no toolbars, just an adress bar with nothnig
-
"Unable to Open" PDF attachment using BlackBerry PlayBook when message is received from Exchange 03
Hello, Recently I have found that some users are having an issue with opening PDF attachments on the BlackBerry PlayBook using their Exchange 2003 accounts. I have isolated the issued to only users on Exchange 2003 using activesync. To resolve/workar
-
Java- Problem in tabbing order using Border layout
Though i have added components in particular order to borderlayout Panel,Order of tabbing is not in the order of components added?can any one say why is happens because the tabbing occurs naturally in the order the components are added to the panel .
-
Problem Event Name: BEX64 Application Name: Photoshop.exe Application Version: 12.0.4.0 Application Timestamp: 4d9d8f8e Fault Module Name: WinTab32.dll_unloaded Fault Module Version: 0.0.0.0 Fault Module Timestamp: 4e694f62 Exception Of
-
Can someone explain to me what the history state slider does?
Hi everyone! Why use the slider when I can easily click a previous state from the list in the history panel? Does the slider have some extra function that I may have overlooked? Thanks for your help, It's been bugging me for ages. Kelly (using Photos