Smartform - Printing Graphic store in Printer Harddisk via PCL

Dear Folks,
I have a logo stored as a Macro (prn file) in my HP Laser Jet 4350 printer's hard disk.
When printing any smart forms from that printer, the logo is suppose to be printed together from the printer harddisk. I am not to import the graphic into the smart form itself.
I read that there may be a need to write PCL commands in the Smartform to trigger the printing. Is this correct?
If so, can anybody direct me to useful references to learn how to do this?
Thank you.
Best Regards,
Junwen

Hi,
This is how it is handled
<b>Hexadecimal Data: </b>HEX, ENDHEX Use this command to send printer commands in a printer language directly to a printer that supports that language. <b>SAPscript does not interpret the data enclosed by the HEX and ENDHEX command pair</b>, but <b>inserts it unchanged into the output stream. </b>
This technique allows objects with a pixel-oriented format (for example, graphics) to be printed as part of a SAPscript text. The HEX and ENDHEX command pair enclose the printer commands and data as hexadecimal text, so that the printer formatting routines interpret each successive pair of characters as a single hexadecimal value in the range of 0 to 255. The characters 0 to 9 and A to F for representing the values 10 to 15 are valid hexadecimal characters. The text may also include comment lines (these begin with /* in the format column), which will not be interpreted as hexadecimal data but are simply passed over by the formatting routines.
<b>Syntax: /: HEX [TYPE printer_language] </b>The HEX command denotes the start of the hexadecimal data. Subsequent text lines are interpreted as described above. If the TYPE parameter is present, the data will be sent to the printer only if the printer understands the specified printer language.
The following printer languages are <b>currently supported: POST (Postscript), PRES (Kyocera Prescribe) and PCL (HP Printer Control Language)</b>. /: HEX [TYPE printer_language] [XPOS x_position] [YPOS y_position]
Here is the answer for your second question,
<b>The output cursor is set to the absolute position indicated by the specified X and Y position parameters before the hexadecimal data is printed.</b> If either the X or the Y position is not specified, then 0 will be assumed for this parameter. /: HEX [TYPE printer_language] [HEIGHT height] [LEFT left_indentation] The HEIGHT parameter determines the amount of space to be reserved on the page for the output of the hexadecimal data. Any text following the ENDHEX command will be printed below this point. If the LEFT parameter is also specified, then the output of the hexadecimal data will is indented from the left margin by the specified amount.
/: HEX TYPE PCL HEIGHT '7.5' CM LEFT '2.25' CM /* Creator: report ZQVNTE30 date 19940705 time 125129 user SAPSCRIPT /= 1B2A7230461B2A743735521B2A7231411B2A62304D1B2A62343057FFFFFFFFFFFF /= FF1B2A62343057FFFFFFFFFFFFC0007D00DFC0F7D0000000000000000000000017 /: ENDHEX This data is printed only by an HP PCL printer (fro example, HP LaserJet). 7.5 cm of space is allocated on the page for the output of the data and the output cursor is indented 2.25 cm to the right of the form window edge.
You said its useful, now this will solve your problem
Feel free to revert back.
--Ragu

Similar Messages

  • Get the printer Graphics context before printing

    My applikation can print multiple pages where each page may look different. So I decided to implement the Pageable interface. When I create the object which implements the Pageable interface I must create the pages (which implement the Printable interface) of my print job. The number of pages depends of the size of some text paragraphs.
    My problem is that I must know the Graphics context object which will be used for printing when I create the pages of my print job because I must use the Graphics context to measure text. But I can not see a possibility to get the Graphics context before the actual printing starts with printJob.print(...).
    Has anyone an idea how I can solve the problem?

    Hi,
    if its a Smartform we can find the device in structure ssfcompop-tddest. Usually we define one structure with same type and pass the value to Smartform Function Module in driver program...
    If its a 'SAP SCRIPT' u can find the device in structure 'ITCPO-tddest', we pass this value to 'OPEN_FORM' Function Module in driver program.
    Hope it helps!!
    Regards,
    Pavan

  • Store+search+view+print inventory,store+search+print rent information

    Good morning,
    I need some help regarding my Java Project. I was told by my lecturer to do one program[probably java applets] to store all informations about CDs and Videos.
    The program should be able to :
    1)store,view,search and print the informations of CDs and Videos.
    2)store,view,search and print the informations of customers
    This are the informations that need to be stored for:
    CDs:
    1. Title of album
    2. artist
    3. number of tracks
    4. total playing time
    5. comments
    Videos:
    1. Title of video
    2. Name of director
    3. total playing time
    4. comment
    For search CDs and Vidoes information, user will key in the artist name(for CDs) and director name (for video)
    For the renting section:
    1)the employee will be able to key in customer transaction.
    2) The customer must be a member to rent the CDs and Videos.If not, he / she must registers first.
    3)The transaction will be recorded in terms of the CDs/Videos informations, date of rent,due date and payments.
    4)The applet must also can identify which customer that has not pay/not return yet. If he or she does not return yet, he or she wont be able to rent .
    Here is some of coding that I have made:
    Name:TestRandomAccessFile[only for Videos]
    *i dont know how to combine CDs.
    *This applet coding only consists of register informations about Videos and View ONLY
    //TestRandomAccessFile.java: Store and read data
    //using RandomAccessFile
    package Store;
    import java.io.*;
    import java.awt.*;
    import java awt.event.*;
    import javax.swing.*;
    import CHapter9.MyFrameWithExitHandling;
    import javax.swing.border.*;
    public class TestRandomAccessFile extends MyFrameWithExitHandling
         //Create a tabbed pane to hold two panels
         private JTabbedPane jtpVideo = new JTabbedPane ();
         //Random access file for access the student.dat file
         private RandomAccessFile raf;
         //Main method
         public static void main (STring[]args)
         TestRandomAccessFile frame = new TestRandomAccessFile ();
         frame.pack ();
         frame.setTitle ("Test Random Access File");
         frame.setVisible ("True");
         //Default constructor
         // Open or create a random access file
         try
         raf=new RandomAccessFile("video.dat","rw");
         catch(IOException ex)
         System.out.print ("Error: " + ex);
         System.exit (0);
         //Place buttons in the tabbed pane
         jtpVideo.add (new RegisterVideo(raf),"Register Video");
         jtpVideo.add (new ViewVideo(raf),"View Video");
         //Add the tabed pane to the frame
         getContentPane().add(jtpVideo);
         //Register video panel
         class RegisterVideo extends Jpanel implements ActionListener
         //Button for registering a video
         private JButton jbtRegister;
         //Video information panel
         private VideoPanel videoPanel;
         //Random access file
         private RandomAccessFile raf;
         //COnstructor
         public RegisterVideo (RandomAccessFile raf)
         //Pass raf to RegisterVideo Panel
         this.raf=raf;
         //Add videoPanel and jbtRegister in the panel
         setLayout Pnew BorderLayout ());
         add (videoPanel= new VideoPanel(),BorderLayout.CENTER);
         add(jbtRegister= new JButton ("Register"),BorderLayout.SOUTH);
         //Register listener
         jbtRegister.addActionListener(this);
         //Handle button actions
         public void actionPerformed(ActionEvent e)
         if (e.getSource()==jbtRegister)
         Video video=videoPanel.getVideo();
         try
         raf.seek(raf.length());
         video.writeVideo(raf);
         catch (IOException ex)
         System.out.print ("Error:" + ex);
         //View video panel
         class ViewVideo extends JPanel implements ActionListener
         //Buttons for viewing video information
         private JButton jbtFirst,jbtNext,jbtPrevious,jbtLast;
         //Random access file
         private RandomAccessFile raf=null;
         //Current Video Record
         private Video video = new Video ();
         //Create a Video panel
         private StudentPanel studentPanel=new StudentPanel ();
         //File pointer in the random access file
         private long lastPos;
         private long currentPos;
         //Contsructor
         public ViewVideo (RandomAccessFile raf)
         //Pass raf to ViewVideo
         this.raf=raf;
         //Panel p to hold four navigation buttons
         JPanel p=new Jpanel();
         p.setLayout(new FlowLayout(FlowLayout.LEFT));
         p.add(jbtFirst=new JButton("First"));
         p.add(jbtNext=new JButton("Next"));
         p.add(jbtPrevious=new JButton("Previous"));
         p.add(jbtLast=new JButton("Last"));
         //Add panel p and studentPanel to ViewPanel
         setLayout(new BorderLayout());
         add(studentPanel;BorderLayout.CENTER);
         add(p,BorderLayout.SOUTH);
         //Register listeners
         jbtFirst.addActionListener(this);
         jbtNext.addActionListener(this);
         jbtPrevious.addActionListener(this);
         jbtLast.addActionListener(this);
         //Handle navigation button actions
         public void actionPerformed(ActionEvent e)
         String actionCommand=e.getActionCommand();
         if(e.getSource() instanceof JButton)
         try
         if ("First".equals(actionCommand))
         if(raf.length()>0)
         retrieve(0)l
         else if ("Next".equals(actionCommand))
              currentPos=raf.getFilePointer();
              if (currentPos<raf.length())
         retrieve(currentPos);
         else if ("Previous".equals(actionCommand))
              currentPos=raf.getFilePointer();
              if (currentPos<raf.length())
         retrieve(currentPos-2*2*Video.RECORD_SIZE);
         else if ("Last".equals(actionCommand))
              lastPos=raf.getFilePointer();
              if (lastPos<raf.length())
         retrieve(lastPos-2*Video.RECORD_SIZE);
         catch (IOException ex)
         System.out.print("Error:"+ex);
         //Retrive a RECORD at specific position
         public void retrieve(long pos)
         try
         raf.seek(pos);
         video.readVideo(raf);
         videoPanel.setVideo(video);
         catch (IOException ex)
         System.out.print ("Error lagi la wei:"+ex);
         //This class contains static method to read and write fixed length      //records
         class FixedLengthStringTo
         //Read fix number of the chracter from DataInput stream
         public static String readFixedLengthString(int size;DataInput in)
         throws IOException
         char c[]=new char [size];
         for (int=0;i<size;i++)
         c=in.readChar();
         return new String(c);
         //Write fixed number of chracter (string with padded space
         //to DataOutput Stream
         public static void writeFixedLengthString (String s,int size, Data.Output out) throws IOException
         char cBuffer[]=new char[size];
         s.getChars(0,s.length(),cBuffer,0);
         for (int i=s.length();i<cBuffer.length;i++)
         cBuffer[i]=' ';
         String newS=new String (cBuffer);
         out.writeChars(newS);
    File name:CD
    package Kedai;
    import java.io.*;
         public class CD
         private String title;
         private String artist;
         private String tracks;
         private String time;
         private String comment;
         //Specify the size of four string fileds in record
         final static int TITLE_SIZE=32;
         final static int ARTIST_SIZE=32;
         final static int TRACKS_SIZE=20;
         final static int TIME_SIZE=10;
         final static int COMMENT_SIZE=40;
         //the total size of the record un bytes,a Unicode
         //character is 2 bytes size
         final static int RECORD SIZE= (TITLE_SIZE+ARTIST_SIZE+TRACKS_SIZE+TIME_SIZE+COMMENT_SIZE);
         //Default constructor
         public CD()
         //Construct with specified data
         public CD (String title,String artist,String tracks,String time,String comment)
         this.title=title;
         this.artist=artist;
         this.tracks=tracks;
         this.time=time;
         this.comment=comment;
         public String getTitle()
         return title;
         public String getArtist()
         return artist;
         public String getTracks()
         return tracks;
         public String getTime()
         return time;
         public String getComment()
         return comment;
    //Write a CD to a data output stream
    public void writeCD (DataOutput out) throws IOException
    FixedLengthStringIO.writeFixedLengthString(title,TITLE_SIZE,out);
    FixedLengthStringIO.writeFixedLengthString(artist,ARTIST_SIZE,out);
    FixedLengthStringIO.writeFixedLengthString(tracks,TRACKS_SIZE,out);
    FixedLengthStringIO.writeFixedLengthString(time,TIME_SIZE,out);
    FixedLengthStringIO.writeFixedLengthString(comment,COMMENT_SIZE,out);
    //Read CD from data input stream
    public void readCD(DataInput in) throws IOException
    title=FixedLengthStringIO.readFixedLengthString(TITLE_SIZE,in);
    artist=FixedLengthStringIO.readFixedLengthString(ARTIST_SIZE,in);
    tracks=FixedLengthStringIO.readFixedLengthString(TRACKS_SIZE,in);
    time=FixedLengthStringIO.readFixedLengthString(TIME_SIZE,in);
    comment=FixedLengthStringIO.readFixedLengthString(COMMENT_SIZE,in);
    File name:Video
    package Kedai;
    import java.io.*;
         public class Video
         private String title;
         private String director;
         private String time;
         private String comment;
         //Specify the size of four string fileds in record
         final static int TITLE_SIZE=32;
         final static int DIRECTOR_SIZE=32;
         final static int TIME_SIZE=10;
         final static int COMMENT_SIZE=40;
         //the total size of the record un bytes,a Unicode
         //character is 2 bytes size
         final static int RECORD SIZE= (TITLE_SIZE+DIRECTOR_SIZE+TIME_SIZE+COMMENT_SIZE);
         //Default constructor
         public Video()
         //Construct with specified data
         public Video (String title,String director,String time,String comment)
         this.title=title;
         this.director=director;
         this.time=time;
         this.comment=comment;
         public String getTitle()
         return title;
         public String getDirector()
         return director;
         public String getTime()
         return time;
         public String getComment()
         return comment;
    //Write a video to a data output stream
    public void writeVideo (DataOutput out) throws IOException
    FixedLengthStringIO.writeFixedLengthString(title,TITLE_SIZE,out);
    FixedLengthStringIO.writeFixedLengthString(director,DIRECTOR_SIZE,out);
    FixedLengthStringIO.writeFixedLengthString(time,TIME_SIZE,out);
    FixedLengthStringIO.writeFixedLengthString(comment,COMMENT_SIZE,out);
    //Read video from data input stream
    public void readVideo(DataInput in) throws IOException
    title=FixedLengthStringIO.readFixedLengthString(TITLE_SIZE,in);
    director=FixedLengthStringIO.readFixedLengthString(DIRECTOR_SIZE,in);
    time=FixedLengthStringIO.readFixedLengthString(TIME_SIZE,in);
    comment=FixedLengthStringIO.readFixedLengthString(COMMENT_SIZE,in);
    I need help in terms of:
    1)store,view,search and print the informations of CDs and Videos.
    2)store,view,search and print the informations of customers
    What should I modify my coding above?What should I do next?Can anyone give me the code since I'm not good enough in creating Java coding.Please. The submission is on 30 September

    You made three mistakes:
    1) You posted to a JSP/JSTL forum when asking about applet code. Maybe you should redirect your thread to a more appropriate forum - Like one for Applets or general Java Programming.
    2) You waited for the last few days to try tosolve your problem. If you spent time working on it little by little you would be closer to a solution.
    3) You begged for someone to do the work for you. Asking for help is one thing. That I was willing to do, even though you posted to the wrong forum, but then you said: "someone do it for me because I am not good enough" which really means: "Someone help me cheat and hand in your work as my own because I am too lazy to do it myself."
    If you can't do the work, maybe you should drop the course.

  • Prints graphics, but not text. Firefox 3.5.10

    I can only print graphics - can not print text part of page or email from Firefox. Prints OK from Wordperfect, wordpad, notepad and a print screen from XP. Canon Pixma MP780, XP SP2 As far as I can tell all settings are correct for the printer in the control panel.
    == This happened ==
    Every time Firefox opened
    == just started

    Hi,
    Try printing a Supply Status report, can you see any of the colors printed correctly? (Black, Magenta, Cyan and Yellow) or there may some missing colors?
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02017194&cc=us&dlc=en&lc=en&product=3422472&tmp...
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • SMARTFORMS printing graphics from URL

    I do not find anything yet to print graphics on SMARTFORM using variable name from a url NOT via SE78 Graphics Administration Document Server. 
    There is solution to load SE78 Document Server via BDC but I am looking for solution where Document Server is not loaded with excessive images AND NOT solution writing over a single image there; I want it actually redirected to another url address.
    I do understand that I will maintain a table having the url address AND that I can even display from SMARTFORM; I am asking for solution that actually prints the stored image.

    Dear Michael,
    good to see you..
    I am facing the same problem for using the image from URL in SMARTFORM...
    If you got solved the problem please give me the suggestions how you had done this....
    Please,....
    Thanks in advance,
    Kruthik

  • Problem printing horizontal text in smartform with zebra Z6M label printer

    hello,
    The situation is this:
    There is a Z smartform wich prints a label to a zebra Z6M label printer with the text and barcodes vertically.
    The form have a command in the main windows with the parameter: S_LZPL_SETUP     '^FWR'
    This label works fine, but the client want to change the form, they have told me to create a new smartform and print the info horizontally, using the same printer.
    The tests i have done are the following:
    create a smartform from ground and write a template text and a barcode with a new font of system barcodes. the bardoce is shown ok(it is shown horizontally), the problem is that the template text is shown vertically, as in the original smartform.
    then i tried on another zebra ZM600 label printer, similar model, but not the same, and the smartform printed was ok (text and barcodes shown horizontally). So i think is a configuration setting problem, but i dont know where to search.
    i have checked the label printer parameters in SPAD, but didnt find anything souspicios.
    have you any idea?
    thanks in advance.

    See these if they be of any help.....
    BARCODE:
    goto smartform styles-> create a style-->
    create a character format.
    under standard settings give the bar code name
    use this style in ur smartform. select the data field which u want to barcode print and assign the character format
    Similarly
    SAPSCRIPT
    open the form and click the character format button and
    repeat the step as above....
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/frameset.htm
    Go to Character formate in your form.
    create a new char formate with enable BAR code AND
    you can give its type too.
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    go through these links and cose u r previous threads,
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    smartform - barcode
    http://www.erpgenie.com/abap/smartforms.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    a barcode printer
    a barcode reader
    a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Creating Bar code:
    ) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Check this thread for detail information.
    How to print Barcode in te SAP SCRIPTS?

  • Smartform printer issue LOCL/SAP PRINTER NAME

    Hi All,
    I have this smartform and driver program which i print through an output type from
    VF03.
    When i print with printer as LOCAL, it prints right.
    However when i use the same printer, this time specifiying the printer name
    the shadings and colors get distorted. The greys are printed as jet black.
    This is the same printer, only the way i reference it has changed.
    What must i do. Can i fix this without basis help?
    John

    Hi John,
    Check the background shading of the windows of the Smartform where you get the black boxes. If it is set something like this:
    Color: Grey
    Saturation: 100%
    this can be the problem.
    I know it is strange but some black and white printers cannot handle this setting. They only know one color black so the ignore the color setting and just take the saturation 100% setting.
    The reason it works with LOCL and device type SAPWIN is that the print data is created in Windows and sent to the printer as graphic.
    If you wnat a gray background to a window, change the shading for window -> tab 'Output Options' to:
    Color: Black
    Saturation: 20%
    and this should resolve the problem.
    Then create a new spool and check if the problem is resolved. See SAP Note #400050.
    Regards,
    Aidan

  • Does HP store eprint print jobs on their mail servers?

    We recently had an ePrint-based printer set up in our organization, but there have been some questions about the security of the print jobs sent to the printer.
    HP's FAQ only states that they cannot guarantee security until the email is received and that they use a secure connection to the printer when delivering the print job.  The questions I have are, what are the details of the "secure" connection (i.e., what is the encryption level of the connection), and what does HP do with the print job emails they receive?  Do they track or log them in any way?  Do they store the print jobs/emails?  If so, what is their retention time?  Where are the servers located (which country)?
    Thank you in advance.

    bobkat9 wrote:
    We recently had an ePrint-based printer set up in our organization, but there have been some questions about the security of the print jobs sent to the printer.
    HP's FAQ only states that they cannot guarantee security until the email is received and that they use a secure connection to the printer when delivering the print job.  The questions I have are, what are the details of the "secure" connection (i.e.., what is the encryption level of the connection), and what does HP do with the print job emails they receive?  Do they track or log them in any way?  Do they store the print jobs/emails?  If so, what is their retention time?  Where are the servers located (which country)?
    Thank you in advance.
    bobkat9,
    Is your organization using consumer eprint, or HP Enterprise Eprint?
    In the case of HP Enterprise Eprint your organization has set up its own server that receives eprint requests. Data is sent through a secure, encrypted channel via the BlackBerry Mobile Data System (MDS). So whatever level of encryption that supports protects your print job between your mobile device and the Enterprise server.  Once the eprint job has been received it is handled with whatever level of security your internal IT environment has been configured for on your organizations network.  If jobs are stored on your HP Enterprise Eprint server it is based on your own configuration of that server.  Jobs may be stored on the device where they are printed is also based on the the configuration of that enterprise device.
    You can find the details of this process here:
    http://h71028.www7.hp.com/enterprise/downloads/4AA0-8149ENW.pdf
    In the case of HP Consumer eprint job travels from your device to hp servers in the cloud, we can not ensure the security of your email as it travels through servers that we do not own.  If you are concerned about unwanted email to your print device you can log onto Eprint Center and configure the spam filter for your device to limit the email it will accept.  Once HP Servers receive your email it is sent over a secure channel to your device.  Here is a FAQ that offers some data, but does not specify what level of encryption is supported.
    https://h30495.www3.hp.com/help#eprint
    Here is a wikipedia document, this isn't HP provided but the diagram seems to imply that encryption between the HP cloud and the device is HTTPS.  I'll will see if I can confirm that information.
    http://en.wikipedia.org/wiki/HP_ePrint
    I don't believe HP discloses the location of their cloud server infrastructure.  Since HP is a global company I can not reliably tell you where they are located. If I find this information out I will post it here.  I have also not yet discovered how long HP will hold a print job once it is printed (if at all).  I do know you can see the status of a print job using the Eprint Center.  So it is safe to assume a job is held at least until it is printed or canceled.  You could probably do a test by sending a print job and making the printer unavailable and see how long a job sits in a pending state until it disappears, or if Eprint Center allows you to set any kind of setting around this.
    If you are using air-print, or Google Cloud print then the encryption and job hold time would be based on what that Apple Solution or Google Solution promises for their services.   
    If you are someone who knows more about 'cloud services' then this might be useful: http://h20195.www2.hp.com/v2/GetPDF.aspx/4AA3-4548ENW.pdf
    Hope this Helps,
    Jen
    -- Please give kudos if this helped.

  • I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. Any tips on how to do this?

    I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. I installed the current Bonjour printer services software on the Windows machine, and separately installed the driver software for the Epson printer on the WIndows machine.  Running the bonjour wizard, I get an alert saying 'I don't have sufficient access to my computer to connect to the selected printer'.
    The printer has 'sharing' turned on from the Mac end; this works with a Powerbook via the wireless connection.  Sharing is also turned on in the Windows printer control panel for this printer (under properties).  The Mac is a G5 running 10.5.8.  When I try to print a page from the Windows machine it gets hung in the print queue.
    Any advice how to proceed would be appreciated!
    thx,

    I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. I installed the current Bonjour printer services software on the Windows machine, and separately installed the driver software for the Epson printer on the WIndows machine.  Running the bonjour wizard, I get an alert saying 'I don't have sufficient access to my computer to connect to the selected printer'.
    The printer has 'sharing' turned on from the Mac end; this works with a Powerbook via the wireless connection.  Sharing is also turned on in the Windows printer control panel for this printer (under properties).  The Mac is a G5 running 10.5.8.  When I try to print a page from the Windows machine it gets hung in the print queue.
    Any advice how to proceed would be appreciated!
    thx,

  • Problems Printing to Shared Windows Printer Via SAMBA (foomatic error 255)

    I can NOT print from my MacBookPro to a printer that's shared out from my Windows PC. Of course, printing to this same printer from my PC works fine.
    Please help me resolve this printing problem.
    Read on for more details regarding my printing woes!
    I can successfully setup my printer on the MAC side using the Printer Setup utility. I see the shared out printer on my MAC; I can pick the printer's manufacturer and model. Everything looks ok regarding the setup of the printer on the MAC side.
    However, when I try to print a file from the MAC, the printer never prints. The print job appears to get queued on the MAC side. However, after a few seconds, the printer queue displays "foomatic-rip stopped unexpectedly with error 255" (if I selected a foomatic printer driver from the hpijs). Otherwise, it says "NTSTATUS_NOMEMORY" error (if I selected a gutenprint driver instead).
    The PC's Windows event logs show no problems. Indeed, the Security event log shows successful authentication & access to the printer.
    The MAC's CUPS error_log displays the these error messages:
    GutenPrint fails with NTSTATUS_NOMEMORY error, then says Cannot connect to SAMBA host
    hpjisGhostscriptFoomatic fails with "The process 'foomatic-rip' stopped unexpectedly with status 255"
    Later, I will post the exact entries from this log (I am currently separated from my MAC laptop until later this evening).
    My Apple MacBookPro is running MAC OS X 10.4.11 ("Tiger"). The printer is an HP DeskJet 5150 connected via a USB port to my DELL 8400 PC. This desktop PC is running Microsoft's "Windows XP Pro Service Pack 2").
    Based on reading other posts (here) and at the Linux Open Foundation (printing), I have already done the following:
    Installed gutenprint;
    Installed foomatic (foomatic-rip v3.42.2.15);
    Installed ghostscript (espgs v7.07.1); &
    Installed hpijs (hpijs v2.7.10).
    NOTE: This is NOT the same problem that I posted earlier regarding inability to print to a shared printer with Leopard (MAC OS X 10.5.0). Today's posting deals with my inability to print to the shared printer from Tiger (MAC OS X 10.4.11).
    NOTE: This may be a "red herring" but you may need this additional background to help resolve my printing problem. Originally, I ran "Tiger" (MAC OS X 10.4.10) on my MacBookPro laptop. Of course, networked printing worked fine at this point. On October 28, 2007, I upgraded to "Leopard" (MAC OS X 10.5.0). Leopard was a "disaster" for me (printing, networking & many other problems). On November 9, 2007, I "punted" and re-installed "Tiger" (MAC OS X 10.4.10) from Apple's original CD. On November 15, 2007, I upgraded to MAC OS X 10.4.11 via Apple's software update utility. I vaguely recollect that networked printing was working after I returned back to Tiger.
    /s/
    Tony H.

    As promised in my initial post regarding my printing problem, here are the actual error messages displayed in the Print Queue (Hp5150) and the "cups" error_log when I try to print any file to my HP 5150 that's directly connected to my DELL PC (Windows XP Pro) but shared out so that my MacBookPro should be able to print to it.
    Printer Queue Hp5150 window displays:
    =========================
    The process "foomatic-rip" stopped unexpectedly with status 255.
    /var/log/cups/error_log displays:
    =====================
    I [04/Jan/2008:20:25:17 -0500] Job 3 queued on 'hp5150' by 'anthonyhackenberg'.
    I [04/Jan/2008:20:25:17 -0500] Started filter /usr/libexec/cups/filter/cgpdftops (PID 681) for job 3.
    I [04/Jan/2008:20:25:17 -0500] Started filter /usr/libexec/cups/filter/pstops (PID 682) for job 3.
    I [04/Jan/2008:20:25:17 -0500] Started filter /usr/libexec/cups/filter/foomatic-rip (PID 683) for job 3.
    I [04/Jan/2008:20:25:17 -0500] Started backend /usr/libexec/cups/backend/smb (PID 684) for job 3.
    E [04/Jan/2008:20:25:17 -0500] [Job 3] Connection failed with error NTSTATUS_NOMEMORY
    E [04/Jan/2008:20:25:17 -0500] [Job 3] Unable to connect to SAMBA host, will retry in 60 seconds...Insecure $ENV{PATH} while running setuid at /usr/libexec/cups/filter/foomatic-rip line 215.
    E [04/Jan/2008:20:25:17 -0500] PID 683 stopped with status 255!
    I [04/Jan/2008:20:25:17 -0500] Hint: Try setting the LogLevel to "debug" to find out more.
    E [04/Jan/2008:20:26:17 -0500] [Job 3] Connection failed with error NTSTATUS_NOMEMORY
    E [04/Jan/2008:20:27:17 -0500] [Job 3] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: Connection failed with error NTSTATUS_NOMEMORY
    E [04/Jan/2008:20:28:17 -0500] [Job 3] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: Connection failed with error NTSTATUS_NOMEMORY
    Again, the system Event logs on the Windows XP side show no error messages. In particular, the Security Event Log shows that authentication was successful; so, the MacBookPro's client process was granted access to the printer on the DELL PC side of the transaction.
    Message was edited by: ClassicalApproach

  • Print Service- SMB - Can't get jobs to print on shared HP printer via SMB

    I have been banging my head on the wall on this one, and a call to Apple support ended up with a lot of diags followed by “It must be the printer driver, call HP”
    Has anyone successfully shared HP Officejet/Deskjet/Photosmart printers from Mac OS X 10.5.x via SMB?
    HP Officejet 6110 (also tried with Deskjet and Photosmart printers with similar results)
    Connected to Mac OS X 10.5.2 server via USB
    Drivers tested: HP All-in-one, Gutenburg, Foomatic
    Shared via Bonjour, IPP, and SMB for testing (Need just SMB for deployment)
    Connected to with OS X 10.5.2 non-server version
    Via Bonjour/IPP connects fine and prints with any of the above 3 drivers
    Via SMB connects and sends print jobs that never print
    The Server is receiving the print jobs, you can see it in the log, and if you have cover pages turned on you get a cover page for each job
    But, the job never actually prints anything
    I don't understand why it would be the driver since the same driver prints out fine via bonjour/IPP
    Also, if I connect the printer to a windows box and share it via SMB that driver works fine
    Connecting to the same SMB share from windows with the HP all-in-one driver produces the same results, the Server receives the print but outputs nothing.
    Using the generic/text-only driver will print just fine (can’t find a generic text driver for the Mac for testing)

    At least I try...
    My setup is: Mac mini with OS X Server 10.5.2, HP DeskJet 895Cxi connected to the Mac via USB using the HP printer driver from the 2.7.1 package (yes, I had to downgrade(!) the drivers: the drivers bundled with Leopard do not(!) work with some (many?!) DeskJet printers as many others have also already discovered - see the postings in this forum elsewhere...).
    The server is configured as a PDC. Samba is up and running, I can login as a domain user from the Windows clients.
    Local printing with this setup works fine.
    However, Windows clients can't print: same symptoms as yours. A cover page get's printed, but the spool data seems to end up in a black hole...
    All I can see in the logs is the call to the "gziptoany" filter - and CUPS claims that it "exited with no errors". For me, it looks like it's eating the whole thing...
    Upto now, I didn't find any solution in the net. I found some references that it should be possible to explicitely setup a "raw" printing queue and use this for the Windows clients, or alternatively to setup the clients with Postscript drivers.
    Both seems reasonable to me, but these postings refer to Linux distributions and older software versions.
    So for now I'm wading through the CUPS and Samba documentation, because I want to try to understand how these beasts are meant to be used and what Apple did to them.
    I hope I will find a solution soon.
    My "Plan B" is to get some nice little print server.
    At first, when the printer was connected to one of the Windows clients, OS X could use it without problems even with the current drivers (HP 3.3.1 as well as the Gutenprint driver). So I would expect that some cheap "mini print server for Windows boxes" will also do for the server... oh, yes, still somewhat optimistic about getting something for my money...
    If somebody else would be so kind and might try to help - here is an extract from my error_log with the - IMHO - relevant portion:
    d (02/Apr/2008:17:49:29 +0200) (Job 5) start_job: file = 1/2
    d (02/Apr/2008:17:49:29 +0200) dnssdRegisterPrinter(HPDeskJet895Cxi) update
    D (02/Apr/2008:17:49:29 +0200) (Job 5) job-sheets=standard,none
    D (02/Apr/2008:17:49:29 +0200) (Job 5) banner_page = 0
    D (02/Apr/2008:17:49:29 +0200) (Job 5) argv(0)="HPDeskJet895Cxi"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) argv(1)="5"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) argv(2)="webbasan"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) argv(3)="smbprn.00000002 Test Page"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) argv(4)="1"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) argv(5)="job-uuid=urn:uuid:b82da924-a748-3a0e-4dcd-92fb99aec162"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) argv(6)="/private/var/spool/cups/d00005-002"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(0)="<CFProcessPath>"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(1)="CUPS_CACHEDIR=/private/var/spool/cups/cache"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(2)="CUPS_DATADIR=/usr/share/cups"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(3)="CUPS_DOCROOT=/usr/share/doc/cups"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(4)="CUPS_FONTPATH=/usr/share/cups/fonts"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(5)="CUPS_REQUESTROOT=/private/var/spool/cups"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(6)="CUPS_SERVERBIN=/usr/libexec/cups"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(7)="CUPS_SERVERROOT=/private/etc/cups"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(8)="CUPS_STATEDIR=/private/var/run/cups"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(9)="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(10)="[email protected]"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(11)="SOFTWARE=CUPS/1.3.6"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(12)="TMPDIR=/private/var/spool/cups/tmp"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(13)="USER=root"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(14)="CUPS_SERVER=/private/var/run/cupsd"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(15)="CUPS_ENCRYPTION=IfRequested"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(16)="IPP_PORT=631"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(17)="CHARSET=utf-8"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(18)="LANG=de.UTF8"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(19)="APPLE_LANGUAGE"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(20)="PPD=/private/etc/cups/ppd/HPDeskJet895Cxi.ppd"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(21)="RIPMAXCACHE=8m"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(22)="CONTENT_TYPE=application/octet-stream"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(23)="DEVICE_URI=file:///dev/null"
    D (02/Apr/2008:17:49:29 +0200) (Job 5) envp(24)="PRINTER=HPDeskJet895Cxi"
    d (02/Apr/2008:17:49:29 +0200) (Job 5) start_job: filter="/usr/libexec/cups/filter/gziptoany"
    d (02/Apr/2008:17:49:29 +0200) (Job 5) start_job: filterfds(0)=( -1 -1 )
    d (02/Apr/2008:17:49:29 +0200) cupsdStartProcess("/usr/libexec/cups/filter/gziptoany", 0x134c50, 0xbfffcc08, -1, -1, 23)
    d (02/Apr/2008:17:49:29 +0200) (Job 5) start_job: Closing filter pipes for slot 1 ( -1 -1 )...
    I (02/Apr/2008:17:49:29 +0200) (Job 5) Started filter /usr/libexec/cups/filter/gziptoany (PID 80361)
    d (02/Apr/2008:17:49:29 +0200) (Job 5) start_job: Closing print pipes ( -1 -1 )...
    d (02/Apr/2008:17:49:29 +0200) (Job 5) start_job: Closing status output pipe 23...
    d (02/Apr/2008:17:49:29 +0200) (Job 5) start_job: Closing filter pipes for slot 1 ( -1 -1 )...
    d (02/Apr/2008:17:49:29 +0200) cupsdAddSelect: fd=22, read_cb=0x3de59dcf, write_cb=0x0, data=0x128790
    d (02/Apr/2008:17:49:29 +0200) cupsdAddEvent(event=job-state-changed, dest=0x816600(HPDeskJet895Cxi), job=0x128790(5), text="Job #%d started.", ...)
    D (02/Apr/2008:17:49:29 +0200) Discarding unused job-state-changed event...
    d (02/Apr/2008:17:49:29 +0200) select_timeout(-1): 11 seconds to process active jobs
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: polling 9 fds for 11 seconds...
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: kevent(3, ..., 16384, ...) returned 1...
    d (02/Apr/2008:17:49:29 +0200) event->filter=-1, event->ident=22
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: Read on fd 22...
    d (02/Apr/2008:17:49:29 +0200) (Job 5) PAGE: 1 1
    d (02/Apr/2008:17:49:29 +0200) cupsdAddEvent(event=job-progress, dest=0x816600(HPDeskJet895Cxi), job=0x128790(5), text="Printed %d page(s).", ...)
    D (02/Apr/2008:17:49:29 +0200) Discarding unused job-progress event...
    d (02/Apr/2008:17:49:29 +0200) notify_post("com.apple.jobChange")
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: polling 9 fds for 1 seconds...
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: kevent(3, ..., 16384, ...) returned 1...
    d (02/Apr/2008:17:49:29 +0200) event->filter=-1, event->ident=22
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: Read on fd 22...
    d (02/Apr/2008:17:49:29 +0200) process_children()
    D (02/Apr/2008:17:49:29 +0200) PID 80361 (/usr/libexec/cups/filter/gziptoany) exited with no errors.
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: polling 9 fds for 1 seconds...
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: kevent(3, ..., 16384, ...) returned 1...
    d (02/Apr/2008:17:49:29 +0200) event->filter=-1, event->ident=22
    d (02/Apr/2008:17:49:29 +0200) cupsdDoSelect: Read on fd 22...
    D (02/Apr/2008:17:49:29 +0200) (Job 5) File 1 is complete.
    d (02/Apr/2008:17:49:29 +0200) (Job 5) cupsdFinishJob: job->status is 0
    d (02/Apr/2008:17:49:29 +0200) cupsdRemoveSelect: fd=22
    d (02/Apr/2008:17:49:29 +0200) (Job 5) cupsdFinishJob: Closing status pipes ( 22 -1 )...
    I (02/Apr/2008:17:49:29 +0200) (Job 5) Completed successfully.
    Message was edited by: webbasan

  • Smartforms :Multiple forms 2 be printed in single print prog,PDF too

    Hello Smartforms Gurus
    I need to print 4 forms (Export Invoice, packing List, Enclosure to Packing list, Case marking) within a single print prog .
    User will execute this prog and it should print all the 4 forms and then by clicking on a button(Archive) there
    it should download a single pdf file containing all 4 forms .
    At present my following program directly download this form(only Export Invoice) to a pdf file but doesnt leave options to go to Print or Print Preview .
    Plz look into my code , and  suggest.
    Thnx
    Moni
    *Printing of Export Invoice, Packing List,Enclosure to Packing List &  *
    *Case Marking in one SMART FORMS Layout                                *
    REPORT ZSD_REP_MULTI_PRINT.
    TABLES :
        vbak,
        vbap,
        vbpa,
        vbfa,
        VBRK,
        VBRP,
        LIKP,
        LIPS,
        KONV,
        objk,
        tvko,
        ser01,
        sadr,
        equi,
        makt,
        mast,
        t005t,
        kna1,
        t001w,
        T001,
        ADRC,
        sscrfields,
        zpp_plcmi,      "Packing list history For Conf: Item data
        zplh,           "PACKING LIST HISTORY : HEADER DATA
        zpli.           "PACKING LIST HISTORY : ITEM DATA
    DATA: FM_NAME  TYPE RS38L_FNAM,
          P_E_DEVTYPE TYPE RSPOPTYPE,
          P_JOB_OUTPUT_INFO TYPE SSFCRESCL OCCURS 2000 WITH HEADER LINE,
          P_OUTPUT_OPTIONS TYPE SSFCOMPOP OCCURS 0 WITH HEADER LINE,
          P_CONTROL_PARAMETERS TYPE SSFCTRLOP OCCURS 0 WITH HEADER LINE ,
          P_DOC  LIKE DOCS OCCURS 2000 WITH HEADER LINE,
          P_LINES LIKE TLINE OCCURS 200,
          P_BIN_FILESIZE TYPE I,
          P_LANGUAGE TYPE SFLANGU,
          P_BIN_FILE TYPE XSTRING,
          <i>OK_CODE LIKE SY-UCOMM.</i>
    DATA: T_ITEM   TYPE  ZSD_TABL_LITEM,
          WA_ITEM  TYPE  ZSD_STRUCT_LITEM,
          T_ADRS   LIKE  ZSD_STRUCT_ADRS  OCCURS 0 WITH HEADER LINE,
          MSLINES  LIKE  TLINE OCCURS 1 WITH HEADER LINE,
          TIDNO    LIKE STXL-TDID,
          TNAME    LIKE STXL-TDNAME,
          TOBJT    LIKE STXL-TDOBJECT,
          SSORD    LIKE VBAK-VBELN,
          TOT      LIKE VBAK-NETWR,
          WORD     LIKE SPELL.
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: P_DELNO LIKE  LIKP-VBELN OBLIGATORY,
                P_INVNO LIKE  VBRK-VBELN OBLIGATORY,
                P_DATE  LIKE  SY-DATUM.
    SELECTION-SCREEN END   OF BLOCK blk1.
    AT SELECTION-SCREEN.
      CLEAR T_ADRS.
      REFRESH T_ITEM.
      T_ADRS-INVNO = P_INVNO.
      T_ADRS-INVDAT = P_DATE.
      SELECT SINGLE VBELV INTO  VBFA-VBELV
                             FROM  VBFA
                             WHERE VBELN = P_DELNO
                               AND VBTYP_N = 'J'  .
      SSORD = VBFA-VBELV.
    *Exporter's  Address
      SELECT SINGLE BUKRS_VF INTO  VBAK-BUKRS_VF
                             FROM  VBAK
                             WHERE VBELN = VBFA-VBELV.
      SELECT SINGLE   ADRNR
                      INTO T001-ADRNR
                      FROM T001
                      WHERE BUKRS = VBAK-BUKRS_VF.
      SELECT SINGLE NAME1 STREET CITY1 POST_CODE1 COUNTRY
             INTO (T_ADRS-NAME1,T_ADRS-STREET,T_ADRS-CITY1,
                   T_ADRS-POST_CODE1, ADRC-COUNTRY)
             FROM  ADRC
             WHERE ADDRNUMBER EQ T001-ADRNR.
      SELECT SINGLE LANDX
                    INTO T_ADRS-COUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
    **BUYERS NO & DATE
    SELECT SINGLE BSTNK BSTDK INTO  (T_ADRS-BSTNK,T_ADRS-BSTDK)
                         FROM  VBAK
                         WHERE VBELN = VBFA-VBELV.
    *Consignee Address & Buyer Other Than Consignee
      SELECT SINGLE KUNNR KUNAG INTO (LIKP-KUNNR, LIKP-KUNAG)
                                FROM LIKP WHERE VBELN = P_DELNO.
      IF LIKP-KUNNR = LIKP-KUNAG.
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                  INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
                        T_ADRS-CCITY,  T_ADRS-CPCODE, T_ADRS-CREGIO,
                        T_ADRS-CTELF1, KNA1-ADRNR)
                  FROM  KNA1
                  WHERE KUNNR = LIKP-KUNNR.
        SELECT SINGLE COUNTRY INTO  ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-CCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
        T_ADRS-ONAME1   =  T_ADRS-CNAME1 .
        T_ADRS-ONAME2   =  T_ADRS-CNAME2 .
        T_ADRS-OSTREET  =  T_ADRS-CSTREET .
        T_ADRS-OCITY    =  T_ADRS-CCITY.
        T_ADRS-OPCODE   =  T_ADRS-CPCODE .
        T_ADRS-OREGIO   =  T_ADRS-CREGIO.
        T_ADRS-OTELF1   =  T_ADRS-CTELF1 .
        T_ADRS-OCOUNTRY =  T_ADRS-CCOUNTRY.
      ELSE.
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                  INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
                        T_ADRS-CCITY,  T_ADRS-CPCODE, T_ADRS-CREGIO,
                        T_ADRS-CTELF1, KNA1-ADRNR)
                  FROM  KNA1
                  WHERE KUNNR = LIKP-KUNNR.
        SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-CCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
    *Buyer Other than Consignee
        SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
                   INTO (T_ADRS-ONAME1, T_ADRS-ONAME2, T_ADRS-OSTREET,
                         T_ADRS-OCITY,  T_ADRS-OPCODE, T_ADRS-OREGIO,
                         T_ADRS-OTELF1, KNA1-ADRNR)
                   FROM  KNA1
                   WHERE KUNNR = LIKP-KUNAG.
        SELECT SINGLE COUNTRY INTO  ADRC-COUNTRY
                              FROM  ADRC
                              WHERE ADDRNUMBER EQ KNA1-ADRNR.
        SELECT SINGLE LANDX
                    INTO T_ADRS-OCOUNTRY
                    FROM T005T
                    WHERE     SPRAS = 'EN'
                          AND LAND1 = ADRC-COUNTRY.
      ENDIF.
    *Other's Ref
      TIDNO = 'Z071'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-OREF = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Buyer's Order No  Ref
      TIDNO = 'Z023'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-BUYER = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Exporter Ref
      TIDNO = 'Z072'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-XPREF = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Pre-Carraige By
      TIDNO = 'Z074'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PCRG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Place Of reciept by Pre-Carraige
      TIDNO = 'Z073'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PLPCRG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Vessel/Flight No
      TIDNO = 'Z075'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-VFNO = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Port Of Loading
      TIDNO = 'Z077'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PLOAD = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Port Of Discharge
      TIDNO = 'Z076'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-PDISG = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Final Destination
      TIDNO = 'Z070'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-FDEST = mslines-tdline(25).
        EXIT.
      ENDLOOP.
    *Terms Of Delivery & Payment
      TIDNO = 'Z080'.
      TNAME = SSORD.
      TOBJT = 'VBBK'.
      PERFORM FINDTEXT.
      LOOP AT MSLINES.
        T_ADRS-TERMS = mslines-tdline(50).
        EXIT.
      ENDLOOP.
    APPEND T_ADRS.
    *BODY SECTION FOR LINE ITEMS
      SELECT POSNR KWMENG VRKME WAERK
             INTO  (VBAP-POSNR, VBAP-KWMENG, VBAP-VRKME, VBAP-WAERK)
             FROM  VBAP
             WHERE VBELN = SSORD.
    *Mark/Case No
        TIDNO = '0002'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-MARKNO = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Packing Type
        TIDNO = '0003'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Goods Description
        TIDNO = '0001'.
        CONCATENATE SSORD
                    VBAP-POSNR
        INTO        TNAME.
        TOBJT = 'VBBP'.
        PERFORM FINDTEXT.
        LOOP AT MSLINES.
          WA_ITEM-PACKTYP = mslines-tdline(40).
          EXIT.
        ENDLOOP.
    *Goods Quantity
        WA_ITEM-QTY = VBAP-KWMENG.
        WA_ITEM-VRKME = VBAP-VRKME.
    *Goods Rate
        SELECT SINGLE KNUMV INTO VBAK-KNUMV FROM VBAK WHERE VBELN = SSORD.
        SELECT SINGLE KBETR WAERS
                      INTO  (WA_ITEM-RATE, WA_ITEM-WAERS)
                      FROM  KONV
                      WHERE KNUMV = VBAK-KNUMV
                        AND KPOSN = VBAP-POSNR
                        AND KSCHL = 'PR00'.
    *Goods Amount
        WA_ITEM-AMOUNT = WA_ITEM-QTY * WA_ITEM-RATE.
        WA_ITEM-WAERK = VBAP-WAERK.
        TOT = TOT + WA_ITEM-AMOUNT.
        APPEND WA_ITEM TO T_ITEM.
      ENDSELECT.
      T_ADRS-TOT = TOT.
      CALL FUNCTION 'SPELL_AMOUNT'
       EXPORTING
         AMOUNT          = TOT
         CURRENCY        = VBAP-WAERK
      FILLER          = ' '
         LANGUAGE        = SY-LANGU
       IMPORTING
         IN_WORDS        = WORD
       EXCEPTIONS
         NOT_FOUND       = 1
         TOO_LARGE       = 2
         OTHERS          = 3
      IF SY-SUBRC <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      T_ADRS-TOT_WORDS = WORD-WORD.
      APPEND T_ADRS.
    START-OF-SELECTION.
    <b>  SET PF-STATUS '1000'.</b>
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          FORMNAME                 = 'Z_SD_REP_MULTI_PRINT'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
          FM_NAME                  = FM_NAME
    EXCEPTIONS
       NO_FORM                  = 1
       NO_FUNCTION_MODULE       = 2
       OTHERS                   = 3
      IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      P_LANGUAGE = 'EN'.
      CALL   FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          I_LANGUAGE    = P_LANGUAGE
          I_APPLICATION = 'SAPDEFAULT'
        IMPORTING
          E_DEVTYPE     = P_E_DEVTYPE.
      P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
      P_OUTPUT_OPTIONS-XSF = SPACE.
      P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
      P_OUTPUT_OPTIONS-XDF = SPACE.
      P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
      P_OUTPUT_OPTIONS-TDDEST = 'LOCL'.
      APPEND P_OUTPUT_OPTIONS.
      P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
      P_CONTROL_PARAMETERS-GETOTF = 'X'.
      P_CONTROL_PARAMETERS-NO_CLOSE = SPACE.
      APPEND  P_CONTROL_PARAMETERS.
      CALL FUNCTION FM_NAME
       EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = P_CONTROL_PARAMETERS
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = P_OUTPUT_OPTIONS
        USER_SETTINGS              = 'X'
      IMPORTING
      DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            = P_JOB_OUTPUT_INFO
      JOB_OUTPUT_OPTIONS         =
      TABLES
        T_ADRS                     = T_ADRS
        T_ITEM                     = T_ITEM
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    <b>AT USER-COMMAND.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
    WHEN 'ARCHIVE'.</b>
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
      EXPORTING
        USE_OTF_MC_CMD               = 'X'
      ARCHIVE_INDEX                =
    IMPORTING
        BIN_FILESIZE                 = P_BIN_FILESIZE
    TABLES
        OTF                          = P_JOB_OUTPUT_INFO-OTFDATA
        DOCTAB_ARCHIVE               = P_DOC
        LINES                        = P_LINES
    EXCEPTIONS
       ERR_CONV_NOT_POSSIBLE        = 1
       ERR_OTF_MC_NOENDMARKER       = 2
       OTHERS                       = 3.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
       BIN_FILESIZE                  = P_BIN_FILESIZE
      CODEPAGE                      = ' '
       FILENAME                      = 'C:\sd.pdf'
       FILETYPE                      = 'BIN'
       MODE                          = ''
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
        FILELENGTH                    = P_BIN_FILESIZE
      TABLES
        DATA_TAB                      = P_LINES
      FIELDNAMES                    =
    EXCEPTIONS
      FILE_OPEN_ERROR               = 1
      FILE_WRITE_ERROR              = 2
      INVALID_FILESIZE              = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      NO_AUTHORITY                  = 10
      OTHERS                        = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    <b>ENDCASE.</b>
    *&      Form  FINDTEXT
          text
    FORM FINDTEXT.
      REFRESH mslines.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          client                  = sy-mandt
          id                      = tidno
          language                = sy-langu
          name                    = tname
          object                  = tobjt
        TABLES
          lines                   = mslines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      DELETE mslines WHERE tdline IS INITIAL.
    ENDFORM.                    "FINDTEXT
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman
    Message was edited by: md monirujjaman

    Hello,
    You cannot get continuous page numbers, But you will be able to merge all the 4 form outputs into one PDF file.
    In yesterdays example you called one form, then converted OTF data into PDF data and downloaded on Presentation server.
    In this case, after you call first form, you get the OTF data. Push this OTF data into a MAIN Internal table ( Same type as of OTF dada Int TAB ). Then Call second form. Then you get second set of OTF data. This second set of OTF data may be appended to the MAIN Internal table and the follw same procedure for the rest of the forms. In the end you will have one Internal table which holds OTF data of all the 4 forms.
    Now convert the OTD data to PDF Data by the FM and Download one file which has output of all the 4 forms.
    I hope my explanation is quite clear.
    Regarding your second question, the Archive and Print and archive buttons on the PRINT PREVIEW screen works for Spool archiving which is to be enabled by customizing. If you wish to archive the output as PDF, you may have to do it in program.
    I am NOT accessible on YAHOO.
    Plz let me know if you are stuck.
    Regards, Murugesh AS

  • I cannot get my HP officejet 4215 all-in-one to print graphics

    how do i get my HP officejet 4215 all-in-one to print graphics. as an example if i print my visa statement the visa logo and bank logos don,t print

    bamajim,
    Here is a link to a page for your printer that may help with your issue.
    The document provides steps to troubleshoot printouts that do not match the screen while printing from the web.
    Does this also happen when printing graphics from somewhere other than the web ?
    Once you give these steps a try let us know what happens.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • HT4356 I have just updated my Epson printer to one which supports air print but consider it to be a waste of money as my printer has two paper trays and there is option to choose which try...just "print"  How can I print photos via AirPrint from photo  tr

    Hi,
    First-timer on this...Just updated my printer which was less than one year old, to one which had Air Print capabilities. This one is the Epson XP605 which has two trays, one being for photos. Each time I tried to Air Print a photo, it printed from the A4 plain paper tray instead of the Photo Tray.Twice...then I came into my study and changed the printer settings to Tray 1 (photo tray) Photo paper, size 5x7 and  Photo Best, but still it printed on plain A 4 paper. Would be most grateful for any help, although I did read on one Apple site that AirPrint may not be able to choose trays!!!! "may not"??  Thanks

    I just figured out the print quality issue for my wife with her new iMac and new printer.
    She replaced both at once and she couldn't understand why her Artisan 730 was lower quality then her Epson R280 when they had the same specs.
    Turns out the newer printer had the option to connect via wifi which we used during setup.
    The driver options are completely different depending on how you connect.
    Once I connected via USB the correct options were available and the print quality was better.
    Looking at the R2400 it dies not have wifi, but while researching the problem for my wife someone esle was having an issue updating to the latest printer driver.
    If you go into the print utility from the Printer and Scanner system preference and under the general tab you should have driver 5.5.
    One user had to delete the old printer driver before Software Update loaded the newer printer driver.
    https://discussions.apple.com/message/15947486#15947486
    On my MacBook Pro (w Snow Leopard) I always had to reconnect my wifi at home when it woke up. I upgraded my router from an old Netgear to a newer N D-Link and stopped having to do that.
    I would be surprised you would have that problem with an Airport Extreme, you might check to see if there is a firmware update for it.

  • Can't ping or get printer web page or print via hostname

    Ok, this has me stupped on my iMac running Mavericks.  I just added my Kyocera printer as an IP printer but used the host name instead of an IP address, sounds simple so far.
    Before doing this, I change the default host name in the Kyocera printer to "Kyocera" (without quotations). Add printer found the device and came up with the correct PPD for the model number and all was good at this point.  I sent a printer test page which again worked fine.
    I then opened Safari and entered the printers IP address to make sure I could bring up the configuration web page for the device and this indeed works fine, at this point I retype the address in the address bar as Kyocera.local and again the page refreshed and came up fine, Yippee!! so I added it to Safari's Favourites Bar, all good!
    Since then, I can still get to the devices home config page via the IP address, but it will no longer find the page via the save Kyocera.local link in the favorites bar or retyping it in the address bar.
    I have tried network utility and pinging the device, IP address ping works fine but Kyocera.local says unknown host.  Tried the next obvious step and that was to see if printing fails now as well and indeed it too fails as it was still configured to print to the host name as it was when I successfully printed the inbuilt printer test page. I deleted the printer and added the IP printer via the IP address not the hostname and printer now prints fine.
    Does anyone know why printing via the host name and bringing up the printers config web page both worked for the first time but fails from there on in????
    DNS settings were set to Auto from ISP, I also tried google's 8.8.8.8 and 8.8.4.4 and even just adding the local bob router address in as an option but nothing works, but it did initially.
    I install and repair printers for a living and have come across this when installing scan to FTP on a mac and rarely if ever can I get it to work scanning to FTP via the Mac's name for example, Jims-imac.local, just won't find it with or without the .local, but change it to the Mac's IP address and scan to FTP works great.  Problem is that if the customer has their Mac getting IP address via DHCP, I have to advise the customer that if scan to FTP stops working, to check that the IP address on the Mac has not changed, and if it has, then change the scan to FTP settings on the scanner to the new IP address that the Mac has now been given from the DHCP server.
    Not the best way to go about it.  Why can't Mac's just find devices and devices find Mac's? Windows is so straight forward, what am I missing?
    Any help would be appreciated.
    Regards,
    Damo

    Hi,
    First of all let me clarify your trial.
    Where is your monitoring server?
    Is it behind inside or outside interface (please share ip adress)?
    From config it seems, it can be reach via outside interface. Then you have to make snmp check on outside interface, not on inside (cannot make a snmp/ping check on inside interface with request comming through outside inteface - it simply won't work).
    From the first check of routing table, I would suggest:
    delete : route outside MCCC_Outside 255.255.255.255 1.1.1.1 1 - doesn't make a sense route host address, when it's directly connected network (and more, route 1.1.1.2 to 1.1.1.1, when 1.1.1.1 is vlan2 interface)
    change : route outside 172.31.0.0 255.255.0.0 192.168.1.1 1; route outside Domain 255.255.0.0 192.168.1.1 1 - you should consider route it to 1.1.1.2 (if this is your next hop address at WAN).
    route outside VLAN10 255.255.255.0 MCCC_Outside 1 - why?
    I would use default route to somewhere at 1.1.1.0/24 range - next hop (router).
    HTH,
    Pavel

Maybe you are looking for