Preview print format
How to change from landscape to standard print format in preview?
Sorry, your answer is correct, but my question wasn't complet. The background of my problem is using the print-function "open pdf in preview" to convert an e-mail or a screen-shot to pdf-format. This pdf-document is now landscape-oriented instead of portrait as before and i don't know what i changed in the meantime. I would like to use both orientations in the future. But i don't know how to handle it.
Kind regards Raimund
Similar Messages
-
To download the print format and mail it on giving a range of customers
Hai
i have a smartform attached program to a report.
my selection screen contains only customer number (in range) and sales office code.
on executing the program will generate a printfile file for each customers.
i posted this question already and got the reply but the selection screen has only one parameter called p_mail(where u pass the address straight away).but i need the pdf format to get splitted for each and every customers and to mail them automatically.
where to write the coding for fetching the email addressess of the customers and how to loop it in order to send for all the customers automaticlly.
how to pass the parameters in the function module.
please explain to me clearly.i am in need of help.
this is the program i got for sending one mail.i get confused as how this will work for the range of customers.somebody please solve me this problem.kindly tell me where to do the changes
REPORT ztest_smartform.
DATA:it_nfal TYPE nfal OCCURS 0 WITH HEADER LINE.
DATA:fm_name TYPE rs38l_fnam.
DATA:ssfctrlop TYPE ssfctrlop.
DATA:ssfcompop TYPE ssfcompop.
DATA:it_otf_data TYPE ssfcrescl.
DATA:it_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE.
DATA:bin_filesize TYPE i.
DATA:it_pdfdata TYPE TABLE OF tline.
DATA:it_pdf TYPE TABLE OF solisti1.
" Mail related declarations
"Variables
DATA :
g_sent_to_all TYPE sonv-flag,
g_tab_lines TYPE i.
"Types
TYPES:
t_document_data TYPE sodocchgi1,
t_packing_list TYPE sopcklsti1,
t_attachment TYPE solisti1,
t_body_msg TYPE solisti1,
t_receivers TYPE somlreci1,
t_pdf TYPE tline.
"Workareas
DATA :
w_document_data TYPE t_document_data,
w_packing_list TYPE t_packing_list,
w_attachment TYPE t_attachment,
w_body_msg TYPE t_body_msg,
w_receivers TYPE t_receivers,
w_pdf TYPE t_pdf.
"Internal Tables
DATA :
i_document_data TYPE STANDARD TABLE OF t_document_data,
i_packing_list TYPE STANDARD TABLE OF t_packing_list,
i_attachment TYPE STANDARD TABLE OF t_attachment,
i_body_msg TYPE STANDARD TABLE OF t_body_msg,
i_receivers TYPE STANDARD TABLE OF t_receivers,
i_pdf TYPE STANDARD TABLE OF t_pdf.
PARAMETERS p_mail type char120.
*START-OF-SELECTION.
START-OF-SELECTION.
"select data
SELECT * FROM nfal INTO TABLE it_nfal UP TO 10 ROWS.
ssfctrlop-no_dialog = 'X'.
ssfctrlop-preview = 'X'.
ssfctrlop-getotf = 'X'.
ssfcompop-tddest = 'LP01'.
Continued
Venkat.O
Posts: 1,036
Registered: 12/2/05
Forum Points: 1,782
Re: to down load the print format to pdf and sent the data thru the mail
Posted: Jul 15, 2009 7:31 AM in response to: amalrose Reply
from above
"Get Function module name for given smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZTEST_SMARTFORM'
IMPORTING
fm_name = fm_name.
"Call Smartform function module.
CALL FUNCTION fm_name
EXPORTING
control_parameters = ssfctrlop
output_options = ssfcompop
IMPORTING
job_output_info = it_otf_data
TABLES
it_nfal = it_nfal.
***********appending the otf data into the final table*********************
it_otf_final[] = it_otf_data-otfdata[].
converting OTF data into pdf data**************************
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = bin_filesize
bin_file =
TABLES
otf = it_otf_final
lines = it_pdfdata[]
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
To send data as email attachment, we need to have a table of SOLISTI1.
This table contains line size of 255 characters. Below function module
does the trick of changing the table from X character sized lines into
any given Y character sized lines.
REFRESH it_pdf[].
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_dst = '255'
TABLES
content_in = it_pdfdata[]
content_out = it_pdf[]
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
Continued
Venkat.O
Posts: 1,036
Registered: 12/2/05
Forum Points: 1,782
Re: to down load the print format to pdf and sent the data thru the mail
Posted: Jul 15, 2009 7:32 AM in response to: amalrose Reply
from above
"Subject of the mail.
w_document_data-obj_name = 'MAIL_TO_HEAD'.
w_document_data-obj_descr = 'Regarding Mail Program by SAP ABAP'.
"Body of the mail
w_body_msg = 'This is body of mail msg.'.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
"Write Packing List for Body
DESCRIBE TABLE i_body_msg LINES g_tab_lines.
w_packing_list-head_start = 1.
w_packing_list-head_num = 0.
w_packing_list-body_start = 1.
w_packing_list-body_num = g_tab_lines.
w_packing_list-doc_type = 'RAW'.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
"Write Packing List for Attachment
w_packing_list-transf_bin = 'X'.
w_packing_list-head_start = 1.
w_packing_list-head_num = 1.
w_packing_list-body_start = 1.
DESCRIBE TABLE it_pdf LINES w_packing_list-body_num.
w_packing_list-doc_type = 'PDF'.
w_packing_list-obj_descr = 'PDF Attachment'.
w_packing_list-obj_name = 'PDF_ATTACHMENT'.
w_packing_list-doc_size = w_packing_list-body_num * 255.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
"Fill the document data and get size of attachment
w_document_data-obj_langu = sy-langu.
READ TABLE it_pdf INTO w_pdf INDEX g_tab_lines.
w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( w_attachment ).
"Receivers List.
w_receivers-rec_type = 'U'."Internet address
w_receivers-receiver = p_mail.
w_receivers-com_type = 'INT'.
w_receivers-notif_del = 'X'.
w_receivers-notif_ndel = 'X'.
APPEND w_receivers TO i_receivers .
CLEAR:w_receivers.
"Function module to send mail to Recipients
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_document_data
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = g_sent_to_all
TABLES
packing_list = i_packing_list
contents_bin = it_pdf
contents_txt = i_body_msg
receivers = i_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc = 0 .
MESSAGE i303(me) WITH 'Mail has been Successfully Sent.'.
ENDIF.
ENDIF.Here:
http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=en
Was it deactivated on the old computer? If not, you may need to contact Adobe support by clicking on "Chat"
Serial number and activation support -
Why does a PDF on preview print so slow on my macbook air?
Why does my PDF on preview print so slow on my macbook air?
Try deleting the current print queue ..
Open System Preferences > Print & Scan > Print
Click: Delete Print Queue ...
Delete all prints jobs
Restart your printer and your Mac.
Try printing a PDF formatted file. -
How to set the default print format for the report
Hi,
In ALV report , i want to defalut specific print format and printer for background processing .
Any clues!!!!!!!!!
Regards
SwatantraHi
Please check below code:
DATA: PRIPAR TYPE PRI_PARAMS,
ARCPAR TYPE ARC_PARAMS,
LAY TYPE PRI_PARAMS-PAART,
LINES TYPE PRI_PARAMS-LINCT,
ROWS TYPE PRI_PARAMS-LINSZ.
DATA: val(1).
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
destination = 'LOCL' " <--- Printer Name
no_dialog = 'X'
immediately = ' '
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*** Specifying the page formats
pripar-linct = 65.
pripar-linsz = 190.
pripar-paart = 'X_65_132'.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = arcpar
in_parameters = pripar
no_dialog = 'X'
* list_name = 'Testing Purpose Only' "l_list
IMPORTING
out_archive_parameters = arcpar
out_parameters = pripar
valid = val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF sy-subrc EQ 0.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS pripar
ARCHIVE PARAMETERS arcpar
NO DIALOG.
ELSE.
write:/ 'Unable to create spool'.
ENDIF.
So now a spool is created with the required print parameters...
The list that is created from here will be in the spool.
Once the list is completed, close it with NEW-PAGE PRINT OFF.
Hope this helps.
Regards
Eswar -
I click on the print icon under an article in the Wall Street Journal. A new window opens with the article in print format. When I print, I get blank paginated pages equaling the length of the article. On the top left hand corner of the page will appear the title of the article; on the top right hand corner will appear the web address of the article; on the bottom left hand corner will appear the pagination; and on the bottom right hand corner will be the date and time of the printing. This is just how any article would print; the only difference being that I'm not getting the content of the article printed.
This has only started a couple of days ago. I do not have this issue with any other publication, yet this problem doesn't exist with other browsers.I don't have a WSJ account to test... Here is some general advice:
When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
(1) Bypass Firefox's Cache
Use Ctrl+Shift+r to reload the page fresh from the server.
Alternately, you also can clear Firefox's cache completely using:
orange Firefox button (or Tools menu) > Options > Advanced
On the Network mini-tab > Cached Web Content : "Clear Now"
If you have a large hard drive, this might take a few minutes.
(2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
* right-click and choose View Page Info > Security > "View Cookies"
* Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
This will open a window listing the site's cookies, which you can remove individually.
Then try reloading the page and logging back in. Does that help? -
Smartform -Network printer format Issue
Hi,
I can print fine using my YPCC default printer.
But When i do through network printer FORMAT is getting Disturbed( Values are printing in next line).How can we handle this? Do we need to do some driver program modifications?
Here are the parameters in Driver program
CALL FUNCTION fm_name
EXPORTING
archive_index = toa_dara
archive_index_tab = arc_ind_tab
archive_parameters = arc_params
control_parameters = ls_control_param
mail_appl_obj = ls_recipient
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = space
wa_itab = wa_header
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
TABLES
wa_dep = item_itab
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4.
IF sy-subrc <> 0.
WRITE: / 'ERROR in passing vars to the smartforms '.
ENDIF.
ls_composer_param-tdnewid = space.
ls_control_param-no_dialog = 'X'.YOu need to modify the smartform not the driver program to print all lines the way you want by changing font size, reducing line length...etc..etc..
It's printing fine on the default PC printer, because, it uses windows printer driver to render the output, where as SAP network printer uses SAP printer driver to generate the printer commands, there's always difference in the output between the two drivers.
Regards
Sridhar -
Hi!
There are several report print formats in an ABAP report. You can choose between them during printing, some examples: X_65_80 (80 columns, 65 lines), X_90_120 (120 columns, 90 lines) and so on...
Is there away to define more "standard" like printer formats?
I know, I can give anything after the REPORT statement (like REPORT zreport LINE-SIZE 99 LINE-COUNT 99) but these are not standard and mostly the printers don1t like them.
Thank you in advance
TamáHi Tamas,
When you run the report, the spool will be displayed on the screen. At this time, click on print,the system will show the print dialog. Click on properties, this will spool request attribites dialog. Click settings. in the next dialog box, select the required field, and the value and select the validity as required. This way you can set the standard format for all reports.
Ravi -
SSRS 2008 R2 why Link Report Print format different from parent?
Hi,
I have created a link report based on Report A.
In Report A I have set the print format to "LANDSCAPE", but the link report always appear in Portrait, any work around on this?
If this is one of the SSRS bugs, is that anyway I can disable the print button in Report Server?
ThanksHi SAMSUNG,
I can reproduce the issue in my local environment. As per my understanding, this scenario is caused by design.
In Reporting Services, Report server administrators have the option of disabling the print feature by setting the report server system property EnableClientPrinting to false. But this property will disable client-side printing for all reports managed by
the server. So if you want to hide the print icon in all reports, we can refer to the following document:
http://msdn.microsoft.com/en-us/library/ms155874(v=sql.105).aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to create a print format in SAP
Hi,
I dont know if this is the right forum to ask this, but I have not done this for a long time. Does anybody know how to maintain a print format such as "X_65_200" that you use when printing a report in SAP? I'm trying to create a format that will use a Legal size paper. Useful answer will be rewarded.
Thanks,
Ricky
Message was edited by: Ricky OreaHi,
The Print formats are maintained in TSP1D Table.. it is usually done by the BASIS folks..
Regards,
Suresh Datti -
I am unable to properly print a playlist in the jewel case format. All lines bunch together. I have no problem with other print formats. Help please.
If it is a USB powered external, no AC adpater, that may be the reason. Mac notebooks are known to have low powered USB ports. You can get around that with a Y USB cable to connect to 2 USB ports at the same time.
-
Printing format control in ALV TREE
Hello there,
I searched all over SDN but I couldn't find a solution for my problem ! It would be nice of you if you can help me sort it out.
I'm using an ALV TREE :
DATA: gv_tree TYPE REF TO cl_gui_alv_tree
CALL METHOD gv_tree->set_table_for_first_display
EXPORTING
is_hierarchy_header = gv_hierarchy_header
it_list_commentary = gv_report_title
i_save = 'A'
is_variant = gv_variant
CHANGING
it_outtab = gt_output_empty "Must be empty
it_fieldcatalog = gt_fieldcat.
I need to change printing format from X_65_255 to X_44_120.
In this method, there is no IS_PRINT to insert the new format (it exists only for GRID).
Do you have any idea?I could not find a way to do it in CL_GUI_ALV_TREE but you can use CL_GUI_ALV_GRID and the same method SET_TABLE_FOR_FIRST_DISPLAY in this class you can pass the print parameters to IS_PRINT (the component is PRINT_CTRL).
Revert back if it works.
Regards,
Felipe Simionatto
Edited by: fsimionatto on Sep 9, 2010 4:13 PM -
Pictures are not shown when saving to PDF. Cannot Preview Print Job.
Help! Pictures are not shown when saving to PDF. Cannot Preview Print Job.
I guess you need to fix it
Or if you would like some help provide some information - there are no mind reader supporting this forum and we can only work with the information you give us - right not that is "it does not work"
iPhoto has no "save to PDF" function - exactly what are you doing? and what exactly do you want to do?
LN -
I'm posting this question here after trying it at the Printing And Faxing forum. I have a book of my own compositions that i scanned to a disc. The book has a table of contents, and other introductory material that is numbered with roman numerals. The rest of the book is numbered normally, starting with the first composition on page one. The problems start when i try to print out one of the tunes. I click the print icon, enter the the page i want to print (i.e. from 23 to 23) and hit print. What happens is, Preview prints the 23rd page of the entire book, including the introductory pages, not page 23 starting from page 1. Other than adding up the roman numeral pages and tacking that on to 23 and printing that number, is there a way around this? It's extremely annoying, and it's kind of ruining Preview for me, even though i like it much better than Adobe Acrobat (where i don't have this problem) I'd like to dump Adobe and just use Preview, but i can't until this problem is solved. Thanks.
intel imac Mac OS X (10.4.8) 2.16 GHz intel core 2 duo, 1 GB RAMI have Word, and have been trying to open the PDF's in it, but I haven't been able to get it to work. I open Word, then file/open, then I navigate to the files on the disc, but all the different PDF's are greyed out. I just don't understand how PDF's can be opened in a text program. With that said, it's not really that big of a deal. Acrobat works o.k., I just like Preview better, it runs more smoothly and the images look better, I just hate the printing thing that started this whole thread. And thanks for the music scanning apps, but scanning my hand-written scores into the computer hasn't been the problem, just the printing in Preview.
intel imac Mac OS X (10.4.8) 2.16 GHz intel core 2 duo, 1 GB RAM -
Printing formatted text from an Oracle form
I'm trying to print formatted text from an Oracle form without using the standard menu print. The print button on the menu prints out the text and the actual form. I just want to print the text that is displayed on the form. I would like to add a print button to the form. Is there a print function or event in PL/SQL?
Thanks in advance for any help!!
JasonIf you are interested in the content of the field you can loop over them (next_item built in) and write their content into a file using the TEXT_IO built in.
for nicer outputs check out Oracle Reports on OTN. -
Preview printing to Black and White?
for some dumb reason (either me or the UI....) i can't figure out how to set up a preset for a single page in black and white out of preview.
can anyone help?With the Preview print dialog set to Show Details, you should be able to select the vendor menu where the B&W / Grayscale setting is located. Or if you are using Apple's AirPrint driver, then the B&W setting is present in the print dialog as shown below.
Maybe you are looking for
-
I was just thinking that it would be better to wipe the entire hard drive clean and reinstall some programs rather than go through and move certain things to the trash. Basically rebuild my software and file collection from the ground up, omitting wh
-
Issues with Hard Drive & Disk Repair
I keep getting the following when I try to verify my hard drive with the Disk Utility: Volume Header needs minor repair The volume Macintosh HD needs to be repaired. Error: The underlying task reported failure on exit 1 HFS volume checked Volume need
-
Passing variable value as a prompt
Hi All, I have one problem related to passing variable through prompt. let's discuss whole situation. Suppose I have 5 interface having variable say user_id in each interface. And 5 packages for each interface. Now I have generated scenario for these
-
what is adobe autoanalyzer and how do i quit the application? it's preventing me from downloading and installing updates to elements 11 and camera raw
-
Itunes charging twice for same songs
My old 4g iphone speakers broke and the apple store replaced it with a new iphone but the music from my old iphone isnt on the new phone. How do i get my old music back? Or do I have to pay for the songs again?