Problems printing logo in script

Hi all,
When displaying script-forms (e.g. dunning letters) in the system, the company logo is just fine. When printing, however, the logo is turned up-side down and inverted.
What can cause this to occur?
The system version is SAP ECC 6.0, and the SAPLPD version is 6.28 for Windows/NT.
All helpful answers will be rewarded!
Regards,
M.V.

If the logo is displayed correctly during print pre-view then it is none other then the printer setting problem. Inform your basis team they will help to close the issue.
Regards,
Sairam

Similar Messages

  • Why does my new hp 4500 G510n-z printer have a script error 2107 + won't print a page from on line?

    Good day to everyone.
    The new hp 4500 G510n-z is connected to an hp Pavilion dv7 laptop using windows 7, 64 bit.
    I can copy and paste the on line item into microsoft word and print it, but if I attempt to print the same item directly from the on line source I get " error has occurred inscript on this page"
                                   " Line 2107"
                                   " Char 1"
                                   "Error: Unspecified error"
                                   "Code 0"
                                   "URL res:// ieframe.dll/preview.js"
                                   " Do you want to continue running scripts on this page?"
    How can I work around this problem? 
    This hp pavilion dv7 laptop  has worked with hp officejet printers such as 5510, 5600, and 7210 for the past two years and I do not recall having this problem.   
     The problem seems to have arrived with the set up of the new hp 4500 officejet printer to my computer.
    Please help solve this problem.

    printer have a script error

  • Pdf reader X has problems with small pdf and printer with post script driver

    Hi friends.
    I have installed new Reader X and then i saw that, when i print a very small pdf with about 50 kb and i print it on a Laserjet 4000 printer the printer has problem with the amount of data that reader 10 produces.
    When i install a Postscript driver for the printer my computer makes up to 3.5MB printer data from a 50kb pdf.
    When i install a PCL driver for the printer my computer makes only 350kb from the same 50kb pdf file!!!!
    When i install Reader 9.3 the 50kb file becomes also only 350kb on the printer with post script driver, and i can print without problems also.
    my printer has 8 MB Ram and that should be enough for 3.5MB printer data.
    But when i print the pdf with 1 side only, the printer created a side who is only filled with 50% of the text, then there comes out a second page with the message.....not enough memory in the printer.
    i can not change the postscript driver to a pcl driver cause our ERP System can not handle printer with PCL drivers.
    Can someone help me please.........are there settings in Reader X who can solve my problem ???
    Thank you very much for help!

    put ? after rwcgi60.exe

  • SCRIPT Problem (Printing)

    Hi All.
    I am having a problem in printing invoice using SCRIPT.
    I am printing &item_amount(.2C) & i.e total amount of an line item.
    While debugging i am getting correct value but while printing it is printing value '0'
    And i am having this problem only for a particular invoice number, for other invoices script is printing correct data.
    Data in database is also correct.
    Thanks in advance.

    Hi,
    remove the c in the brackets.
    i.e. put &item_amount(.2) & .
    Regards,
    Sooness

  • Problems printing envelope from pdf file with logo & return address.

    I have the 6310 All-In-One Printer. I am experiencing major problems printing envelopes (standard size, #10) from a pdf file that is setup with a business logo, name , and address. First of all, the User Guide on page 63 directs you to load the envelope with the flaps up and on the left. This prints out return address in the lower right corner of the envelope front. I have insert the envelope opposite to the User Guide to get the information printed in the correct location, the upper left corner.
    Bigger problem - The logo, which is placed to the left of the business name and address will NOT print out. My preview printer window shows the logo, but it will not print. I cannot figure out what I am doing wrong.
    Suggestions???

    Kindly follow the steps here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01096354&tmp_task=useCategory&cc=au&dlc=en&lang...
    supported envelopes:
    Envelopes U.S. 10: 105 x 241 mm (4.125 x 9.5 inches)
    U.S. 9: 98 x 225 mm (3.9 x 8.9 inches)
    A2: 111 x 146 mm (4.4 x 5.8 inches)
    DL: 110 x 220 mm (4.3 x 8.7 inches)
    C6: 114 x 162 mm (4.5 x 6.4 inches)
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • How to print logo in printout using classical report.

    Hello Friends,
    By using below code i am displaying logo in output using Classical report.
    What my problem is it is not displaying in print out.
    Please help. or else tell me how to print logo in classical report as well as output print out.
    DATA: docking TYPE REF TO cl_gui_docking_container,
          picture_control_1 TYPE REF TO cl_gui_picture,
          url(256) TYPE c ,
          query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
          html_table LIKE w3html OCCURS 1,
          return_code LIKE w3param-ret_code,
          content_type LIKE w3param-cont_type,
          content_length LIKE w3param-cont_len,
          pic_data LIKE w3mime OCCURS 0,
          pic_size TYPE i,
          repid LIKE sy-repid.
    repid = sy-repid.
    START-OF-SELECTION.
      CREATE OBJECT picture_control_1
        EXPORTING
          parent = docking.
      CHECK sy-subrc = 0.
      CALL METHOD picture_control_1->set_3d_border
        EXPORTING
          border = 5.
      CALL METHOD picture_control_1->set_display_mode
        EXPORTING
          display_mode = cl_gui_picture=>display_mode_stretch.
      CALL METHOD picture_control_1->set_position
        EXPORTING
          height = 100
          left   = 700
          top    = 1
          width  = 200.
      "Position
      IF url IS INITIAL.
        REFRESH query_table.
        query_table-name = '_OBJECT_ID'.
        " Logo Name
        query_table-value = 'ENJOYSAP_LOGO'.
        APPEND query_table.
        CALL FUNCTION 'WWW_GET_MIME_OBJECT'
          TABLES
            query_string        = query_table
            html                = html_table
            mime                = pic_data
          CHANGING
            return_code         = return_code
            content_type        = content_type
            content_length      = content_length
          EXCEPTIONS
            object_not_found    = 1
            parameter_not_found = 2
            OTHERS              = 3.
        CALL FUNCTION 'DP_CREATE_URL'
          EXPORTING
            type     = 'image'
            subtype  = cndp_sap_tab_unknown
            size     = pic_size
            lifetime = cndp_lifetime_transaction
          TABLES
            data     = pic_data
          CHANGING
            url      = url
          EXCEPTIONS
            OTHERS   = 1.
      ENDIF.
      CALL METHOD picture_control_1->load_picture_from_url
        EXPORTING
          url = url.
      WRITE : /'Classical Report Logo'.
    Regards,
    Phaneendra
    Edited by: phaneendra punukollu on Dec 31, 2009 11:38 AM
    Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 4:52 PM

    Hello Nidhi,
    Thanks for your sugessition.
    Actual we have data from IDOCS and it is maintained in Ztables
    and need to dispaly in report ( Service centre - Warranty data ).
    The report is completed. So again going to Script means waste of time for us.
    So Plz help me  if possible in Classical report.
    Regards,
    Phaneendra

  • Facing problem with logo in the PDF attachment when sending mail...

    hi friends,
    i'm facing problem with logo in the PDF attachment to the mail.
    my requirement:
    1. enter spool number and mail id in the selection screen.
    process:
    1. now the program will fetch the spool data and converts it to PDF.
    2. but when i'm trying to send mail with this PDF as attachment.
    when i open the PDF file from the mail, logo is not coming properly (looks disturbed).
    can anyone help me how to resolve this issue...
    thanks in advance, murashali.

    hi dinakar, thanks for your mail...
    logo looks good in spool/script/smartform.
    even it look good when i download this spool to pdf and to the presentation server as pdf file.
    i'm using CONVERT_OTFSPOOLJOB_2_PDF.
    when i used CONVERT_ABAPSPOOLJOB_2_PDF, is gives a msg - 'spool number not found'.
    here i'm using folloing code to pass pdf to the function module: SO_NEW_DOCUMENT_ATT_SEND_API1.
    code:
    Transfer the 132-long strings to 255-long strings
      lt_mtab_pdf[] = pdf[].
      LOOP AT lt_mtab_pdf INTO lwa_mtab_pdf.
        TRANSLATE lwa_mtab_pdf USING ' ~'.
        CONCATENATE lv_gd_buffer lwa_mtab_pdf INTO lv_gd_buffer.
        CLEAR lwa_mtab_pdf.
      ENDLOOP.
      TRANSLATE lv_gd_buffer USING '~ '.
      DO.
        lwa_mess_att = lv_gd_buffer.
        APPEND lwa_mess_att TO lt_mess_att.
        CLEAR lwa_mess_att.
        SHIFT lv_gd_buffer LEFT BY 255 PLACES.
        IF lv_gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    NOTE: problem i believe is with ''.  i'm getting this tilt symbol () in my pdf internal table.  here in the above code the line   TRANSLATE lv_gd_buffer USING '~ ' is changing the existing tilt to space.  so my logo is getting disturbed.
    even i tried with REPLACE this tilt with other char, but it doent work.
    can you give any idea...

  • Print Logo in Classic Report (Write Method,Not ALV)

    Hi All,
    I'm currently doing conversion of the All the Classic Report with addition of Header with 'LOGO'.
    I'm willing to find out that Function (CALL FUNCTION 'WWW_GET_MIME_OBJECT') is only able for display but not show out during printing.
    Is that any method, I can do it(Print with Logo) without conversion to SAP Script or Smartform that was exhausted.
    *Please take note is Classic Report with Write Method (Line by Line), Not ALV.
    Thank you all in advance
    Regards,
    Trevor Wong.

    Hi,
    It is possible to include logo in classical report but its not possible to print logo in classical report. It can be done in ALV's.
    Write  the code in Top-of-page event in ALV.
    The following is the code for inserting the logo in ALV.
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
               I_LOGO             = 'ENJOYSAP_LOGO'
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    ENDFORM.
    Regards
    Purnand

  • How can i print logo in all the page

    i've created a form(SAP script) which have  five page.pls can anybody tell me how can i print logo in all the five page?

    hi,
    u can try this in
          windows
    change window type as CONST or MAIN.
    cheers,
    sam

  • Problems printing PDF's using Adobe Acrobat 9 Pro

    During the last two weeks, I have been unable to print a PDF from my Adobe Acrobat 9 Pro. They appear okay on the screen, but print as gibberish.
    After consulting the forums, one workaround suggested was to print as image. Tried it, also prints gibberish.
    Another suggestion to update my printer software, did it. Still prints as gibberish. My priner is an Epston Stylus Photo R220.
    I'm a writer, not a software technician. I am not using a bootleg copy of the program, but an educational version, so Adobe won't offer me any advice over the phone without payment.
    Anything else I could try before paying?
    Diane Loupe
    [email address deleted by host]

    I have same problem as described above, but not always.  Seems to depend on the web page I am trying to print to Adobe. One consistent culprit is Bank of America.  Looks okay until I print to Adobe Acrobat 9 or 10. Then it's gibberish.  i had to copy to Word and then print Word to Acrobat or printer.  
    . Various computers,
    . same problem with either Acrobat 9 or 10.
    . Not a problem printing to Acrobat from a Word or Excel or Outlook document
    . Only from certain websites and not the entire page, only the OCR part. The objects: logos, pictures are okay, only text is messed up.
    Definitely would like Adobe to fix this.

  • Set filename of printed PDF via script

    Hi folks!
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    The script within Acrobat is finished and working. I thought, the InDesign script is finished ,too. But I was wrong -.-
    I merged the databasefile with the document and exported it as PDF. But after exporting, we noticed that the script within Acrobat isn't finding the adressheader where the ID is in. The script only noticed the text after that header. The result is, that Acrobat get's always "null" as ID
    If we print the PDF with our PDFprinter, the header could be read by our Acrobat script. I don't know why this is... But now I changed the script to print the files via our PDF printer. Unfortunately I can't set a name for my exported file - do you know if there is a possibility to print PDF's without prompting after each one and with a via script given name?
    Here you can see the old script for InDesign and right after it, the Acrobat sript. Maybe I made some mistake by generating my PDFexport and don't need to use the printer?
    INDESIGN SCRIPT:
      * prompts filebrowser and stores name and path of file in variable
    var sourceDocument = File.openDialog("Bitte Indesign-Dokument auswählen", "*.indd", false);
      * stores only prefix of filename for use as new filename
    var newName = sourceDocument.name.substr(0,  sourceDocument.name.length-5);
      * stores folder where file is stored
    var dbSourceFolder = sourceDocument.parent+"/";
      * prompts for databasefile where generating should begin
    var dbstartfile = File.openDialog("Bitte Start-Datenbankdatei auswählen", "*.txt", false);
      * gets basename of databasefile
    var dbstartfilename = dbstartfile.name.slice(0, dbstartfile.name.search(/_Teil+/));
      * gets number of first databasefile
    var i = dbstartfile.name.slice(dbstartfile.name.search(/_Teil+/)+5).slice(0, -4);
      * generates path name and name of first databasefile to use
    var dbSource = dbstartfile;
       *set PDF preset for generating PDF
    var PDFPreset= app.pdfExportPresets.item("GAG-PDF");
       * stops throwing of alerts
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    // if databasefile isn't existing message will be thrown
    if( dbSource.exists == false ) {
        // restart of alert throwing
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        alert("Datei " + dbSourceFolder+dbprefix+"_Teil"+i+".txt konnte nicht gefunden werden! \n\rBitte starten Sie den Vorgang erneut und geben Sie die richtige Datenbankdatei an." );
    // else process starts
    else {
        while(  dbSource.exists == true ) {
            // opens source indesign document without showing it
            mergeDocument = app.open(File(sourceDocument), false);
            // sets which databasefile should be used for data merge
            mergeDocument.dataMergeProperties.selectDataSource(File(dbSource));
            // starts merging of indesign document and database file
            mergeDocument.dataMergeProperties.mergeRecords();
            // exports generated document as PDF file
            app.activeDocument.exportFile(ExportFormat.pdfType, File(sourceDocument.parent+"/"+newName+"_Teil"+i+".pdf"), false, PDFPreset);
            // closes opened indesign document
            mergeDocument.close(SaveOptions.no);
            i++;
            // change filename of database file to get next file
            dbSource = File(dbSource.parent+"/"+dbstartfilename+"_Teil"+i+".txt");
    // restart of alert throwing
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    alert("PDF-Generierung abgeschlossen!");
    ACROBAT SCRIPT:
    * Path where files should be saved
    * Special Characters like spaces should be escaped with \
    * If you want to modify the folder, use following form:
    * "/Driveletter/Foldername/../LastFolderName/"
    * Make sure not to forget the / before and after the location
    var filepath = "/c/pdf_split_test/";
    * Number of expose pages - feel free to change
    var pageType = app.prompt("Bitte geben Sie die gewünschte Seitenzahl der Exposés an.", "");
    alert(pageType);
    * regular expression for search
    var idNumber = /08\d\d\d\d\-\d\d\d\-\d\d\d\d\d-\d\d\d-\d\d/g;
    * if possible this function extracts the searched number as string
    * @param rematch string which should be searched in document
    * @return null if rematch is not found or string if rematch is found
    function ExtractFromDocument(reMatch) {
      try {
             var Out = new Object();
             for (var i = 0; i < 1; i++)
              numWords = this.getPageNumWords(i);
              var PageText = "";
              for (var j = 0; j < 30;j++) {
                  var word = this.getPageNthWord(i,j,false);
                  PageText += word;
              var strMatches = PageText.match(reMatch);
              if (strMatches == null) continue;
          return strMatches;
      } catch(e)
          app.alert("Processing error: "+e)
    * tries to load given filename (extracted number)
    * @param filename string of file which should be checked
    * @param n number to iterate while checking for files
    * @return true if file exists or false if not
    function checkIfFileExists(filename, n) {
        var existingDoc = false;
        try {
            if( n == 0) {
                var checkDoc = app.openDoc(filepath+filename+"-000.pdf");
            } else {
                var checkDoc = app.openDoc(filepath+filename+"-000_"+n+".pdf");
            checkDoc.closeDoc();
            existingDoc = true;
        } catch (e) {
        if( existingDoc == true ) {
            n = n+1;
            n = checkIfFileExists(filename, n);
        return n;
    var pageAmount = this.numPages;
    for( i=0; i<pageAmount; i+pageType ) {
        var filename = ExtractFromDocument(idNumber);
        fileExistence = checkIfFileExists(filename, 0);
        if(fileExistence != 0) {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000_"+fileExistence+".pdf"}); 
        } else {
            this.extractPages({nEnd:(pageType-1), cPath : filepath+filename+"-000.pdf"});
        this.deletePages({nStart:0, nEnd: pageType-1});

    Hi,
    I have a little problem with generating a PDF. First my Workflow:
    I have a InDesign document with 6 pages. This document is merged with a databasefile containing 100 records. After merging it, we have to generate a PDF file. This PDF file is opened within acrobat. Within the document, I'm searching for an ID each record has so I can split the document to 100 files (each with 6 pages) and name it by the ID I found.
    Why you don't export 6-page PDFs directly from InDesign?
    robin
    www.adobescripts.co.uk

  • Printing duplex for script

    hi,
    i face problem of printing my PO in duplex mode, i have set the print mode in script as duplex, by it still doesnt come out in duplex.
    i have tested with SAP standard text :SAPSCRIPT-PRINTMODETEST and it shows correctly that the printer works for simplex and duplex with SAP.
    so what is the problem here? please help. i have running out of idea how to do this. thanks

    Hi,
    Based on the page number try to print the footer. Try to define the text elements in the same window. In driver program, try to keep if condition based on page number then print the correspoding text elements.
    or
    In driver program-> calling Text elemnts-> keep this code in Text element in script.
    consider the MOD of page No by 2.
    If it is Zero
    print that 'Conttd on reverse'.
    else.
    print 'Contd'.
    endif.
    Thanks & Regards,
    Chandralekha.

  • How to print  logo when ever new customer arrises?

    hi friends
    i have range of customers . i have to print logo when ever new customer arrises . if the customer data continues in 2nd page i dont have to print logo. how to get it ?
    regards
    thiru

    hi,
    are you using smartform or script for printing ?
    write the condition in program lines using the control commands ie on change of customer.
    Take separete window for logo and print that in the first page so that if the customer data extend as to next page logo window will not appear in the next window.
    and is there any table maintained for logos and customer details. if its maintained it would be easy to put the condition in the print program itself or else you can hadle it in the form.
    Regards,
    Prathima.

  • HP Photosmart C7280 All-in-one problem printing. Ink System Failure has failed unable to copy--

    I'm having a problem printing on my HP Photosmart C7280 All-In-One. The following message is what came up on the printer screen: Ink System Failure has failed unable to copy, receive faxes or print. Refer to printer documentation Error O.cl9a0007.
    Does anyone have any suggestions?
    This question was solved.
    View Solution.

    Hey Spider! First off welcome to the forum.
    I would recommend removing all the ink cartridges, unplugging the USB cable from the computer that connects to the printer, and then shutting the printer off completely by removing the power cord. Then restart your computer. Turn the printer back on but leave it disconnected from the computer. After it has finished its power on cycle go ahead and insert the ink cartridges back into the printer and be sure to seat them properly.
    After you have all the cartridges back in the printer properly then connect it to the computer. See if this resolves the issue. If not post back with any findings.
    Thanks,
    SeanS
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Problem printing out to a parallelport printer

    Hello, I am using the javax.comm.*; package and I am having problems
    printing to the parallelport.
    Well, it prints out the string but the problem is that the light for paper feed
    starts blinking eventhough there is paper , once I click the paper feed button
    the printer then prints out the string.
    So, basically, everything is ok, apart from that I have to press the paper feed
    button for each time I want to print something.
    There is an error in my code somewhere, but as I am new to port communications I cannot understand what to do.
    Below is my code, please help.
    Thanks!
    public void print(String s){
    Enumeration ports;
    CommPortIdentifier portId;
         try{
              portId = CommPortIdentifier.getPortIdentifier("LPT1");
             addPort(portId,s);
         }catch (NoSuchPortException e){
                     e.printStackTrace();
    public static void addPort(CommPortIdentifier portId,String s){
         try{
              ParallelPort port = (ParallelPort)portId.open("LPT1",2000);
            /*port.notifyOnError(true);
            port.notifyOnBuffer(true);
            port.addEventListener(new ParallelPortEventListener(){
                   public void parallelEvent(ParallelPortEvent ppe){
                           System.out.println(ppe.toString());
                           System.out.println("An event has occured");
              try{
                   OutputStream os = port.getOutputStream();
                   if(os == null){
                        System.out.println("Os is null");
                   else{          
                          os.write(s.getBytes());
                   //os.flush();
              catch(Exception eis){
                   eis.printStackTrace();
              port.close();
         catch(PortInUseException e){
              System.out.println(e.currentOwner);
              e.printStackTrace();
         catch(Exception ecl){
              ecl.printStackTrace();
    }Of course this class imports :
    import java.util.Enumeration;
    import javax.comm.*;
    import javax.comm.CommPort;
    import javax.comm.CommPortIdentifier;
    import javax.comm.ParallelPort;
    import javax.comm.NoSuchPortException;
    import javax.comm.PortInUseException;
    import java.io.*;

    Wow - I wonder how the OP thought that the
    Developers Home > Developer Forums > Java Forums >
    Java Mobility Forums > Consumer and Commerce >Consumer and Commerce General >
    Forum was a correct choice for this problem??It's the same logic that leads one to believe that being new to port communications omits them from the responsibility of using general troubleshooting techniques to isolate/identify a problem.
    This logic often leads to obscure questions also, sadly.

Maybe you are looking for