PDF in Landscape format

Hi,
ESS is displaying a smartform as PDF.
The smartform is generated in landscape format.
And this is rendered in portal as PDF in portrait format.
Do we have any way to render the PDF in landscape format?
Regards,
Nagaraju Donikena.

Changing the attributes can solve this problem.
We did the changes in R/3 to solve this issue.
--Nagaraju Donikena

Similar Messages

  • Converting to PDF in landscape format

    Hello Friends ,
    I am doing an ALV grid report which needs to be sent to users Lotus Notes Inbox. I was successful in converting the report to PDF format and sending it to the inbox.
    The problem is that report has 15 columns . All these 15 columns are displayed in the PDF format but they are minimized . I need to zoom 200% to see all the columns .
    Is there a way it can be printed in Landscape format ??
    Any suggestions ?
    Here are the function modules i have used .
    CONVERT_ABAPSPOOLJOB_2_PDF
    Z_CONVERT_PDF_TO_MAIL_ATTACH.
    Please let me know .
    Thanks

    Hi,
    Check this code , we can re-format the data after getting data from FM : CONVERT_OTFSPOOLJOB_2_PDF
    *& Report  Y_SPOOL_TO_PDF                                             *
    REPORT  y_spool_to_pdf                         .
          CLASS lcl_pdf_demo_event_receiver DEFINITION
    CLASS lcl_pdf_demo_event_receiver DEFINITION.
      PUBLIC SECTION.
        DATA:
          entry_field1(100) TYPE c,
          entry_field2(100) TYPE c.
        METHODS:
          on_document_saved
            FOR EVENT document_saved OF cl_gui_pdfviewer
              IMPORTING file_path,
          on_viewing_finished
            FOR EVENT document_closing OF cl_gui_pdfviewer.
    ENDCLASS.                    "lcl_pdf_demo_event_receiver DEFINITION
          CLASS lcl_pdf_demo_event_receiver IMPLEMENTATION
    CLASS lcl_pdf_demo_event_receiver IMPLEMENTATION.
      METHOD on_document_saved.
        entry_field1 = 'Document Saved'.
        entry_field2 = file_path.
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'EVENT'.
      ENDMETHOD.                    "on_document_saved
      METHOD on_viewing_finished.
        entry_field1 = 'Viewing Finished'.
        entry_field2 = space.
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'EVENT'.
      ENDMETHOD.                    "on_viewing_finished
    ENDCLASS.                    "lcl_pdf_demo_event_receiver IMPLEMENTATION
    DATA : l_lines       TYPE i,
             l_temp(500)   TYPE c,
             l_offset      TYPE p,
             l_lineslen(2) TYPE p,
             l_mimelen(2)  TYPE p,
             l_tabix       LIKE sy-tabix,
             l_bytecount  TYPE i,
             l_size TYPE i.
    DATA: it_pdf       LIKE tline OCCURS 10 WITH HEADER LINE,
          xi_pdf       LIKE tline OCCURS 0 WITH HEADER LINE,
          html         LIKE solisti1   OCCURS 0  WITH HEADER LINE,
          xi_temp      LIKE bapiqcmime OCCURS 0 WITH HEADER LINE,
          xi_mime(255) TYPE c OCCURS 0 WITH HEADER LINE,
           lt_doc  TYPE TABLE OF docs.
    DATA : url TYPE char255.
    DATA: my_pdf_viewer     TYPE REF TO cl_gui_pdfviewer,
           my_main_container TYPE REF TO cl_gui_custom_container,
           entry1(100) TYPE c,
           entry2(100) TYPE c.
    DATA: okcode TYPE sy-ucomm.
    DATA: l_event_receiver TYPE REF TO lcl_pdf_demo_event_receiver.
    PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'C:\temp\file.pdf'."#EC NOTEXT
    PARAMETERS : p_spool LIKE tsp01-rqident OBLIGATORY.
    START-OF-SELECTION.
    *-Convert OTF Spool to PDF
    if x_temp = ''.
      CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid              = p_spool
          no_dialog                = ' '
        IMPORTING
          pdf_bytecount            = l_bytecount
        TABLES
          pdf                      = it_pdf
        EXCEPTIONS
          err_no_otf_spooljob      = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_dstdevice        = 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.
      IF sy-subrc = 0.
        xi_pdf[] = it_pdf[].
      ELSE.
        xi_pdf[] = it_pdf[].
      ENDIF.
    else.
       CALL FUNCTION 'CONVERT_OTF_2_PDF'
         IMPORTING
           bin_filesize           = l_size
         TABLES
           OTF                    = it_otf
           DOCTAB_ARCHIVE         = lt_doc
           LINES                  = it_pdf
         EXCEPTIONS
           ERR_CONV_NOT_POSSIBLE  = 1
           ERR_OTF_MC_NOENDMARKER = 2
           OTHERS                 = 3.
       IF SY-SUBRC <> 0.
         v_retcode = 1.
         perform protocol_update. exit.
       else.
         xi_pdf[] = it_pdf[].
       endif.
    endif.
    -Reformat the line to 255 characters wide (code from SAP)
      CLEAR: l_temp, l_offset, xi_temp.
      DESCRIBE TABLE xi_pdf   LINES  l_lines.
      DESCRIBE FIELD xi_pdf   LENGTH l_lineslen IN CHARACTER MODE.
      DESCRIBE FIELD xi_temp  LENGTH l_mimelen IN CHARACTER MODE.
    <b>  LOOP AT xi_pdf.
        l_tabix = sy-tabix.
        MOVE xi_pdf TO l_temp+l_offset.
        IF l_tabix = l_lines.
          l_lineslen = STRLEN( xi_pdf ).
        ENDIF.
        l_offset = l_offset + l_lineslen.
        IF l_offset GE l_mimelen.
          CLEAR xi_temp.
          xi_temp = l_temp(l_mimelen).
          APPEND xi_temp.
          SHIFT l_temp BY l_mimelen PLACES.
          l_offset = l_offset - l_mimelen.
        ENDIF.
        IF l_tabix = l_lines.
          IF l_offset GT 0.
            CLEAR xi_temp.
            xi_temp = l_temp(l_offset).
            APPEND xi_temp.
          ENDIF.
        ENDIF.
      ENDLOOP.</b>
      LOOP AT xi_temp.
        xi_mime(255) = xi_temp-line.
        APPEND xi_mime.
      ENDLOOP.
    -Final Data
      html[] = xi_mime[].
      DATA : cancel.
      PERFORM download_w_ext(rstxpdft) TABLES html[]
                                       USING p_file
                                             '.pdf'
                                             'BIN'
                                             l_bytecount
                                             cancel.
      CALL SCREEN 100.
    *-Save spool in application server as pdf file
    open dataset p_file for output.
    if sy-subrc = 0.
       loop at html.
         transfer html to p_file.
         if sy-subrc <> 0.
           v_retcode = 1.
           perform protocol_update.
         endif.
       endloop.
       close dataset p_file.
       if sy-subrc <> 0.
         v_retcode = 1.
         perform protocol_update.
       endif.
       it_command_files = p_file.
       append it_command_files.
       clear it_command_files.
    else.
       v_retcode = 1.
       perform protocol_update.
    endif.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      IF my_main_container IS INITIAL.
        CREATE OBJECT my_main_container
          EXPORTING
            container_name = 'CUSTOM_CNTL'
          EXCEPTIONS
            cntl_error     = 1
            OTHERS         = 2.
        IF sy-subrc <> 0.
          EXIT.
        ELSE.
          CREATE OBJECT my_pdf_viewer
            EXPORTING
              parent              = my_main_container
            EXCEPTIONS
              cntl_error          = 1
              cntl_system_error   = 2
              OTHERS              = 3.
          IF sy-subrc <> 0.
            "could not create PDF Viewer
          ENDIF.
        ENDIF.
        DATA: view_buttons_active TYPE char01.
        IF my_pdf_viewer->acrobat_vs_reader = ''.
          view_buttons_active = 'X'.
        ENDIF.
       CALL METHOD my_pdf_viewer->create_toolbar
         EXPORTING
           tool_buttons      = 'X'
           view_buttons      = view_buttons_active
         EXCEPTIONS
           cntl_error        = 1
           cntl_system_error = 2
           OTHERS            = 3.
       IF sy-subrc <> 0.
         "could not create toolbar
       ENDIF.
        CREATE OBJECT l_event_receiver.
        SET HANDLER l_event_receiver->on_document_saved FOR my_pdf_viewer.
        SET HANDLER l_event_receiver->on_viewing_finished FOR my_pdf_viewer.
       IF NOT my_pdf_viewer->html_viewer IS INITIAL.
          url = p_file.
          CALL METHOD my_pdf_viewer->open_document
            EXPORTING
              url = url.
       ENDIF.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      LEAVE TO SCREEN 0.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Regards
    Appana

  • When converting a document to PDF, it won't convert my landscape format !

    In Microsoft, when I convert a document that's in landscape format to a PDF, it converts in portrait format.  In the PDF I open print, select orientation and/or page setup, change the format but all the text does'nt change back to landscape.  How do I get my original format when converting to a PDF ?

    This isn't the proper forum for that. This is for the free Reader application which does not convert files to PDF.
    Depending on what you actually use to convert to PDF, you may need a Microsoft forum or the Adobe Acrobat forum.

  • PDF Landscape Format

    Friends,
    I have a program which writes a report. Since this is scheduled in the background, a spool is created. I am converting this spool into a PDF (function module CONVERT_ABAPSPOOLJOB_2_PDF) and sending this PDF as a mail attachment (function module SO_DOCUMENT_SEND_API1). The PDF which I am getting is in portrait format.
    Can I get a PDF which is in Landscape format?
    I tried customising function module CONVERT_ABAPSPOOLJOB_2_PDF and changing the standard layout from 'X_65_80' to 'X_90_120' but the PDF output is still portrait.
    Please suggest a solution.
    Warm Regards,
    Sagar Satalkar

    hai Mr.Sagar,
    if it's possible means can u send me your code..to my personal ID (for this code)
    [email protected]
    (for smartform and abap editor program samrt styles)
    thanks,
    sn

  • PDF pages in landscape format like a book?

    I want my PDF file to be in landscape format. I don't mean that each page is landscape but the stacking of pages goes from left to right not top to bottom. I don't see an option for this. I would like to know how to do this two ways:
    1. When I create a PDF out of WORD documents.
    2. When I merge several PDF files into one Binder.
    I'm new to pdf's
    Hope this makes sense.
    Thanks so much!

    What you want is set up in the Print menu. when print window opens click on copies and pages and scroll down to two sided printing.
    Choose book setting. Tablet setting show image of a table with spiral ring at top.

  • Exporting Report to PDF in Landscape

    Hello All,
    After my Hyperion report finished, I exported the result into PDF. Due to having too many rows, HTML and Excel are not viable options. After the export finished writing to a PDF file, I checked the report and realized that unless I find a way to save the result in a Landscape mode, each page of the report will be broken into two pages. Does anyone know how to export reports in PDF format in a Landscape mode?
    Thank you,
    Seyed

    Hello Ameuras,
    Thank you for your help. I was able to use the information in your response and then save the PDF report in a Landscape format. However, this still prints each row on two pages. Next, I will try your other suggestion to see if using 'Scale To Fit' would solve this problem.
    Thanks again,
    Seyed

  • Landscape formatting question

    Can anyone help me with a formatting question? I have a number of PDFs that are landscape format. Every time I open them they default to portrait, even when I change orientation in page set-up and re-save...

    You are only changing the view, not the pdf. Use the Rotate command in the Document menu, not the view menu.

  • Printing to Landscape format, not Portrait

    Hello,
    I'm trying to turn a PDF that was created in Landscape format
    into a Flash Paper SWF. When I drag the PDF onto Flash Paper, it
    creates a SWF but in a Portrait (print) format. This isn't
    acceptable because you can't read the content (unless you hold your
    laptop sideways for the whole thing). I didn't see an option
    anywhere in Flash Paper to set this. I imagine there must be a way
    to do this?

    After additional research I have found that the only way to get my labels to consistently print in landscape is to edit them with a previous version of Crystal.
    I had hoped that I could save to a previous version from Crystal 2008 but there is no option to do this. I was thinking this because MS Word and MS Excel can saave to previous versions (2007 will save to 95 etc.)
    Hope this helps others.
    Brad

  • View in Landscape format

    Hello,
    I have a PDF file where all of the pages display in portrait format.  I want to change some of the pages to display in landscape format.  I then want to save it so that when visitors to my website will view it in the format that I have set (either portrait or landscape).  I used to be able to do this Acrobat 8 Pro by rotating the pages the way I wanted them and then saving the PDF.  This doesn't seem to work in Acorbat 9 Pro.  Is there a way to accomplish this in Acrobat 9?

    Hi,
    This still should work in Acrobat 9. Select the page you want to rotate and select Document: Rotate Pages. . .
    Save the file.

  • Exporting report as PDF and CSV formats same time with out executing DB query twice

    Post Author: cpriyanka
    CA Forum: Exporting
    I am using Crystal Report 9.0 version and Java.
    I am getting "PrintOutputController" from "ReportClientDocument"
    And then by calling export(ReportExportFormat.PDF) generating PDF format report.
    Now I need to generate both PDF and CSV format files same time. How can it be done?
    My understanding is when we call "export" it does the DB query execution and other functionality.
    In that case, if I call "export" two times with two different formats, then DB query will be executed twice and that takes lot of time.
    To avoid, is there a way I can all some API so DB query executed once, but I can export report in to multiple formats?
    I appreciate your help.
    Thanks.

    Post Author: cjmorris1201
    CA Forum: Exporting
    Hello,
    Are you using the "pull" or "push" method for your crystal reports?  If you are using the "pull" method (the report itself executes the sql) then I believe there is no way around having the query execute twice since it is fired off each time you open and export the report.
    If you use the "push" method, however, then you can just create the recordset/dataset and then set the datasouce once for the report.
    Here's a broad overview of push and pull though the Crystal Report Viewer is used.  The viewer may or may not be applicable in your case:
    http://aspalliance.com/265_Crystal_Report_for_Visual_Studio_NET#Page5
    Regards, Carl

  • SQL Plus command to print a report in Landscape format

    Hi,
    what is the SQL Plus command to print a report in Landscape format?

    841731 wrote:
    Hi,
    what is the SQL Plus command to print a report in Landscape format?SQLPlus doesn't print, and it doesn't know about 'landscape' vs. 'portrait' any more than it knows about fonts. the only 'formatting' it knows is line size, page size. And all it does with line size is know where to insert a CR/LF pair (windows) or a CR (*nix). The only thing it knows to do with page size is repeat column headers.
    The rest is up to whatever application you use to open the pure asciii text spool file.

  • Character mode Report in Landscape Format

    Hi All,
    I want to print my character mode report in landscape format. But I am not getting it. Everytime I get print as Portrait. I am printing from live previewer of report builder.
    I am using Oracle 9i and Report builder 6i (6.0.8.11.3).
    I have done following settings:
    System Parameter ORIENTATION=Landscape
    DESFORMAT=DECLAND.PRT (Given by Oracle)
    In the object navigator I have set following properties for Main Section
    Width=11
    Height=8.5
    Orientation=Landscape
    Char Mode Width=132
    Char Mode height=66
    I have done same settings for Header Section and Trailer Section. Please help me.
    Thanks in advance.
    Regards
    Mona

    You will need to edit prt files to add the printer escape sequences to change the page orientation to landscape. Printer escape sequences can be obtained from the printer manual, or the printer vendor.
    For instance, HP printer escape codes can be obtained from the HP website under the printer support links.
    The steps below describe how to print a landscape, character mode report from a Windows NT PC on an HP 4100N Printer. The 4100N is a dual mode printer that can use either PCL or Postscript printer language.
    1. Use a web browser to navigate to the HP website and obtain the printer escape codes for the HP 4100N. If you are unable to locate the HP4100N printer, look for generic PCL information. The HP site also includes detailed information on the printer command syntax.
    2. The HP4100N printer command for landscape page orientation is "ESC&l1O" - where ESC indicates escape, '&' (ampersand) is the parameterized character, 'l'(lower case letter l) is the group character, '1' (number one) is the printer value character and 'O' (upper case letter O) is the termination character.
    NOTE: The HP documentation uses "EC" to signify the escape character.
    It also suggests pressing CTRL and the letter P together, then
    releasing both keys and pressing the ESC key. If this is done in
    a dos editor, a left arrow will actually be displayed on screen.
    This character cannot be interpreted by Oracle Reports and will
    cause printing errors if used in a .prt file. Instead, just use
    the letters "ESC" to indicate that the code that follows is a printer
    escape sequence.
    3. Make a copy of the wide.prt file and rename it to "mywide.prt."
    4. Add the page orientation escapes to mywide.prt file:
    printer "mywide"
    height 66
    width 132
    before report esc "&l1O" *** Puts Page in Landscape Orientation***
    after page control(L)
    after report esc "&l0O" *** Resets page orientation to Portrait ***
    return control(M)
    linefeed control(J)
    SYNTAX NOTES: The escape sequence must be enclosed in double quotes ("). The above comments regarding page orientation are used to clarify where the escape codes gets added, but they should NOT be used when editing
    the actual .prt file.
    5. Save mywide.prt file to the $ORACLE_HOME\report60\printers\ directory.
    6. Go to Windows PC -> Start -> Settings -> Printers and open the properties for the HP printer. Ensure that the option to "Always Spool Raw Data" is checked. This option is usually under the General Printer
    Options, or Spool Options. On Windows NT, you must have Administrator privileges to change this setting.
    7. Test running the report to the printer and specify desformat mywide. It is not necessary to include the file extension (.prt).
    8. The report will now print in landscape orientation.

  • How to download a page in pdf or doc format

    Hi,
    I want to download a content of page in pdf or doc format through a button.
    How can I acheive it.
    I created a salary page and now want to download this page directly in pdf or doc format, how to do it.
    Using Peopltools 8.49
    PS HRMS 9.0
    plz help.
    Many thanks...

    The entire solution would be too large and complex to post. Here are some pointers to get you going. One alternative is to use BI/XML Publisher to create the output document and launch it from a button on the page (PeopleCode and Derived/Work record). Another alternative is to use Apache POI to generate a doc and iText to generate PDF. Customers have used all of these approaches.

  • HP Officejet Pro 8600 won't save scanned document in searchable PDF or .rtf format

    HP Officejet Pro  8600 won't save scanned document in searchable PDF or .rtf format
    The scanner scans the document without a problem but when I select 'SAVE' and
    specify a location and file name, a system error 'The HP scan application was
    unable to save the file to the specified location'.  It will save a regular PDF file
    or a  JPG file with no problem, but trying to save an searchable PDF or .rtf file
    results in the above mentioned system error.
    This problem occurs either from HP SCAN or from the 8600 scan panel.
    The computer is running Windows XP and the I.R.I.S. OCR software is
    loaded.

    Hello TrailsEnd,
    Welcome to the HP Forums!
    I understand you're receiving an error message "The HP scan application was unable to save the file to the specified location". I will do my best to assist you!
    First, I would recommend downloading this tool called the Print and Scan Doctor. This tool diagnoses and helps resolve common printing, scanning, and connectivity problems, including: (This information is stated here.)
    USB: Verifies that the USB connection from your computer to the HP product is working correctly.
    Network: Verifies that the network connection between your computer and your network is working correctly.
    Device Status Test : Checks for device errors such as out of paper, paper jams, carriage stalls, and paper feed issues, and then provides instructions for fixing the error.
    Driver Check : Checks for missing or corrupt driver files.
    Device Manager : Checks for problems in Device Manager that would prevent printing.
    Device Online : Checks if the product has been paused or set to offline, and then sets the status back to online if necessary.
    Print Queue : Checks for and clears pending print jobs in the print queue (a log of print jobs waiting to print).
    Port Match : Checks the port settings for the HP product.
    Device Conflicts : Checks for conflicts with other drivers, such as other printer brands.
    Ink Issues : Checks the cartridges and ink levels for issues that affect print quality.
    Print Settings : Checks and adjusts the print quality settings.
    Test Print : Prints a test page for print quality evaluation, and provides options for cleaning and aligning the printhead if necessary.
    Scan Tests : Checks the scan mechanism, drivers, and registry entries.
    Let me know if this tool fixes a scanning problem on this post. If this doesn't resolve your issue, then I am going to recommend uninstalling the software. Please follow this HP document on Uninstalling the Printer Software. 
    Once this is complete, you can perform a clean boot on your computer. I will provide a Microsoft document here to help you. This helps eliminate software conflicts that occur when you install a program or an update or when you run a program. Now, you can install the full feature software from the HP website here.
    Please post your results, as I will be looking forward to hearing from you. Have a great day!
    I worked on behalf of HP.

  • Is there a way to extract iMessages from Mac to PDF or .txt format?

    I've been searching the net but to no avail. All results point to backing up/extracting iMessages from iDevices other than a Mac. I'm going to change my Apple ID and I want to at least have a copy of the previous convos I had if PDF or .txt format. Thanks in advance! 

    HI,
    If you have the Save on Close  option enabled in Messages > Preferences > Messages then all Chats and conversations are saved.
    They can be recalled any time.
    1) In the Messages app the File Menu > Recent Items will list the last X number of chats.
    X is the number set in System Preferences > General pane about the number of Documents, Applications and Servers shown in such lists.
    2) old migrated iChat Saved chats are in Your Home Folder/Documents/iChats
    3) New Saves are in your Home Folder/Library/Messages/Archive although this Library is Hidden.
    In th Finder > Go Menu > Go to Folder and type ~/Library/Messages into the dialogue box that appears.
    I have 10 non iMessages accounts as well as  my iMessages account logged in when I am on line.
    I can call up any of the last Chats shown in Recent Items no matter which account they came from  (different Screen Name or Jabber IDs or even Bonjour chats)
    I have not actually changed my iMessages ID to check but the app will continue to save to the same Folder and it should be able to retrieve recent ones.
    Visiting the folder and double clicking an older chat tends to launch it in a new window separate from the Messages Window itself (no Side bar no, Text field at the bottom, no "To" spot).
    8:31 PM      Friday; March 29, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

Maybe you are looking for

  • How do I clear the screen in console application?

    In C or C++ we can clear the screen by clrscr() function. How can I acheive something similiar to this in Java

  • SQL Question - Interesting One

    I need to write a SINGLE SQL statement which has two different queries, if the first query retrieves records then there is no need to execute the second one, if the first query doesn't retrieve the records then I need to make use of second query to r

  • R/3 to R/3 IDOC Sending with HTTP

    Hello everybody, I'm trying to send an Idoc from one R/3 System to another, I'm trying to use the function module IDOCS_OUTPUT_VIA_XML_HTTP and it requires an XML HTTP port in we21, now I'm trying to create an HTTP RFC connection but I'm lost with th

  • Netweaver AS ABAP 7.1

    Hi All, what i want to know is where do i get Installation Master NWASABAP7.1 and other software? it not for download in service market place, is it only by DVD?......it would be great if anyone can help me....Thanks Malinda Wellawa

  • Elements 10 and iphoto 9.4.2 display problem

    I am using elements 10 apple app store version to edit photos kept in iphoto 9.4.2. On saving edited version of photo from elements back to iphoto the resultant image is displayed vastly magnified. No changes have been made either to elements or ipho