An API for Printing

hello,
has anybody gone about writing an API for printing?? if so can i have a look coz iam working on that, thanx
asrar

look into the tutorial man !
=>http://java.sun.com/docs/books/tutorial/2d/printing/index.html

Similar Messages

  • How to retrieve the data from a jsp page for print?

    i have a dynamic jsp file which will get the data at runtime.I have a print button in the jsp.When i chick the print button it should capture the data from the jsp and print it as LANDSCAPE mode. Now i am using Java Api for this
              Following code is a working sample which prints some data in LANDSCAPE mode..This is working fine....How can i modify this to get the data from a jsp?....I am using weblogic workshop for development
              package Awtjava;
              //working example
              import java.awt.*;
              import java.awt.print.*;
              public class testPrint implements Printable {
              private static String s[];
              private static Font f;
              private static int nLines;
              public static void main (String arg[]){
              s = new String[10];
              f = new Font("Arial", Font.PLAIN, 11);
              int i;
              s[0] = "This is a printer test";
              for (i=1; i<10; i++){
              s[i] = "The next line";
              nLines = 10;
              testPrint.printa();
              public static void printa(){
              System.out.println("public static void printa () ");
              PrinterJob pj=PrinterJob.getPrinterJob();
              Book b = new Book();;
              PageFormat pf = new PageFormat();
              pf = pj.defaultPage(pf);
              b.append(new testPrint(), pf, 2);
              pj.setPageable (b);
              try{
              if (pj.printDialog()){
              pj.print();
              catch (Exception e) { System.out.println ("Error"); }
              public int print (Graphics g1, PageFormat pf, int n){
              System.out.println("public int print");
              int x,y,i,fa,fh;
              FontMetrics fm;
              Graphics2D g = (Graphics2D) g1;
              pf.setOrientation(PageFormat.LANDSCAPE);
              fm = g.getFontMetrics (f);
              fa = fm.getMaxAscent();
              fh = fm.getHeight();
              x = (int)pf.getImageableX();
              y = (int)pf.getImageableY() + fa;
              g.setFont (f);
              g.setColor(Color.black);
              if (n==1){
              for (i=0; i<10; i++){
              g.drawString (s, x, y);
              y += fh;
              return PAGE_EXISTS;
              else {
              for (i=10;i<10; i++){
              g.drawString (s[i], x, y);
              y += fh;
              return PAGE_EXISTS;
              Hope you will reply soon...
              Thanks in advance
              Maria

    Hey, I got a doubt that who will call the print method in the same program and what about the g.drawString() it is showing any output effect. Finally how the variable n will get initializing to 0 and 1 for two times respectively. Can u please elaborate on this...

  • Exception happened when calling deliver API for BI Publisher Bursting

    Hi All,
    I have developed a BI Publisher report on OBIEE standalone instance (Oracle Business Intelligence 11.1.1.5.0).
    I am able to generate the report and burst the output to emails successfully.
    But when I tried to burst the output directly to the printer or to save the output FILEs to local machine, am getting the below error/exception.
    For PRINT type...error is below
    Document delivery failed
    [INSTANCE_ID=bisrv.oracleads.com.1305914111196] [DELIVERY_ID=1182]Error deliver document to printer::Exception happened when calling deliver API::Error deliver document to printer::Exception happened when calling deliver API::oracle.xdo.delivery.DeliveryException: oracle.xdo.delivery.DeliveryException: java.net.UnknownHostException: blr-ibc-7a-prn1 oracle.xdo.service.delivery.DeliveryException: oracle.xdo.delivery.DeliveryException: oracle.xdo.delivery.DeliveryException
    for FILE type.... error is below
    Document delivery failed
    [INSTANCE_ID=bisrv.oracleads.com.1305914111196] [DELIVERY_ID=1192]Error deliver document to file::FILE=[D:\Harish:9930609876-10001969343.pdf::Exception happened when calling deliver API::FILE=[D:\Harish:9930609876-10001969343.pdf::Exception happened when deliver to file:: FILE_NAME= D:\Harish/9930609876-10001969343.pdf] ::oracle.xdo.delivery.DeliveryException: java.io.FileNotFoundException: D:\Harish/9930609876-10001969343.pdf (No such file or directory)oracle.xdo.ser
    Can anyone please help on this?
    Thanks,
    Harish

    Hi Varma,
    thanks for the reply.
    Here are the below sql scripts I used.
    -- Printer
    SELECT BILL_NUMBER      KEY,
    'Layout'           TEMPLATE,     
    'en-US'                     LOCALE,
    'PDF'                          OUTPUT_FORMAT,
    'PRINT'                     DEL_CHANNEL,
    BILL_NUMBER                OUTPUT_NAME,
    'true'                          SAVE_OUTPUT,
    'Direct Printers'           PARAMETER1,
    'LocalPrinter'               PARAMETER2,
    1                               PARAMETER3,
    'd_single_sided'           PARAMETER4,
    'default'                     PARAMETER5
    FROM XXXX_BILL_TAB;
    -- File
    SELECT BILL_NUMBER           KEY,
    'VLayout'           TEMPLATE,
    'RTF'               TEMPLATE_FORMAT,
    'en-US'           LOCALE,
    'PDF'           OUTPUT_FORMAT,
    'FILE'           DEL_CHANNEL,
    'true'           SAVE_OUTPUT,
    'Monthly Bill for ' || MOBILE_NUMBER OUTPUT_NAME,
    'D:\Harish'      PARAMETER1,
    MOBILE_NUMBER||'-'||BILL_NUMBER     PARAMETER2
    FROM XXXX_BILL_TAB;
    Thanks,
    Harish
    Edited by: 899863 on Dec 16, 2011 4:01 AM

  • Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?

    Hi,
    Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
    It's enough if the API works with MySQL and/or Oracle.
    Just to demonstrate what i'm looking for:
    Suppose you've created sql file "c:/test.sql" with several script lines:
    -- test.sql:
    insert into TABLE1 values(3,3);
    insert into TABLE1 values(5,5);
    create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
    Then the java API should look something like:
    // Dummy java code:
    String driver="com.mysql.jdbc.Driver";
    String url= "jdbc:mysql://localhost:3306/myDb";
    SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
    Thanks.

    No such a API, but it's easy to parse all sqls in a file, then run those command:
    For instance:
    import java.sql.*;
    import java.util.Properties;
    /* A demo show how to load some sql statements. */
    public class testSQL {
    private final static Object[] getSQLStatements(java.util.Vector v) {
    Object[] statements = new Object[v.size()];
    Object temp;
    for (int i = 0; i < v.size(); i++) {
    temp = v.elementAt(i);
    if (temp instanceof java.util.Vector)
    statements[i] = getSQLStatements( (java.util.Vector) temp);
    else
    statements[i] = temp;
    return statements;
    public final static Object[] getSQLStatements(String sqlFile) throws java.
    io.IOException {
    java.util.Vector v = new java.util.Vector(1000);
    try {
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
    FileReader(sqlFile));
    java.util.Vector batchs = new java.util.Vector(10);
    String temp;
    while ( (temp = br.readLine()) != null) {
    temp = temp.trim();
    if (temp.length() == 0)
    continue;
    switch (temp.charAt(0)) {
    case '*':
    case '"':
    case '\'':
    // System.out.println(temp);
    break; //Ignore any line which begin with the above character
    case '#': //Used to begin a new sql statement
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    case 'S':
    case 's':
    case '?':
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    v.addElement(temp);
    break;
    case '!': //Use it to get a large number of simple update statements
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    String part1 = temp.substring(1);
    String part2 = br.readLine();
    for (int i = -2890; i < 1388; i += 39)
    batchs.addElement(part1 + i + part2);
    for (int i = 1890; i < 2388; i += 53) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 4320; i > 4268; i--) {
    batchs.addElement(part1 + i + part2);
    batchs.addElement(part1 + i + part2);
    for (int i = 9389; i > 7388; i -= 83)
    batchs.addElement(part1 + i + part2);
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    break;
    default:
    batchs.addElement(temp);
    break;
    if (batchs.size() > 0) {
    v.addElement(getSQLStatements(batchs));
    batchs.removeAllElements();
    br.close();
    br = null;
    catch (java.io.FileNotFoundException fnfe) {
    v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
    Object[] statements = new Object[v.size()];
    for (int i = 0; i < v.size(); i++)
    statements[i] = v.elementAt(i);
    return statements;
    public static void main(String argv[]) {
    try {
    String url;
    Object[] statements;
    switch (argv.length) {
    case 0: //Use it for the simplest test
    case 1:
    url = "jdbc:dbf:/.";
    if (argv.length == 0) {
    statements = new String[1];
    statements[0] = "select * from test";
    else
    statements = argv;
    break;
    case 2:
    url = argv[0];
    statements = getSQLStatements(argv[1]);
    break;
    default:
    throw new Exception(
    "Syntax Error: java testSQL url sqlfile");
    Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
    //Please see Connecting to the Database section of Chapter 2. Installation in Development Document
    Properties properties = new Properties();
    Connection con = DriverManager.getConnection(url, properties);
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    //Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    // stmt.setMaxRows(0);
    stmt.setFetchSize(10);
    final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
    ResultSet rs;
    for (int i = 0; i < statements.length; i++) {
    if (statements[i] instanceof java.lang.String) {
    String temp = (java.lang.String) statements;
    switch (temp.charAt(0)) {
    case 'S':
    case 's':
    case '?':
    System.out.println(temp);
    rs = stmt.executeQuery(temp);
    if (serializeFlag) {
    // serialize the resultSet
    try {
    java.io.FileOutputStream fileOutputStream = new
    java.io.FileOutputStream("testrs.tmp");
    java.io.ObjectOutputStream
    objectOutputStream = new java.io.
    ObjectOutputStream(fileOutputStream);
    objectOutputStream.writeObject(rs);
    objectOutputStream.flush();
    objectOutputStream.close();
    fileOutputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
    rs = null;
    // deserialize the resultSet
    try {
    java.io.FileInputStream fileInputStream = new
    java.io.FileInputStream("testrs.tmp");
    java.io.ObjectInputStream objectInputStream = new
    java.io.ObjectInputStream(
    fileInputStream);
    rs = (ResultSet) objectInputStream.
    readObject();
    objectInputStream.close();
    fileInputStream.close();
    catch (Exception e) {
    System.out.println(e);
    e.printStackTrace();
    System.exit(1);
    ResultSetMetaData resultSetMetaData = rs.
    getMetaData();
    int iNumCols = resultSetMetaData.getColumnCount();
    for (int j = 1; j <= iNumCols; j++) {
    // System.out.println(resultSetMetaData.getColumnName(j));
    /* System.out.println(resultSetMetaData.getColumnType(j));
    System.out.println(resultSetMetaData.getColumnDisplaySize(j));
    System.out.println(resultSetMetaData.getPrecision(j));
    System.out.println(resultSetMetaData.getScale(j));
    System.out.println(resultSetMetaData.
    getColumnLabel(j)
    + " " +
    resultSetMetaData.getColumnTypeName(j));
    Object colval;
    rs.beforeFirst();
    long ncount = 0;
    while (rs.next()) {
    // System.out.print(rs.rowDeleted()+" ");
    ncount++;
    for (int j = 1; j <= iNumCols; j++) {
    colval = rs.getObject(j);
    System.out.print(colval + " ");
    System.out.println();
    rs.close(); //Let the resultSet release its open tables at once.
    rs = null;
    System.out.println(
    "The total row number of resultset: " + ncount);
    System.out.println();
    break;
    default:
    int updateCount = stmt.executeUpdate(temp);
    System.out.println(temp + " : " + updateCount);
    System.out.println();
    else if (statements[i] instanceof java.lang.Object[]) {
    int[] updateCounts;
    Object[] temp = (java.lang.Object[]) statements[i];
    try {
    for (int j = 0; j < temp.length; j++){
    System.out.println( temp[j]);
    stmt.addBatch( (java.lang.String) temp[j]);
    updateCounts = stmt.executeBatch();
    for (int j = 0; j < temp.length; j++)
    System.out.println((j+1)+":"+temp[j]);
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":" +updateCounts[j]);
    catch (java.sql.BatchUpdateException e) {
    updateCounts = e.getUpdateCounts();
    for (int j = 0; j < updateCounts.length; j++)
    System.out.println((j+1)+":"+updateCounts[j]);
    java.sql.SQLException sqle = e;
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (java.sql.SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" +
    sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    stmt.clearBatch();
    System.out.println();
    stmt.close();
    con.close();
    catch (SQLException sqle) {
    do {
    System.out.println(sqle.getMessage());
    System.out.println("Error Code:" + sqle.getErrorCode());
    System.out.println("SQL State:" + sqle.getSQLState());
    sqle.printStackTrace();
    while ( (sqle = sqle.getNextException()) != null);
    catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();

  • Available APIs for process and package management

    Hello All and welcome to my Hello All:
    Welcome to my inaugural post. I am a complete noob to Solaris (although I have been using Linux for 5+ years) and am in the process of trying to get a handle on what local C/C++ APIs (if any) are available for management. Specifically, I am looking to find out about process and package management.
    For process management, basically I would like to know is there some kind of interface to the the prstat application (ie. Memory and CPU utilization). Does something like this exist?
    For package management, I am looking for the ability to add, remove, and query the package �database�. Correct me if I am wrong, but the Solaris package �database� seems similar to that of a Debian system (at least from the perspective that the informational files are stored as plain text in a well-defined directory [ie /var/sadm/pkg/]).
    I have installed Solaris 10 on an x86 machine with a full installation; however, of the installed development kits (listed below) nothing jumped out at me.
    -bash-3.00# ls -1d /var/sadm/pkg/*devel
    /var/sadm/pkg/SUNWaspell-devel
    /var/sadm/pkg/SUNWevolution-devel
    /var/sadm/pkg/SUNWevolution-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-base-devel
    /var/sadm/pkg/SUNWgnome-a11y-libs-devel
    /var/sadm/pkg/SUNWgnome-a11y-reader-devel
    /var/sadm/pkg/SUNWgnome-a11y-speech-devel
    /var/sadm/pkg/SUNWgnome-audio-devel
    /var/sadm/pkg/SUNWgnome-base-libs-devel
    /var/sadm/pkg/SUNWgnome-camera-devel
    /var/sadm/pkg/SUNWgnome-common-devel
    /var/sadm/pkg/SUNWgnome-component-devel
    /var/sadm/pkg/SUNWgnome-config-devel
    /var/sadm/pkg/SUNWgnome-desktop-prefs-devel
    /var/sadm/pkg/SUNWgnome-file-mgr-devel
    /var/sadm/pkg/SUNWgnome-hex-editor-devel
    /var/sadm/pkg/SUNWgnome-img-editor-devel
    /var/sadm/pkg/SUNWgnome-libs-devel
    /var/sadm/pkg/SUNWgnome-media-devel
    /var/sadm/pkg/SUNWgnome-panel-devel
    /var/sadm/pkg/SUNWgnome-pilot-devel
    /var/sadm/pkg/SUNWgnome-print-devel
    /var/sadm/pkg/SUNWgnome-project-devel
    /var/sadm/pkg/SUNWgnome-terminal-devel
    /var/sadm/pkg/SUNWgnome-text-editor-devel
    /var/sadm/pkg/SUNWgnome-vfs-devel
    /var/sadm/pkg/SUNWgnome-wm-devel
    /var/sadm/pkg/SUNWgnutls-devel
    /var/sadm/pkg/SUNWjpg-devel
    /var/sadm/pkg/SUNWlibexif-devel
    /var/sadm/pkg/SUNWlibgcrypt-devel
    /var/sadm/pkg/SUNWlibpopt-devel
    /var/sadm/pkg/SUNWmozilla-devel
    /var/sadm/pkg/SUNWmoznspr-devel
    /var/sadm/pkg/SUNWmoznss-devel
    /var/sadm/pkg/SUNWogg-vorbis-devel
    /var/sadm/pkg/SUNWopenjade-devel
    /var/sadm/pkg/SUNWopensp-devel
    /var/sadm/pkg/SUNWpcsclite-devel
    /var/sadm/pkg/SUNWpng-devel
    /var/sadm/pkg/SUNWpostgr-devel
    /var/sadm/pkg/SUNWPython-devel
    /var/sadm/pkg/SUNWTiff-devel
    I've placed orders for Solaris Internals and Solaris Performance & Tuning (that should arrive tomorrow), but I was hoping that someone could give me a gentle push (or perhaps a swift kick) in a general direction. :)
    Thanks.

    For process management, basically I would like to
    know is there some kind of interface to the the
    prstat application (ie. Memory and CPU utilization).
    Does something like this exist?Not prstat (although you could 'truss' it and see some of what it's doing to collect the information). kstat is available with a C interface and through perl/shell. It has several CPU fields. It's certainly useful for monitoring, but read-only. I'm not sure what you're looking for in terms of "management".
    Also 'dtrace' can provide tons of dynamic information, but that's not necessarily what you're looking for.
    For package management, I am looking for the ability
    to add, remove, and query the package �database�.
    Correct me if I am wrong, but the Solaris package
    �database� seems similar to that of a Debian system
    (at least from the perspective that the
    informational files are stored as plain text in a
    well-defined directory [ie /var/sadm/pkg/]).Yes, although it's based on the SysV packaging system. I don't believe there's any API for it outside of the 'pkg*' utilities.
    Darren

  • Accessing Webdynpro Java iview functionality for print from webdynpro code

    I know.. you would love to post me with n different blogs and forums discussion about how to print from webdynpro java application.
    But lets read before what i am looking for..
    There is standard "Print" function available on webdynpro for java iview.. and layout and all its just fine for us. though we want to trigger this event from a screen button. as going to iview properties is very user friendly.
    I was looking for some iview api which can help me.. We are on NW 7.01 SP6 at the moment. And this is for standard ESS applications.
    Thanks a lot for your inputs.
    Regards,
    Sudhir

    Hi
    You can write Java program for printing. Call the java class from screen (button or Url). Also you can write the content to XMl file.open the xml file in action. so that u will get print preview and print option.

  • Where is the API for PKI authentication library in ColdFusion 9?

    Hello,
    I have to get PKI/certificates working with our ColdFusion application.  We're using CF9, and evidently there were calls added
    to this to help you get the cert, the distinguished name, etc.  So, what I am looking for specifically is where can I read
    the API for this?   I need to know the functions, tags, etc that I will be calling in order to get the info I need from the cert.
    Thanks!

    I was able to find something to try from the forum, although not explained well.  I had to use cfdump to see
    the different methods to use:
    <!---We need to get all of the required fields from the 509 cert and store those in session--->
    <cfset x509 = GetPageContext().getRequest().getAttribute("javax.servlet.request.X509Certificate")>
    <!---Debug prints--->
    <cfdump var=#x509[1].getSubjectDN().getCommonName()#>
    <cfdump var=#x509[1].getIssuerDN().getCommonName()#>
    <cfdump var=#x509[1].getIssuerDN().getOrganization()#>
    <cfdump var=#x509[1].getIssuerDN().getOrganizationalUnit()#>
    I saw some other solutions with cfscript, but that's overkill.  I also find it incredibly STUPID that
    the CGI variables for CERT_SUBJECT, etc, are only available if you use IIS.  Umm, who even
    USES IIS anyway?  People use Apache/Jrun more than anything.  I wasted a lot of time going through
    the CGI and asking questions on other forums about it.
    However, the above method is easy, and works.

  • Does Adobe provide a free API for creating PDF files

    Does Adobe provide a free API (for Windows) for creating PDF files?   We are currently using
    a basic, internally developed API for creating PDF files, but would like some additional
    capabilities ... in particular the ability to add a watermark that appears when printing
    but not when viewing PDF files on-line.
    If this is not the right forum for this question, please let me know what forum would be
    appropriate.
    Thanks,
    Mark

    OK, with a little bit of searching on Adobe's web site, I found the answer to my question.   Yes, Adobe does offer
    an API for creating/manipulating/reading PDF files:  it's called the Adobe PDF Library SDK and it has to be
    licensed.  Version 9 is the latest.   The cost is decided on a case-by-case basis.    Here is the link:
    http://www.adobe.com/devnet/pdf/library/
    Mark

  • Public APIs for Adobe Central Pro Server

    Hi,
    Can anyone point me to the Public APIs that are available with the Adobe Central Pro Server e.g. I would want my application to dynamically add or remove steps in the job db, or change the target printer. Also, is it possible to invoke the preview functionality that comes with the Adobe Designer and integrate with an existing application
    Here what we are trying to do is add the printing (template merging) facility to an existing application and would want access to the public API for these products.
    Thanks in anticipation!
    Regards,

    I'm not sure you can do what you describe in the manner that you appear to be wanting to do it. I know of no APIs that are provided. There are ways to get the job done, though.<br /><br />The job management data base is an ascii text file that can easily be changed programatically. Parts of our application use it for building a drop-down list of printers for the user to select from. Changing it doesn't automatically cause Central to use the new file. Central must be told to reload it before it will be using the modified file. This can be done by placing a certain "command" file in Central's control folder, but it would not run until after the current job completes - if the current job is the one that just changed the file and further steps of the same job are for the processing of the data, then that would be too late. Once a job starts, all the parameters and tasks from the job management database and on the original ^job statement is what will be used. This goes for changing anything about the job, whether it be adding/deleting steps, changing the printer, or any other parameters.<br /><br />We accomplish pretty much what you want by doing several things. <br /><br />*First, we define all of the various configurations of jobs that we need. For example, our main printing job has four tasks; it is not uncommon to need to restart a job someplace besides the first task. Therefore, we have four different jobs defined, each one starting further down the list of tasks. We do the same thing when the processing of the data has to vary in some manner - we have jobs pre-defined for each specific set of tasks and the source of the data sets the ^job name as required for the specific tasks that have to be done.<br /><br />*For modifying the printer, we use the -z<printer> and -asp<driver> parameters on the ^job statement and the source of the file sets the values as necessary. The source of the file will also set the job name so that the desired job is ran. <br /><br />*We also have built into our custom agents the capability to recognize when a "soft" failure is occurring (such as can't reach our database) and it will put the job back in for processing after changing the job name to run the correct job for restarting at the proper step. <br /><br />*One of our steps is to check a control file to see if there is a redirection for the specified printer to a substitute printer (say, the original printer is down for maintenance). This agent will put the job back in for processing, changing not only the job name but the printer parameters. It has to be put back in, instead of just changing the parameters and passing the file on to JFMERGE, because Central uses the parameters on the original ^job line, it doesn't use the parameters that might be on the ^job line when JFMERGE starts.<br /><br />*We have also created our own agent for running as the JFERROR task. This task runs when one of the agents supplied with Central encounter a failure. Our agent analyzes the failure and determines if it was "hard" or "soft". If it was a "soft" failure, this agent requeues the job, changing the name and parameters as necessary.<br /><br />So far we have been unable to determine how to get our VB6 agents to set the ErrorLevel to notify Central that the agent failed (we came up with a workaround instead of spending a lot of time trying to get the ErrorLevel to work). This is necessary to prevent Central's agents from processing when a predicessor custom agent fails. Since we couldn't set the ErrorLevel, we just set up all of our agents to always create an output file for input to the next task. When one of our agents fail, it only outputs a modified ^job line with no following data. This modified ^job line is recognized by our custom agents as an indication that a failure is in process so it skips any processing except to pass the file to the next task. Since there is no data or form commands in the file, once it gets to JFMERGE, it just terminates without producing any output or error condition.<br /><br />Previewing is accomplished by running the JFPVMRG agent to create a PDF and then JFPVSEND to send it to the originating IP# for receipt by the View Manager which will then load it into Adobe Reader. At this point, the job running on Central will be finished - it could have produced hard-copy output or not depending on its design. Once the user receives the PDF, they can do whatever they want with it (save, print, etc).<br /><br />We use the above capability for our users to view an "archive" image of forms, after it has been processed normally. I know of others that use it to create the PDF as part of the normal processing, allowing the user to then print from Adobe Reader it if they wish.<br /><br />What we do is to drop a DAT file into Central's input folder that runs the above two agents. Our application that is running on the user's PC then watches for Adobe Reader to load and when it does it forces it to be the top-most task (we do this because we have a problem that it will often open behind other windows).

  • Android API for Scan via HP Scanners

    Hi,
    I am an android developer and would like to develop an android application to scan documents via HP printers directly to the android device. I have implemented the same for Samsung Printers but need an API reference for HP printers as HP is one of the most commonly used printer vendors.
    Please let me know if there is an API for the same.
    Thanks,
    Sudhanshu

    @coffeewithsuds 
    I know this post was made a while back but I see no one replied. There's a link below to submit ideas for apps.
    http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mob​ile-Printing-and-ePrintCenter/Got-an-idea-for-a-pr​...
    I'll also pass your post on to some of the folks here....
    Many thanks
    Ciara
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • PHP Podcast API (for playback)

    I don't know if this is the right place for this question, but hopefully someone can answer it or point me in the right direction.
    I'm creating a web based player for a site, that will go throug a list of Podcast RSS Feeds.
    I know that if I were on my iPhone, the Podcast owner's stats would show that there was another download or play from my region.
    Is there something like a code or API  for the web (that I can use in my code) that will show in the owner's stats?

    Hello.
    You'll need to set the Bid->Amount as shown in this AddKeywords example:
    https://msdn.microsoft.com/en-US/library/bing-ads-keywords-php-code-example.aspx 
    $keywords = array();
    $keyword = new Keyword();
    $keyword->Bid = new Bid();
    $keyword->Bid->Amount = 0.47;
    $keyword->Param2 = "10% Off";
    $keyword->MatchType = MatchType::Phrase;
    $keyword->Text = "Brand-A Gloves";
    $keywords[] = $keyword;
    If it still doesn't work for you please feel free to
    escalate to support with the SOAP request and response i.e. place this code immediately after your call to UpdateKeywords:
    print "\nLast SOAP request/response:\n";
    print $proxy->GetWsdl() . "\n";
    print $proxy->GetService()->__getLastRequest()."\n";
    print $proxy->GetService()->__getLastResponse()."\n";
    I hope this helps!

  • Support for printing

    Hi!
    Has NetWeaver 2004s any Print Functionality or API? As far as I know it doens't native
    support for printing. If so which ways are given for a workaround.
    What is about  "com.sap.tc.webdynpro.clientserver.print.api"
    Rgds
    sas

    Hi,
    There are certain workarounds available to perform printing operations. One such blog that i foun would be helpful to u is : [click here|/people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities|Blog] . This blog has the coverage of printing tables, graphs etc...Usually we come accross a view that has many UI Elements and we may require to print only say Tables that has Reports, then this sample code in the blog can be used.
    I hope this proves u helpful to some extent.
    Regards,
    Kunal Kotak

  • HPM1212nf MFP i can't scan but wireless network works fine for printing

    i have the MFP set up fine for printing over a wireless network.  Any idea on what more i  need to do to get the machine to accept a scan command from the computer using HP Laserjet Scan?

    Hi there @bc123!
    Thanks for contacting the HP Forums!
    I see that your having a communication issue with the HP LaserJet when it comes to scanning to the computer, and I would be happy to provide you with my assistance.
    A good place to start when troubleshooting scanning is to ensure the CD was installed correctly on your computer. If the CD is unavailable then I can provide you with a link to the HP driver download: Drivers & Downloads
    In the link provided you will want to:
    1.enter your printers model number and click GO
    2.select your printer model
    3.select your operating system and click NEXT
    4.Click on Driver - Product Installation Software (‏1)
    5.Click DOWNLOAD next to the full feature software
    To provide you with a more direct link to your software and to better assist you, would you please provide me with the following information:
    1. What operating system version the computer is running (ex. Mac, Windows, etc.).
    Bellow are 2 links I located from HP and Macintosh on how to locate your version of operating system.
    Which Windows operating system am I running?
    Finding the OS X version and build information on your Mac
    2. If the computer is running Windows I will need to know what version (ex. 32-bit or 64-bit). 
    I have provided another link from the HP web site showing you how to check if its 32-bit or 64-bit
    Is the Windows Version on My Computer 32-bit or 64-bit?
    3. Laserjet model number (ex. P1102w, CP1025, etc.).
    Please post back with the requested information, as well as the results of your troubleshooting.
    Let me know if this was helpful!
    Cbert
    I work on behalf of HP.
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" at the bottom of this post to say “Thanks” for helping!

  • Hp LaserJet P3015 printer "waiting for printer to become available" message

    Hello All,
    I have searched through many message boards about this issue (some steaming back to as far as 2009) and I have yet to find a solution that has worked for me.
    Background of situation:
    In my office we have a dozen iMacs and Networked hp LaserJet P3015 printers.  Most work perfectly fine with out issue.  We are currently running 10.8.4 OS.  There are a few issues that seem to be unique to users or types of iMacs.  1) Three brand new iMacs (the skinny ones that come without the CD drives) where showing a message prompting for the "printer operator group".  I have that setting turned off but reguardless I added the user accounts to the "printer operator group" as well as the "printer admin group".  After I did that the users started to recieve the message "waiting for printer to become avaible".  When this message appears it never printers (I left it for a 20 minute period to no avail).  I have tried a whole host of fixes with short term success but the issue keeps reoccuring.  Here is a list of fixes I have tried:
    What I have tried
    1) I plugged the iMac directly into the printer via USB cable to install the drivers locally
    2) I added the user to the printer operator group and the printer admin group
    3) I checked all settings on both the printer and computer
    4) I have removed and re-added the printer several ways (from the network and directly via UBS cable)
    5) I checked the Ethernet connection to the printer (all are fine) (also eliminated the need for it by directly plugging her in via USB cable)
    6) I have "power" shut down the printer
    7) I restarted the printer settings on the network to eliminate any lingering issues
    8) Made sure the software is up to date (which according to some message boards is what the problem is)
    9) I have replaced both the actual Computer and Printer (with another brand new iMac), while additionally creating a new user account to eliminate hardware and faulty user settings as the culprit, as well as plugged the printer directly into the computer and removed it from the network.
    10) I prayed to the IT gods
    Other Notes:
    I did see a solution from a message board that said to delete all "hp_" files in system/library/extensions and then directly plug the printer into the computer to install the drivers that way (which he said worked) but the guys also said that if he ran software update then the issue would re-occur.  This seems to be counter productive as I like to keep all software up to date
    What I have noticed:
    - The issue seems to affect the newer iMacs in my office more then the older machines despite everyone running the same OS version
    Thank you all so much in adavanced for your time reading my post.  The issue has been extremely frustrating for both me and the end users and I appreaciate any help that anyone can provide (even if its just pointing me in the direction of another message board)
    - Chris

    You have not mentioned it but based on some of the things that you have said, I would assume that the Mac's are bound to a domain. So, for one of these Mac's, if you logged on locally and then created a print queue to the network printer, do you get the same message?

  • Need API for creation of tag cloud

    Hi,
    I have a requirement to create a tag cloud based on a particular business logic. Does Webcenter provide API for the same?
    Can I customize the "Tagging - Tag Cloud" task flow? If yes, how and to what extent?
    Thanks in advance,
    Anurag

    Hi  Ajit,
      No another FM is available . U can directly create using transaction SE01 .
    Or u can create using BDC .

Maybe you are looking for